分类:
2012-06-16 13:50:42
3550()#interface gigabitethernet 0/1
3550()#switchport
3550(config-if)#channel-group 1 mode desirable
3550(config-if)#exit
3550(config)#interface gigabitethernet 0/2
3550(config-if)#switchport
3550(config-if)#channel-group 1 mode desirable
3550(config-if)#exit
3550(config)#interface port-channel 1
3550(config-if)#switchport mode trunk
show etherchannel 1 summary
show etherchannel summary 查看所有的group
配置三层channel
3550(config)#interface gigabitethernet 0/1
3550(config-if)#no switchport
3550(config-if)#channel-group 1 mode desirable
3550(config-if)#exit
3550(config)#interface gigabitethernet 0/2
3550(config-if)#no switchport
3550(config-if)#channel-group 1 mode desirable
3550(config-if)#exit
3550(config)#interface port-channel 1
3550(config-if)#ip address 100.1.1.1 255.255.255.0
还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk
配置etherchannel负载均衡
port-channel load-balance [dst-mac|src-mac]
show etherchannel load-balance