Etherchannel配置案例

拓扑结构:
Etherchannel配置案例
案例配置需求
1、 通过配置,使得SW1和SW2、SW3和SW4之间存在200Mbps的逻辑Trunk链路;
2、 SW1和SW2使用工业标准协商逻辑链路,由SW1发起协商,SW2不能发起协商;
3、 SW3和SW4使用cisco私有标准协商逻辑链路,由SW3发起协商,SW4不能发起协商;
案例配置思路
1、 在四台交换机的接口上封装802.1Q,并将接口设置为Trunk;
interface range fastEthernet 0/0 - 4
switchport trunk encapsulation dot1q
switchport mode trunk
2、 在SW1上配置工业标准的Etherchannel,设置为主动协商端;
interface range fastEthernet 0/23 - 24
channel-group 1 mode active
/将接口放入port-channel 1,使用IEEE标准,发送协商信息/
3、 在SW2上配置工业标准的Etherchannel,设置为被动协商端;
interface range fastEthernet 0/23 - 24
channel-group 1 mode passive
/将接口放入port-channel 1,使用IEEE标准,被动协商EC/
SW2(config-if-range)#channel-group 1 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
4、 在SW3上配置Cisco私有Etherchannel,设置为主动协商端:
interface range fastEthernet 0/0 -3
channel-group 1 mode desirable
/将接口放入port-channel 1,使用Cisco标准,发送协商信息/
5、 在SW3上配置Cisco私有Etherchannel,设置为被动协商端:
interface range fastEthernet 0/0 -3
channel-group 1 mode auto
/将接口放入port-channel 1,使用Cisco标准,被动协商EC/

检验结果:
1.在四台设备上查看生成的逻辑接口
Etherchannel配置案例2、 在四台设备上查看Etherchannel的状态:
Etherchannel配置案例3、 当SW1的F0/0只允许VLAN 666时,出现VLAN不匹配现象,此时F0/0进入DOWN状态,从Etherchannel中退出:
Etherchannel配置案例
总结
1、 Etherchannel共有两种标准,IEEE标准LACP和Cisco标准PAgP;
2、 Etherchannel的协议下,分为被动模式、主动模式和强制模式;
3、 每个Etherchannel最多可以支持8条链路绑定;
4、 当绑定在同一个Etherchannel的链路放行的VLAN不同时,会出现故障,导致链路退出Etherchannel;