您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > W2L500020-链路聚合-教师参考
实验8链路聚合-71-实验8链路聚合实验任务一:配置二层静态聚合步骤一:搭建实验环境首先,依照图示搭建实验环境,完成交换机SWA与SWB的链路连接。配置主机HostA的IP地址为192.168.0.1/24,网关为192.168.0.253;配置主机HostB的IP地址为192.168.0.2/24,网关为192.168.0.254。步骤二:基本配置完成VLAN基本配置。在SWA上配置VLAN10,添加端口GigabitEthernet1/0/4,配置VLAN接口的IP地址为192.168.0.253/24。在SWB上配置VLAN10,添加端口GigabitEthernet1/0/4,配置VLAN接口的IP地址为192.168.0.254/24。请在下面的空格中补充完整的命令:[SWA]vlan10_[SWA-vlan10]portGigabitEthernet1/0/4[SWA]intvlan10[SWA-Vlan-interface10]ipadd192.168.0.253255.255.255.0[SWB]vlan10[SWB-vlan10]portGigabitEthernet1/0/4[SWB]intvlan10[SWB-Vlan-interface10]ipadd192.168.0.254255.255.255.0完成trunk基本配置。在SWA、SWB上配置各自以太网端口GigabitEthernet1/0/1~GigabitEthernet1/0/3的链路类型为Trunk类型,允许指定的VLAN1、VLAN10通过当前Trunk端口。请在下面的空格中补充完整的命令:[SWA]interfaceGigabitEthernet1/0/1[SWA-GigabitEthernet1/0/1]shutdown[SWA-GigabitEthernet1/0/1]portlink-typetrunk[SWA-GigabitEthernet1/0/1]porttrunkpermitvlan110[SWA]interfaceGigabitEthernet1/0/2[SWA-GigabitEthernet1/0/2]shutdown[SWA-GigabitEthernet1/0/2]portlink-typetrunk[SWA-GigabitEthernet1/0/2]porttrunkpermitvlan110[SWA]interfaceGigabitEthernet1/0/3[SWA-GigabitEthernet1/0/3]shutdown[SWA-GigabitEthernet1/0/3]portlink-typetrunk[SWA-GigabitEthernet1/0/3]porttrunkpermitvlan110[SWB]interfaceGigabitEthernet1/0/1[SWB-GigabitEthernet1/0/1]shutdown[SWB-GigabitEthernet1/0/1]portlink-typetrunk[SWB-GigabitEthernet1/0/1]porttrunkpermitvlan110[SWB]interfaceGigabitEthernet1/0/2[SWB-GigabitEthernet1/0/2]shutdown[SWB-GigabitEthernet1/0/2]portlink-typetrunk[SWB-GigabitEthernet1/0/2]porttrunkpermitvlan110[SWB]interfaceGigabitEthernet1/0/3[SWB-GigabitEthernet1/0/3]shutdown[SWB-GigabitEthernet1/0/3]portlink-typetrunk[SWB-GigabitEthernet1/0/3]porttrunkpermitvlan110实验8链路聚合-72-注意:为了避免广播风暴,请shutdown交换机上相关端口。步骤三:配置二层静态聚合在SWA上创建二层聚合端口1,并采用默认静态聚合模式。配置Bridge-Aggregation端口下配置,与聚合组中端口下配置一致。请在下面的空格中补充完整的命令:[SWA]interfacebridge-aggregation1[SWA-Bridge-Aggregation1]portlink-typetrunk[SWA-Bridge-Aggregation1]porttrunkpermitvlan110在SWA上分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到静态聚合组1中。请在下面的空格中补充完整的命令:[SWA]interfacegigabitethernet1/0/1[SWA-GigabitEthernet1/0/1]portlink-aggregationgroup1[SWA]interfacegigabitethernet1/0/2[SWA-GigabitEthernet1/0/2]portlink-aggregationgroup1[SWA]interfacegigabitethernet1/0/3[SWA-GigabitEthernet1/0/3]portlink-aggregationgroup1在SWB上创建二层聚合端口1,并采用默认静态聚合模式。配置Bridge-Aggregation端口下配置,与聚合组中端口下配置一致。请在下面的空格中补充完整的命令:[SWB]interfacebridge-aggregation1[SWB-Bridge-Aggregation1]portlink-typetrunk[SWB-Bridge-Aggregation1]porttrunkpermitvlan110在SWB上分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到静态聚合组1中。请在下面的空格中补充完整的命令:[SWB]interfacegigabitethernet1/0/1[SWB-GigabitEthernet1/0/1]portlink-aggregationgroup1[SWB]interfacegigabitethernet1/0/2[SWB-GigabitEthernet1/0/2]portlink-aggregationgroup1[SWB]interfacegigabitethernet1/0/3[SWB-GigabitEthernet1/0/3]portlink-aggregationgroup1打开SWA、SWB上的聚合端口。请在下面的空格中补充完整的命令:[SWA]interfaceGigabitEthernet1/0/1[SWA-GigabitEthernet1/0/1]undoshutdown[SWA]interfaceGigabitEthernet1/0/2[SWA-GigabitEthernet1/0/2]undoshutdown[SWA]interfaceGigabitEthernet1/0/3[SWA-GigabitEthernet1/0/3]undoshutdown[SWB]interfaceGigabitEthernet1/0/1[SWB-GigabitEthernet1/0/1]undoshutdown[SWB]interfaceGigabitEthernet1/0/2[SWB-GigabitEthernet1/0/2]undoshutdown[SWB]interfaceGigabitEthernet1/0/3[SWB-GigabitEthernet1/0/3]undoshutdown实验8链路聚合-73-由配置可见,在SWA、SWB上分别配置了创建二层静态聚合端口1,形成了二层聚合端口。步骤四:测试连通性在HostA上pingHostB,显示如下,请在下面的空格中补充完整的命令:C:\ping192.168.0.2Pinging192.168.0.2with32bytesofdata:Replyfrom192.168.0.2:bytes=32time=2msTTL=255Replyfrom192.168.0.2:bytes=32time=1msTTL=255Replyfrom192.168.0.2:bytes=32time=1msTTL=255Replyfrom192.168.0.2:bytes=32time=1msTTL=255Pingstatisticsfor192.168.0.2:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=1ms,Maximum=2ms,Average=1ms结果显示,从HostA可以ping通HostB。证明二层静态聚合配置成功。步骤五:检查二层聚合端口完成上一步骤后,立即在SWA上检查二层聚合端口表项。请在下面的空格中补充完整的命令:[SWA]displayinterfaceBridge-Aggregation1Bridge-Aggregation1currentstate:UPIPPacketFrameType:PKTFMT_ETHNT_2,HardwareAddress:000f-e207-f2e0Description:Bridge-Aggregation1Interface3Gbps-speedmode,full-duplexmodeLinkspeedtypeisautonegotiation,linkduplextypeisautonegotiationPVID:1Portlink-type:trunkVLANpassing:1(defaultvlan),10VLANpermitted:1(defaultvlan),10Trunkportencapsulation:IEEE802.1q从显示信息中可以看出,该二层聚合端口已经UP,端口速率3Gbps-speed。查看端口的链路聚合详细信息。请在下面的空格中补充完整的命令:[SWA]displaylink-aggregationverboseLoadsharingType:Shar--Loadsharing,NonS--Non-LoadsharingPortStatus:S--Selected,U--UnselectedFlags:A--LACP_Activity,B--LACP_Timeout,C--Aggregation,D--Synchronization,E--Collecting,F--Distributing,G--Defaulted,H--ExpiredAggregationInterface:Bridge-Aggregation1AggregationMode:StaticLoadsharingType:SharPortStatusOper-Key--------------------------------------------------------------------------------GE1/0/1S3GE1/0/2S3GE1/0/3S3实验8链路聚合-74-可以看到聚合组模式为Static,端口GigabitEthernet1/0/1至GigabitEthernet1/0/3成为了Selected端口。步骤六:检查二层静态聚合冗余在SWA上,关闭GigabitEthernet1/0/1。[SWA]interfaceGigabitEthernet1/0/1[SWA-GigabitEthernet1/0/1]shutdown同时在HostA上pingHostB,显示如下,请在下面的空格中补充完整的命令:C:\ping192.168.0.2
本文标题:W2L500020-链路聚合-教师参考
链接地址:https://www.777doc.com/doc-4745694 .html