etherchannel
?etherchannel特性在switch到switch、switch到router之間提供冗余的、高速的連接方式,簡單說就是將兩個設備間多條FE或GE物理鏈路捆在一起組成一條設備間邏輯鏈路,從而達到增加帶寬,提供冗余的目的。下面具體結合配置了解它的特點:
?
構成etherchannel的端口必須配置成相同的特性,如雙工模式、速度、同為FE或GE端口、native VLAN,、VLAN range,、and trunking status and type.等
?
當etherchannel中某一條link failed時,etherchannel中其它link照常工作。
?
當配置layer 2端口作etherchannel時只要在成員端口配置模式下用channel-group n命令指定該端口要加入的channel-group組,這時switch會自動創建port-channel接口,而當配置layer 3端口作etherchannel時,還需現在全局配置模式下用 interface port-channel n 命令手工創建port-channel接口。
3550(config)#interface ?gigabitethernet 0/1
3550(config-if)#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
http://www.9ihlw.com
轉載于:https://blog.51cto.com/cc94p/679261
總結
以上是生活随笔為你收集整理的etherchannel的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 经典sql语句
- 下一篇: 二维模式(矩阵)匹配(Rabin-Kar