以太网通道的概念和作用
EthernetChannel以太网通道
多条链路负载均衡、提高带宽容错、当一条链路失效时,使用其他链路通信
以太网通道捆绑规则
1.参与捆绑的端口必须属于同一个VLAN
2.如果端口配置的是中继模式,那么应该在链路两端将通道中的所有端口配置成相同的中继模式
3.所有参与捆绑的端口的物理参数设置必须相同
自动协商以太网通道协议,即PAgP和LACP
PAgP(端口聚合协议)Cisco私有以太网通道协议
PAgP模式
开启(On)
关闭(Off)
自动(Auto)
企望(Desirable )
LACP(链路聚合控制协议)IEEE 802.3ad标准协议
LACP模式
开启(On)
关闭(Off)
被动(Passive)
主动(Active)

以太网通道配置
配置PAgP以太网通道
Switch(config-if)#interface internet-id
Switch(config-if)#channel-protocol pagp
Switch(config-if)#channel-group number mode { on | auto | desirable }
配置LACP以太网通道
Switch(config-if)#interface internet-id
Switch(config-if)#channel-protocol lacp
Switch(config-if)#channel-group number mode { on | passive | active }
查看以太网通道状态
Switch#show etherchannel summary
Switch#show etherchannel port
Switch#show etherchannel summary
Flags:  D - down        P - bundled in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        M - not in use, minimum links not met
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------
1      Po1(SU)         PAgP      Fa0/1(P)    Fa0/2(P) 
P:通道中的活动端口(正常)
D:端口没有连接或关闭状态
I:以太网信道没有协商成功
以太网通道故障排除
配置以太网通道的注意事项
1.在每个以太网通道中,Cisco交换机最多允许捆绑8个端口
2.在一个以太网通道中,两端的端口必须使用相同协议
3.所有参与捆绑的端口的物理参数设置必须相同  
4.一个端口只能在一个以太网通道中
5.一个以太网通道中的端口如果是中继模式,则端口的中继模式、中继封装以及准许VLAN的范围必须相同
6.参与捆绑的端口必须属于同一个VLAN
7.在配置以太网通道时,尽量让以太网通道中的端口配置为TRUNK模式