port-channel/etherchannel
2015-10-11 14:45
295 查看
EtherChannel(PAgP、LACP)基本配置
(2012-07-25 01:12:54)
转载▼
标签: etherchannelpagplacpautodesirablepassiveactive以太通道 | 分类: Cisco交换入门 |
EtherChannel命令组合:如果想把端口配置为on:sw1(config-if-range)#channel-group 1 mode on如果想把端口配置为PAgP的desirable:sw1(config-if-range)#channel-protocol pagpsw1(config-if-range)#channel-group 1 mode desirable如果想把端口配置为PAgP的auto:sw1(config-if-range)#channel-protocol pagpsw1(config-if-range)#channel-group 1 mode auto如果想把端口配置为LACP的active:sw1(config-if-range)#channel-protocol lacpsw1(config-if-range)#channel-group 1 mode active如果想把端口配置为LACP的passive:sw1(config-if-range)#channel-protocol lacpsw1(config-if-range)#channel-group 1 mode passiveEtherChannel说明:①Cisco最多允许EtherChannel绑定8个端口; 1>如果是快速以太网,总带宽可达1600Mbit/s; 2>如果是Gbit以太网,总带宽可达16Gbit/s。②EtherChannel不支持10M端口;③EtherChannel编号只在本地有效,链路两端的编号可以不一样;④EtherChannel默认使用PAgP协议;⑤EtherChannel默认情况下是基于源MAC地址的负载平衡;⑥一个EtherChannel内所有的端口都必须具有相同的端口速率和双工模式,LACP只能是全双工模式;⑦channel-group接口会自动继承最小物理接口,或最先配置的接口模式;⑧cisco的交换机不仅可以支持第二层EtherChannel,还可以支持第三层EtherChannel。 实验命令:sw1(config)#int port-channel 1 //创建以太通道,编号为1sw1(config-if-range)#channel-group 1 mode on //将物理接口指定到已创建的通道中,模式为onsw1(config)#port-channel load-balance dst-ip //配置以太通道的负载平衡方式,基于目的IP说明:①创建以太通道时要指定一个唯一的通道编号,编号范围是1-6的整数,这个编号只有本地有效,因此链路两端 的编号可以不一样;②以太通道的负载平衡方式有:dst-ip、dst-mac、src-dst-ip、src-dst-mac、src-ip、src-mac,默认情况下 是基于源MAC地址的负载平衡。
sw1(config)#int port-channel 1sw1(config)#int range f0/13 - 14sw1(config-if-range)#switchport trunk encapsulation dot1qsw1(config-if-range)#switchport mode trunksw1(config-if-range)#speed 100sw1(config-if-range)#duplex fullsw1(config-if-range)#channel-group 1 mode onsw1(config)#port-channel load-balance dst-ipsw2(config)#int port-channel 1sw2(config)#int range f0/13 - 14sw2(config-if-range)#switchport trunk encapsulation dot1qsw2(config-if-range)#switchport mode trunksw2(config-if-range)#speed 100sw2(config-if-range)#duplex fullsw2(config-if-range)#channel-group 1 mode onsw2(config)#port-channel load-balance dst-ip特别说明:如果本试验中交换机sw2上接的是服务器,客户计算机接在sw1上,这时在交换机sw1上应该配置为基于src-ip的负载平衡方式,而在sw2上应该配置为基于dst-ip的负载平衡方式。实验调试sw1#show etherchannel summary //查看EtherChannel信息
sw1#show etherchannel load-balance //查看EtherChannel负载平衡方式
sw1#show etherchannel port-channel //查看指定的EtherChannel包含的接口
sw1#show etherchannel protocol //显示各个Channel-group使用的协商协议
接口如果进入err-disable状态有两种方法恢复:①手动恢复:先shutdown,再no shutdown;②自动恢复:errdisable recovery cause {all|arp-inspection|bpduguard|link-flap} 指定原因 errdisable recovery interval 30 指定自动恢复时间间隔
相关文章推荐
- Linux Etherchannel
- EtherChannel
- etherchannel 规则
- EtherChannel 配置端口聚合
- 手工创建EtherChannel
- etherchannel
- Cisco交换机配置——EtherChannel
- 配置Etherchannel的点点总结
- Etherchannel的配置 三层
- 以太通道(Etherchannel)
- etherchannel以太通道
- 应用Etherchannel扩展企业服务的高可用性 推荐
- 功能测试
- 微焦系列
- Ubuntu14.04设置开机root用户登录
- 第3周项目4 顺序表应用(2)
- Android中的Adapter
- iframe中子父窗口互调的js方法
- iOS --- 使用NSTimer设置定时任务的注意事项
- centos6.5 之电信宽带上网(拨号连接)