配置2層3層以太網通道

配置2層以太網通道
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#channel-group 5 mode ?
  active     Enable LACP unconditionally
  auto       Enable PAgP only if a PAgP device is detected
  desirable  Enable PAgP unconditionally
  on         Enable Etherchannel only
  passive    Enable LACP only if a LACP device is detected
Switch(config-if)#channel-group 5 mode auto
Switch#show run
配置3層以太網通道
在3750及以前系列中應該首先通過全局命令手動創建一個端口通道邏輯接口
然後使用channel-group 接口配置命令把邏輯接口添加到通道組中
 

Switch(config-if)#interface port-channel 15
Switch(config-if)#no switchport
Switch(config-if)#ip address 192.168.2.2 255.255.255.0
Switch(config-if)#end
Switch#
把物理接口添加到通道組中
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#no ip address
Switch(config-if)#no switchport
Switch(config-if)#channel-group 15 mode active
Switch(config-if)#end
Switch#
 
配置4000及以後系列3層以太網通道
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#no switchport
Switch(config-if)#no ip address
Switch(config-if)#channel-group 15 mode active
Switch(config-if)#end
 
檢查以上設置
 
Switch#show etherchannel 15 detail
Switch#show etherchannel 15 port-channel
配置以太網通道負載均衡
Switch(config)#port-channel load-balance dst-mac
Switch#show etherchannel load-balance
Destination MAC address
 
 
 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章