EtherChannel 配置 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

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