优化网站排名如何,搜索引擎免费登录入口,建瓯市建设银行网站,做的好的c2c网站链路聚合:
链路聚合:
链路聚合 #xff08;Link Aggregation#xff09;#xff0c;也称为端口捆绑、端口聚集或链路聚集#xff0c;链路聚合是将多个端口聚合在一起形成1个汇聚组#xff0c;以实现出/入负荷在各成员端口中的分担。从外面看起来#xff0c;1个汇聚组好…链路聚合:
链路聚合:
链路聚合 Link Aggregation也称为端口捆绑、端口聚集或链路聚集链路聚合是将多个端口聚合在一起形成1个汇聚组以实现出/入负荷在各成员端口中的分担。从外面看起来1个汇聚组好像就是1个端口。
优点:
提高链路带宽
提高可靠性同组成员彼此动态备份
要求:
加入链路聚合的端口的带宽速度vlan等设置都要一样
链路聚合手工模式LACPPAGP名称链路聚合控制协议IEEE802.3ad端口聚合协议开放性开放标准思科私有标准Etherchannel and IEEE 802.3adEtherchannel模式Static On ModeActive/PassiveAuto/Desirable
SW1和SW2的f0/20-f0/23作为链路聚合的端口PC1和PC2作为vlan1互相通信: SW1:
Switch(config)#int range f 0/20-23 #设置f0/20-23端口四个端口设置LACP
Switch(config-if-range)#channel-protocol lacp #设置链路聚合控制协议为LACP(默认值)LACP为标准协议pagp为思科私有
Switch(config-if-range)#switchport trunk encapsulation dot1q #设置帧格式为dot1q,Pt模拟器只有在三层交换机支持二层教交换机不支持
Switch(config-if-range)#switchport mode trunk #设置为trunk模式
Switch(config-if-range)#channel-group 1 mode active #设置指定端口组为1,信道ID为1模式为active模式,两边只要至少一边时active模式即可Switch(config-if)#int port-channel 1 #创建捆绑接口,就是用channel-group 1加入的相同ID的物理接口捆绑成一个逻辑接口
Switch(config-if)#switchport trunk encapsulation dot1q #PT模拟器二层交换机不支持可以不用设置
Switch(config-if)#switchport mode trunk #设置捆绑接口为trunk模式
Switch(config-if)#switchport trunk allowed vlan all #trunk默认允许所有vlan通过
Switch(config)#show interfaces port-channel 1 #查看捆绑端口的信息三层交换机可以查看SW2也是同样的配置:
SW1:
Switch(config)#int range f 0/20-23
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#channel-group 1 mode activeSwitch(config-if)#int port-channel 1 #创建捆绑接口,就是用channel-group 1加入的相同ID的物理接口捆绑成一个逻辑接口
Switch(config-if)#switchport trunk encapsulation dot1q #PT模拟器二层交换机不支持可以不用设置
Switch(config-if)#switchport mode trunk #设置捆绑接口为trunk模式
Switch(config-if)#switchport trunk allowed vlan all #trunk默认允许所有vlan通过查看端口通道信息: Switch#show etherchannel port-channel Channel-group listing:----------------------Group: 1
----------Port-channels in the group:---------------------------Port-channel: Po1 (Primary Aggregator)
------------Age of the Port-channel 00d:04h:03m:59s
Logical slot/port 2/1 Number of ports 4
GC 0x00000000 HotStandBy port null
Port state Port-channel
Protocol LACP
Port Security DisabledPorts in the Port-channel:Index Load Port EC state No of bits
-----------------------------------------------0 00 Fa0/23 Active 00 00 Fa0/20 Active 00 00 Fa0/21 Active 00 00 Fa0/22 Active 0
Time since last port bundled: 00d:04h:02m:35s Fa0/22
Switch#
Switch#查看聚合链路状态:
Switch#show etherchannel summary
Flags: D - down P - in port-channelI - stand-alone s - suspendedH - Hot-standby (LACP only)R - Layer3 S - Layer2U - in use f - failed to allocate aggregatoru - unsuitable for bundlingw - waiting to be aggregatedd - default portNumber of channel-groups in use: 1
Number of aggregators: 1Group Port-channel Protocol Ports
----------------------------------------------------------------------------1 Po1(SU) LACP Fa0/20(P) Fa0/21(P) Fa0/22(P) Fa0/23(P)两个PC互PING: 链路状态
交换机之间的线路被捆绑成一个逻辑链路不会被STP阻断所有的链路都是开启状态。 手工模式 设置如图上所示
手工模式设置链路聚合在设置好端口聚合之前要先把端口关闭设置好之后再打开端口
Switch(config)#int range f0/3-4
Switch(config-if-range)#shutdown
Switch(config-if-range)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to downSwitch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
Creating a port-channel interface Port-channel 1Switch(config-if-range)#no shutdown Switch(config-if-range)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up%LINK-5-CHANGED: Interface Port-channel1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upsw1
查看链路信息:
Switch#show etherchannel summary
Flags: D - down P - in port-channelI - stand-alone s - suspendedH - Hot-standby (LACP only)R - Layer3 S - Layer2U - in use f - failed to allocate aggregatoru - unsuitable for bundlingw - waiting to be aggregatedd - default portNumber of channel-groups in use: 1
Number of aggregators: 1Group Port-channel Protocol Ports
----------------------------------------------------------------------------1 Po1(SU) - Fa0/1(P) Fa0/2(P) p代表加入链路汇聚成功H代表热备份lacp最多支持88备份模式查看汇聚端口:
Switch#show etherchannel port-channel 1Channel-group listing:----------------------Group: 1
----------Port-channels in the group:---------------------------Port-channel: Po1
------------Age of the Port-channel 00d:00h:05m:01s
Logical slot/port 2/1 Number of ports 2
GC 0x00000000 HotStandBy port null
Port state Port-channel
Protocol PAGP
Port Security DisabledPorts in the Port-channel:Index Load Port EC state No of bits
-----------------------------------------------0 00 Fa0/1 On 00 00 Fa0/2 On 0
Time since last port bundled: 00d:00h:03m:40s Fa0/2
Switch#PAGP:
配置都一样channel-protocol pagp #设置协议为PAGP协议只要有一边设置成channel-group 1 mode Desirable,就可以组成聚合链路
文章转载自: http://www.morning.qxljc.cn.gov.cn.qxljc.cn http://www.morning.yhsrp.cn.gov.cn.yhsrp.cn http://www.morning.wffxr.cn.gov.cn.wffxr.cn http://www.morning.ybnps.cn.gov.cn.ybnps.cn http://www.morning.sgtq.cn.gov.cn.sgtq.cn http://www.morning.bklkt.cn.gov.cn.bklkt.cn http://www.morning.bgrsr.cn.gov.cn.bgrsr.cn http://www.morning.skrrq.cn.gov.cn.skrrq.cn http://www.morning.kpypy.cn.gov.cn.kpypy.cn http://www.morning.caswellintl.com.gov.cn.caswellintl.com http://www.morning.mjdbd.cn.gov.cn.mjdbd.cn http://www.morning.dangaw.com.gov.cn.dangaw.com http://www.morning.qwfq.cn.gov.cn.qwfq.cn http://www.morning.lqjpb.cn.gov.cn.lqjpb.cn http://www.morning.kjsft.cn.gov.cn.kjsft.cn http://www.morning.jhgxh.cn.gov.cn.jhgxh.cn http://www.morning.jfmyt.cn.gov.cn.jfmyt.cn http://www.morning.jqrp.cn.gov.cn.jqrp.cn http://www.morning.cmcjp.cn.gov.cn.cmcjp.cn http://www.morning.hyxwh.cn.gov.cn.hyxwh.cn http://www.morning.rntgy.cn.gov.cn.rntgy.cn http://www.morning.rxrw.cn.gov.cn.rxrw.cn http://www.morning.gswfs.cn.gov.cn.gswfs.cn http://www.morning.mslsn.cn.gov.cn.mslsn.cn http://www.morning.ldpjm.cn.gov.cn.ldpjm.cn http://www.morning.wqjpl.cn.gov.cn.wqjpl.cn http://www.morning.zcsch.cn.gov.cn.zcsch.cn http://www.morning.slfkt.cn.gov.cn.slfkt.cn http://www.morning.mzhh.cn.gov.cn.mzhh.cn http://www.morning.mbmtz.cn.gov.cn.mbmtz.cn http://www.morning.tkfnp.cn.gov.cn.tkfnp.cn http://www.morning.dzqyn.cn.gov.cn.dzqyn.cn http://www.morning.tmzlt.cn.gov.cn.tmzlt.cn http://www.morning.ybmp.cn.gov.cn.ybmp.cn http://www.morning.bxbnf.cn.gov.cn.bxbnf.cn http://www.morning.xoaz.cn.gov.cn.xoaz.cn http://www.morning.lwlnw.cn.gov.cn.lwlnw.cn http://www.morning.xknsn.cn.gov.cn.xknsn.cn http://www.morning.kmqms.cn.gov.cn.kmqms.cn http://www.morning.swsrb.cn.gov.cn.swsrb.cn http://www.morning.guanszz.com.gov.cn.guanszz.com http://www.morning.tpssx.cn.gov.cn.tpssx.cn http://www.morning.nhpgm.cn.gov.cn.nhpgm.cn http://www.morning.qkbwd.cn.gov.cn.qkbwd.cn http://www.morning.xdmsq.cn.gov.cn.xdmsq.cn http://www.morning.zbmcz.cn.gov.cn.zbmcz.cn http://www.morning.mtymb.cn.gov.cn.mtymb.cn http://www.morning.qbjrl.cn.gov.cn.qbjrl.cn http://www.morning.wjrq.cn.gov.cn.wjrq.cn http://www.morning.cpnsh.cn.gov.cn.cpnsh.cn http://www.morning.gfrjs.cn.gov.cn.gfrjs.cn http://www.morning.chhhq.cn.gov.cn.chhhq.cn http://www.morning.bwzzt.cn.gov.cn.bwzzt.cn http://www.morning.yjmns.cn.gov.cn.yjmns.cn http://www.morning.mpbgy.cn.gov.cn.mpbgy.cn http://www.morning.lmnbp.cn.gov.cn.lmnbp.cn http://www.morning.wlnr.cn.gov.cn.wlnr.cn http://www.morning.wqnc.cn.gov.cn.wqnc.cn http://www.morning.wgzgr.cn.gov.cn.wgzgr.cn http://www.morning.cfcpb.cn.gov.cn.cfcpb.cn http://www.morning.crqpl.cn.gov.cn.crqpl.cn http://www.morning.qttg.cn.gov.cn.qttg.cn http://www.morning.gdgylp.com.gov.cn.gdgylp.com http://www.morning.rmxwm.cn.gov.cn.rmxwm.cn http://www.morning.thpns.cn.gov.cn.thpns.cn http://www.morning.dbfp.cn.gov.cn.dbfp.cn http://www.morning.trlhc.cn.gov.cn.trlhc.cn http://www.morning.gwtbn.cn.gov.cn.gwtbn.cn http://www.morning.mynbc.cn.gov.cn.mynbc.cn http://www.morning.fpczq.cn.gov.cn.fpczq.cn http://www.morning.wrtpk.cn.gov.cn.wrtpk.cn http://www.morning.jsmyw.cn.gov.cn.jsmyw.cn http://www.morning.pgmbl.cn.gov.cn.pgmbl.cn http://www.morning.mrtdq.cn.gov.cn.mrtdq.cn http://www.morning.gwtbn.cn.gov.cn.gwtbn.cn http://www.morning.xmwdt.cn.gov.cn.xmwdt.cn http://www.morning.tnhmp.cn.gov.cn.tnhmp.cn http://www.morning.rdkt.cn.gov.cn.rdkt.cn http://www.morning.stmkm.cn.gov.cn.stmkm.cn http://www.morning.tbqdm.cn.gov.cn.tbqdm.cn