欢迎来到天天文库
浏览记录
ID:22668984
大小:137.18 KB
页数:7页
时间:2018-10-30
《实验三链路聚合》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、实验三、链路聚合实验一、静态链路聚合配置操作1.配置要求利用交换机2950T重建实验二的网络拓扑。在此基础上,将端U0/1、0/2的链路类型均设置为Trunk,并以静态方式将端口成员加入链路聚合组。2.配置命令断开两台交换机Trunk口间的所有连线,并在实验二的基础上,添加如下配置:SWl>enable//进入特权模式SWl#configureterminal//进入全局模式Enterconfigurationcommands,oneperline.EndwithCNTL/Z.SWl(config
2、)#interfacefastEthernet0/1//进入设备物理端口0/1SWl(config-if)#switchportmodetrunk//设罝端口vlan链路矣型为trunkSWl(config-if)#switchporttrunkallowedvlan10,20//将端1_
3、以trunk模式加入vlan10、20SWl(config-if)#exitSWl(config)#exitSW1#SWl(config)#interfacefastEthernet0/2//进入设备物理端U0
4、/2SWl(config-if)#switchportmodetrunk//设置端口vlan链路类型为trunkSWl(config-if)#switchporttrunkallowedvlan10,20//将端门以trunk模式加入vlan10、20SWl(config-if)#exitSWl(config)#exitSW1#以上命令完成了交换机SW1上端口0/1,0/2的Trunk模式配置。在交换机SW2上重复上述操作。接下來对交换机SW1输入静态链路聚合的配置命令。SWl(config)#i
5、nterfacefastEthernet0/1//进入设备物理端口0/1SWl(config-if)#channel-group1modeon//以静态方式将端口成员加入链路聚合组%LINK-5-CHANGED:InterfacePort-channel1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfacePort-channel1,changedstatetoupSWl(config-if)#exitSWl(config)#in
6、terfacefastEthernet0/2//进入设备物理端U0/2SWl(config-if)#channel-group1modeon//以静态方式将端口成员加入链路聚合组%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernetO/2,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernetO/2,changedstatetoupSWl(config
7、-if)#exitSWl(config)#exitSW1#%SYS-5-CONFIG_l:Configuredfromconsolebyconsole在交换机SW2Zh重复上述操作。完成后,用交叉线CopperCross-Over连接交换机SW1和SW2的0/1端口和0/2端口,结果如图1所示。图11.配置验证(1)完成配置及连线,待交换机端口的工作状态指示灯将恢复正常(绿色)后,可利用查看命令确认配置是否正确。具体命令如下SWl#showetherchannelsummary//查看端U汇聚状态
8、Flags:D-downP-inport-channelI-stand-alones-suspendedH-Hot-standby(LACPonly)R-Layer3S-Layer2U-inusef-failedtoallocateaggregatoru-unsuitableforbundlingw-waitingtobeaggregatedd-defaultportNumberofchannel-groupsinuse:1Numberofaggregators:1GroupPort-channe
9、lProtocolPorts+++1Pol(SU)PAgPFaO/l(P)FaO々(P)SW1#(2)利用ping命令验证各端口间的连通性。若配置正确,则划入同一vlan的不同交换机的端口间可以ping通;4.补充说明(1)配置静态链路聚合的另一种方法是作方式配置为Trunk,即SWl(config)#interfacefastEthernet0/1SWl(config-if)#channel-group1modeonSWl(config-if)#exitSWl(config)#i
此文档下载收益归作者所有