EtherChannel配置
EtherChannel是把多條獨立的以太網鏈路捆綁成爲一條單獨的邏輯鏈路。每個EtherChannel的接口都必須具有相同的速度,以及必須都被配置爲二層或者三層接口。如果EtherChannel內的某一條鏈路失效了,原來在失效鏈路上面傳輸的流量將會那條EtherChannel內剩下的鏈路上面繼續進行傳輸。交換機將收到一個信息,表明那條EtherChannel裏面的鏈路失效了。從EtherChannel內其中一條鏈路進入的廣播或者多播包將會被拒絕向EtherChannel內的其他鏈路進行轉發。
實驗目的:瞭解etherchannel的配置
實驗環境:如下圖所示的實驗環境
實驗步驟:
1:進入交換機A進行如下的配置
Switch(cofig)#int port-channel 1
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/1-3
Switch(cofig-if)#channel-group 1 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac
2:進入交換機B進行如下的配置
Switch(cofig)#int port-channel 2
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/1-3
Switch(cofig-if)#channel-group 2 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac
3:進入交換機D進行如下的配置
Switch(cofig)#int port-channel 3
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/1-4
Switch(cofig-if)#channel-group 3 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac
4:進入交換機C進行如下的配置
Switch(cofig)#int port-channel 1
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/1-3
Switch(cofig-if)#channel-group 1 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac
Switch(cofig)#int port-channel 2
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/4-6
Switch(cofig-if)#channel-group 2 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac
Switch(cofig)#int port-channel 3
Switch(cofig-if)#exit
Switch(cofig)#int fa 0/7-10
Switch(cofig-if)#channel-group 3 mode on
Switch(cofig-if)#switchport mode trunk
Switch(cofig-if)#speed 100
Switch(cofig-if)#duflex full
Switch(cofig-if)#exit
Switch(cofig)#port-channel load-blance src-dst-mac