etherchannel、链路聚合

上传人:xiao****1972 文档编号:84149218 上传时间:2019-03-02 格式:DOC 页数:9 大小:62.50KB
返回 下载 相关 举报
etherchannel、链路聚合_第1页
第1页 / 共9页
etherchannel、链路聚合_第2页
第2页 / 共9页
etherchannel、链路聚合_第3页
第3页 / 共9页
etherchannel、链路聚合_第4页
第4页 / 共9页
etherchannel、链路聚合_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《etherchannel、链路聚合》由会员分享,可在线阅读,更多相关《etherchannel、链路聚合(9页珍藏版)》请在金锄头文库上搜索。

1、EtherChannel以太网通道、链路聚合(channel-group 1 mode )EtherChannel通过这个技术能够将多个物理端口绑定为一个逻辑端口通过多个端口绑定,能充分利用现有端口来增加带宽。Cisco交换机最多允许绑定8个端口。如果是快速以太网,总带宽可达1600Mbit/s如果是Gbit以太网,总带宽可达16Gbit/s绑定后的端口默认继承原来物理接口的配置模式。etherchannel不支持10M端口的绑定cisco的交换机不仅可以支持第二层etherchannel,还可以支持第三层etherchannel。一个etherchannel内所有的端口都必须具有相同的速率和

2、双工模式。LACP只能是全双工。二层接口和三层接口的区别:二层接口不能配置IP地址,不能宣告进路由协议,只能对二层以太网帧进行转发。三层接口可以配置IP地址,可运行路由协议,能接收IP包并且转发。EtherChannel的模式:可以直接将物理端口绑定,也可以让两台交换机之间通过协议进行协商,来形成channel通道。 On:强行起etherchannelSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode on 将这两个接口绑定为一组并指定on模式 组号本地有效Sw1(config)#interfac

3、e port-channel 1Sw1(config-if)#switchport mode trunk 指定接口模式为trunk,如不指定,会自动继承物理接口的模式Sw1#show etherchannel summary 可以看到绑定了多少接口Show interface etherchannelSw1(config)#no interface port-channel 1 拆除etherchannel强行起通道的话要在短期内在双方启用。否则可能环路。协商起链路则没有这问题,因为启用不起通道的话会down。Port Aggregation Protocol (PAgP)端口汇聚协议Cisc

4、o私有技术,这个协议又有两种模式: auto: 被动 只收不发 desirable: 主动 会发也会收协商消息Sw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode desirableSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode autoSw1(config)#interface port-channel 1Sw1(config-if)#switchport mode trunkLink Aggrega

5、tion Control Protocol (LACP) 链路聚合控制协议802.3ad,业界标准 Passvie相当于PAgP的auto Active相当于PAgP的desirable 又发又收协商消息Sw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode passiveSw1(config)#int range f0/8 ,f0/9Sw1(config-if-range)#channel-group 1 mode activeSw1(config)#interface port-channel 1S

6、w1(config-if)#switchport mode trunkshow etherchannel 1 summaryshow etherchannel summary 查看所有的group还有一种好的办法是先对每个接口封装trunk,再划入channel-group中,channel-group接口会自动继承trunk注:channel-group接口会自动继承第一个物理接口的接口配置模式,或最先配置的接口模式。配置三层channel所谓三层的channel其实就是将多个三层接口绑定。只能在三层交换机上配置。在3550这样的交换机上,所有接口默认都是二层接口。首先需要将交换机的的二层接

7、口改为三层接口。可用以下命令实现:3550(config)#interface gigabitethernet 0/13550(config-if)#no switchport然后再绑定:3550(config-if)#channel-group 1 mode desirable3550(config-if)#exit将另一个端口也绑进来3550(config)#interface gigabitethernet 0/23550(config-if)#no switchport3550(config-if)#channel-group 1 mode desirable3550(config-i

8、f)#exit给channel通道配上IP地址:3550(config)#interface port-channel 13550(config-if)#ip address 100.1.1.1 255.255.255.0当物理接口放进了逻辑接口,那物理接口的配置就忽略了,如ip地址。配置etherchannel负载均衡默认情况下是基于源MAC地址的负载均衡port-channel load-balance dst-mac|src-macshow etherchannel load-balance3560可以基于源目IP来做负载均衡Err-disable特性:接口如果进入err-disable

9、状态:有两种方法恢复1、手动恢复 先shutdown、再no shutdown2、自动恢复 errdisable recovery cause all|arp-inspection|bpduguard|link-flap 指定原因 errdisable recovery interval 30 指定自动恢复时间间隔两台交换机之间是否形成EtherChannel也可以用协议自动协商。目前有两个协商协议:PAGP和LACP,前者是CISCO专有的协议,而LACP是公共的标准。LACP协商的规律 ON active passiveON active passive PAGP协商的规律 ON Desi

10、rable autoON desirable auto 要想把接口配置为PAGP 的desirable 模式使用命令:“channel-group 1 mode desirable”;要想把接口配置为PAGP 的auto 模式使用命令:“channel-group 1 mode auto”;要想把接口配置为LACP 的active 模式使用命令:“channel-group 1 mode active”;要想把接口配置为LACP 的passive 模式使用命令:“channel-group 1 mode passive”。端口通道负载均衡 port-channel load-balancesw

11、1(config)#port-channel load-balance ? dst-ip Dst IP Addr dst-mac Dst Mac Addr src-dst-ip Src XOR Dst IP Addr src-dst-mac Src XOR Dst Mac Addr src-ip Src IP Addr src-mac Src Mac Addrsw1#show etherchannel summaryFlags: D - down P - in port-channel I - stand-alone s - suspended R - Layer3 S - Layer2 U

12、- in useGroup Port-channel Ports-+-+-1 Po1(SD) Fa0/0(s) Fa0/1(s)sw1#show etherchannel load-balancePo1 - Source XOR Destination IP address备注:1、以太网通道最多可以捆绑8条物理链路2、捆绑遵循以下规则: (1)相同VLAN(2)端口中继模式(3)相同speed和duplex=channel-group用于将超过一个的交换机互联的端口捆绑到一起,主要用于负载均衡比如sw1和sw2之间相连的端口为 19,20sw1(config-if-range)#int ra

13、ng f0/19 -20sw1(config-if-range)#channel-group ? Channel group numbersw1(config-if-range)#channel-group 1 ?mode Etherchannel Mode of the interfacesw1(config-if-range)#channel-group 1 mode ?active Enable LACP unconditionallyauto Enable PAgP only if a PAgP device is detecteddesirable Enable PAgP unconditionallyon Enable therchannel onlypassive Enable LACP only if a LACP device is detected要同时在

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号