上爲實驗拓樸:
在SW1上的配置如下:
Sw1(config)#int channel-group 1 創建以太通道
Sw(config)#int range f0/1-2 將接口加入到以太通道中
Sw1(config-if)#channel-group 1 mode on
Sw1(config-if)#switchport mode trunk 將鏈路封裝成trunk主幹道,主要方便允許所有的VLAN信息通過。
Sw1(config-if)#duplex full 全雙工模式
Sw1(config-if)#speed 100 速率爲100
Sw1(config)#port-channel load-banlance src-mac 配置以太通道的負載均衡。
在SW2上的配置如下:
Sw2(config)#int channel-group 1
Sw2(config)#int range f0/1-2
Sw2(config-if)#channel-group 1 mode on
Sw2(config-if)#switchport mode trunk
Sw2(config-if)#duplex full
Sw2(config-if)#speed 100
Sw2(config)#port-channel load-banlance src-mac