链路聚合:将多个直连的物理接口逻辑的聚合为一个接口
二层交换机的链路聚合:
Switch(config)#int range fastEthernet 0/1-2进入多个接口配置channel口
Switch(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
PAgP :auto被动 desirable主动 思科私有协议
LACP:passive被动 active主动 公有协议
on 手动配置,两端必须为手动
建议使用手动配置,若使用思科私有或者公有协议两端必须都配置同一协议
链路聚合成功日志:
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/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
D:表示链路聚合失败 P:该端口成功加入绑定的逻辑端口 I:表示两点之间模式不匹配
s:表示被抑制 H:表示热备 仅限于LACP协商模式意思是做热备技术时会出现
R:表示此逻辑接口为三层接口 S:表示此逻辑接口是二层接口
U:表示 此逻辑接口正在被使用 并不能笼统的认为他是可以成功使用的
f:表示同一交换机上两个端口形成同一个逻辑绑定端口时,另一个端口指错了逻辑绑定端口号
M:不能使用 u:合适的捆绑 w:等待被捆绑 d:未执行捆绑的端口
查看channel口的状态
Switch#show ip int brief
Interface IP-Address OK? Method Status Protocol
Port-channel 1 unassigned YES manual up up