以太网通道,通常称之为以太网链路捆绑,或者叫链路汇聚、链路聚合;

有如下作用:

       将多个类似的接口,捆绑成一个逻辑接口,从而增加设备之间的传输带宽、增加设备之间的连接可靠性,而且可以在设备之间形成链路备份,还可以实现数据转发的负载均衡。

实验拓扑图:

wKioL1nnTuzxZJsEAAA4hjMWXdY869.png-wh_50

由于STP(生成树协议)的作用,多层交换机1的f0/11和f0/12处于block(阻塞)状态,进行如下操作:

@交换机1:

Switch>enable

Switch#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#hostname SW1

SW1(config)#line con 0

SW1(config-line)#exec

SW1(config-line)#exec-timeout 0

SW1(config-line)#exit

SW1(config)#no ip domain lookup

SW1(config)#interface range f0/10-f0/12

SW1(config-if-range)#channel-group 1 mode on

SW1(config-if-range)#

Creating a port-channel interface Port-channel 1


%LINK-5-CHANGED: Interface Port-channel 1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up


SW1(config-if-range)#exit

SW1(config)#do show ip interface brief

……

@可见到如下一行,表示以太网通道组建立成功

Port-channel 1         unassigned      YES unset  up                    up

@可对以太网通道组进行相关错作

SW1(config)#interface port-channel 1

SW1(config-if)#switchport trunk encapsulatio dot1q

SW1(config-if)#switchport mode trunk

SW1(config-if)#end


@对交换机2进行类似操作即可实现上文拓扑图的功能。


注意: 

     可以将多个2层链路捆绑在一起;

      可以将多个3层链路捆绑在一起。