链路聚合多生成树域

前端之家收集整理的这篇文章主要介绍了链路聚合多生成树域前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
链路聚合多生成树域
生成树(MST)使用修正的快速生成树(RSTP)协议,叫做多生成树协议(MSTP)
  MSTP(Multiple Spanning Tree Protocol,多生成树协议)
  将环路网络修剪成为一个无环的树型网络,避免报文在环路网络中的增生和无限循环,同时还提供了数据转发的多个冗余路径,在数据转发过程中实现VLAN 数据的负载均衡。MSTP 兼容STP 和RSTP,并且可以弥补STP 和RSTP 的缺陷。它既可以快速收敛,也能使不同VLAN 的流量沿各自的路径分发,从而为冗余链路提供了更好的负载分担机制。
@H_502_14@ 实验环境:ensp模拟器
@H_502_14@

@H_502_14@ Sw1配置:
@H_502_14@ [sw1]vlan 10
@H_502_14@ [sw1-vlan10]vlan 20
@H_502_14@ [sw1-vlan20]vlan 30
@H_502_14@ [sw1]stp enable #启动生成树,默认启动mstp
@H_502_14@ [sw1]dis stp @H_502_14@ -------[CIST Global Info][Mode MSTP]------- @H_502_14@ CIST Bridge :32768.4c1f-cc73-940e @H_502_14@ Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 @H_502_14@ Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 @H_502_14@ CIST Root/ERPC :32768.4c1f-cc6c-00b5 / 1 @H_502_14@ CIST RegRoot/IRPC :32768.4c1f-cc73-940e / 0 @H_502_14@ CIST RootPortId :128.3 @H_502_14@ BPDU-Protection :Disabled @H_502_14@ TC or TCN received:6 @H_502_14@ [sw1]stp region-configuration @H_502_14@ [sw1-mst-region]region-name liufan #建立域名 @H_502_14@ [sw1-mst-region]instance 1 vlan 10 20 #建立树1 @H_502_14@ [sw1-mst-region]instance 2 vlan 30 40 #建立树2 @H_502_14@ @H_502_14@ [sw1-mst-region]check region-configuration #查看域 @H_502_14@ Admin configuration @H_502_14@ Format selector :0 @H_502_14@ Region name :liufan @H_502_14@ Revision level :0 @H_502_14@ @H_502_14@ Instance VLANs Mapped @H_502_14@ 0 1 to 9,11 to 19,21 to 29,31 to 39,41 to 4094 @H_502_14@ 1 10,20 @H_502_14@ 2 30,40 @H_502_14@ [sw1-mst-region]revision-level 1 @H_502_14@ [sw1-mst-region]active region-configuration #启动域 @H_502_14@ Info: This operation may take a few seconds. Please wait for a moment...done. @H_502_14@ [sw1]inter gig0/0/1 @H_502_14@ [sw1-GigabitEthernet0/0/1]port link-type trunk @H_502_14@ [sw1-GigabitEthernet0/0/1]port trunk allow vlan all @H_502_14@ [sw1]inter gig0/0/3 @H_502_14@ [sw1-GigabitEthernet0/0/3]port link-type trunk @H_502_14@ [sw1-GigabitEthernet0/0/3]port trunk allow vlan all @H_502_14@ [sw1]inter gig0/0/2 @H_502_14@ [sw1-GigabitEthernet0/0/2]port link-type trunk @H_502_14@ [sw1-GigabitEthernet0/0/2]port trunk allow vlan all @H_502_14@ [sw1]inter gig0/0/4 @H_502_14@ [sw1-GigabitEthernet0/0/4]port link-type trunk @H_502_14@ [sw1-GigabitEthernet0/0/4]port trunk allow vlan all @H_502_14@ @H_502_14@ @H_502_14@ Sw2配置:
@H_502_14@ [sw2]vlan 10 @H_502_14@ [sw2-vlan10]vlan 20 @H_502_14@ [sw2-vlan20]vlan 30 @H_502_14@ [sw2-vlan30]vlan 40 @H_502_14@ [sw2]stp region-configuration @H_502_14@ [sw2-mst-region]region-name liufan @H_502_14@ [sw2-mst-region]instance 1 vlan 10 20 @H_502_14@ [sw2-mst-region]instance 2 vlan 30 40 @H_502_14@ [sw2-mst-region]revision-level 1 @H_502_14@ [sw2-mst-region]active region-configuration @H_502_14@ Info: This operation may take a few seconds. Please wait for a moment...done. @H_502_14@ [sw2-mst-region] @H_502_14@ Nov 28 2012 17:34:52-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25 @H_502_14@ .191.3.1 configurations have been changed. The current change number is 9,the c @H_502_14@ hange loop count is 0,and the maximum number of records is 4095. @H_502_14@ [sw2-mst-region]check region @H_502_14@ Admin configuration @H_502_14@ Format selector :0 @H_502_14@ Region name :liufan @H_502_14@ Revision level :1 @H_502_14@ @H_502_14@ Instance VLANs Mapped @H_502_14@ 0 1 to 9,40 @H_502_14@ [sw2-GigabitEthernet0/0/4]inter gig0/0/2 @H_502_14@ [sw2-GigabitEthernet0/0/2]port link-type trunk @H_502_14@ [sw2-GigabitEthernet0/0/2]port trunk allow vlan all @H_502_14@ [sw2-GigabitEthernet0/0/2]inter gig0/0/4 @H_502_14@ [sw2-GigabitEthernet0/0/4]port link-type trunk @H_502_14@ [sw2-GigabitEthernet0/0/4]port trunk allow vlan all @H_502_14@ [sw2-GigabitEthernet0/0/4]inter gig0/0/1 @H_502_14@ [sw2-GigabitEthernet0/0/1]port link-type trunk @H_502_14@ [sw2-GigabitEthernet0/0/1]port trunk allow vlan all
配置sw3:
@H_502_14@ [sw3]vlan 10 @H_502_14@ [sw3-vlan10]vlan 20 @H_502_14@ [sw3-vlan20]vlan 30 @H_502_14@ [sw3-vlan30]vlan 40 @H_502_14@ [sw3]stp region-configuration @H_502_14@ [sw3-mst-region]region-name liufan @H_502_14@ [sw3-mst-region]instance 1 vlan 10 20 @H_502_14@ [sw3-mst-region]instance 2 vlan 30 40 @H_502_14@ [sw3-mst-region]revision-level 1 @H_502_14@ [sw3-mst-region]active region-configuration @H_502_14@ [sw3]inter gig0/0/1 @H_502_14@ [sw3-GigabitEthernet0/0/1]port link-type trunk @H_502_14@ [sw3-GigabitEthernet0/0/1]port trunk allow vlan all @H_502_14@ [sw3]inter gig0/0/3 @H_502_14@ [sw3-GigabitEthernet0/0/3]port link-type trunk @H_502_14@ [sw3-GigabitEthernet0/0/3]port trunk allow vlan all
配置sw4:
@H_502_14@ [sw4]vlan 10 @H_502_14@ [sw4-vlan10]vlan 20 @H_502_14@ [sw4-vlan20]vlan 30 @H_502_14@ [sw4-vlan30]vlan 40 @H_502_14@ [sw4]stp region-configuration @H_502_14@ [sw4-mst-region]region-name liufan @H_502_14@ [sw4-mst-region]instance 1 vlan 10 20 @H_502_14@ [sw4-mst-region]instance 2 vlan 30 40 @H_502_14@ [sw4-mst-region]revision-level 1 @H_502_14@ [sw4-mst-region]active region-configuration @H_502_14@ [sw4]inter gig0/0/1 @H_502_14@ [sw4-GigabitEthernet0/0/1]port link-type trunk @H_502_14@ [sw4-GigabitEthernet0/0/1]port trunk allow vlan all @H_502_14@ [sw4]inter gig0/0/3 @H_502_14@ [sw4-GigabitEthernet0/0/3]port link-type trunk @H_502_14@ [sw4-GigabitEthernet0/0/3]port trunk allow vlan all
在sw1和sw2上做链路聚合:
[sw1]port-group 1
@H_502_14@ [sw1-port-group-1]group-member gig0/0/2 @H_502_14@ [sw1-port-group-1]group-member gig0/0/4 @H_502_14@ [sw1-port-group-1]dis port-group all @H_502_14@ Portgroup: 1 @H_502_14@ GigabitEthernet0/0/2 @H_502_14@ GigabitEthernet0/0/4
[sw2]port-group 1
@H_502_14@ [sw2-port-group-1]group-member gig0/0/2 @H_502_14@ [sw2-port-group-1]group-member gig0/0/4
Sw3设置为树2的根:
@H_502_14@ [sw3]stp instance 2 root primary @H_502_14@ [sw3]stp instance 1 root second
Sw4设置为树1的根:
@H_502_14@ [sw4]stp instance 1 root primary @H_502_14@ [sw4]stp instance 2 root second
测试:
@H_502_14@ [sw2]dis stp instance 1 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 1 GigabitEthernet0/0/1 ALTEDISCARDING NONE @H_502_14@ 1 GigabitEthernet0/0/2 ROOTFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/4 ALTEDISCARDING NONE @H_502_14@ [sw2]dis stp instance 2 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 2 GigabitEthernet0/0/1 ROOTFORWARDING NONE @H_502_14@ 2 GigabitEthernet0/0/2 ALTEDISCARDING NONE @H_502_14@ 2 GigabitEthernet0/0/4 ALTEDISCARDING NONE
@H_502_14@ [sw3]dis stp instance 1 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 1 GigabitEthernet0/0/1 DESIFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/3 ROOTFORWARDING NONE @H_502_14@ [sw3]dis stp instance 2 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 2 GigabitEthernet0/0/1 DESIFORWARDING NONE @H_502_14@ 2 GigabitEthernet0/0/3 DESIFORWARDING NONE @H_502_14@ [sw1]dis stp instance 1 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 1 GigabitEthernet0/0/1 ROOTFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/2 DESIFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/3 DESIFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/4 DESIFORWARDING NONE @H_502_14@ [sw1]dis stp instance 2 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 2 GigabitEthernet0/0/1 DESIFORWARDING NONE @H_502_14@ 2 GigabitEthernet0/0/2 DESIFORWARDINGNONE @H_502_14@ 2 GigabitEthernet0/0/3 ROOTFORWARDING NONE @H_502_14@ 2 GigabitEthernet0/0/4 DESIFORWARDING NONE @H_502_14@ [sw4]dis stp instance 1 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 1 GigabitEthernet0/0/1 DESIFORWARDING NONE @H_502_14@ 1 GigabitEthernet0/0/3 DESIFORWARDING NONE @H_502_14@ [sw4]dis stp instance 2 brief @H_502_14@ MSTIDPort RoleSTP State Protection @H_502_14@ 2 GigabitEthernet0/0/1 ROOTFORWARDING NONE @H_502_14@ 2 GigabitEthernet0/0/3 DESIFORWARDING NONE 原文链接:https://www.f2er.com/javaschema/286515.html

猜你在找的设计模式相关文章