生成树多实例

 

 

要求:VLAN10的流量走 LSW3的ethernet0/0/6,VLAN20的流量走LSW3的ethernet0/0/5,任意一条线路
断掉,则都走另一条,既要实现流量的分担,又要实现高可用。

* mstp解决的两个问题:
1. 流量分担
2. 次优路由

 

[SW1]vlan batch 10 20
[SW1-Ethernet0/0/2]dis thi
interface Ethernet0/0/2
port link-type access
port default vlan 10
[SW1-Ethernet0/0/3]dis thi
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW1-Ethernet0/0/5]dis thi
interface Ethernet0/0/5
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW2]vlan batch 10 20
[SW2-Ethernet0/0/4]dis thi
interface Ethernet0/0/4
port link-type access
port default vlan 20
[SW2-Ethernet0/0/2]dis thi
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW2-Ethernet0/0/3]dis thi
interface Ethernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW3]vlan batch 10 20
[SW3-Ethernet0/0/7]dis thi
interface Ethernet0/0/7
port link-type access
port default vlan 10
[SW3-Ethernet0/0/18]dis thi
interface Ethernet0/0/18
port link-type access
port default vlan 20
[SW3-Ethernet0/0/5]dis thi
interface Ethernet0/0/5
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW3-Ethernet0/0/6]dis thi
interface Ethernet0/0/6
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW1]stp region-configuration
[SW1-mst-region]region-name huawei
[SW1-mst-region]revision-level 1
[SW1-mst-region]instance 1 vlan 10
[SW1-mst-region]instance 2 vlan 20
[SW1-mst-region]active region-configuration

[SW2]stp region-configuration
[SW2-mst-region]region-name huawei
[SW2-mst-region]revision-level 1
[SW2-mst-region]instance 1 vlan 10
[SW2-mst-region]instance 2 vlan 20
[SW2-mst-region]active region-configuration

[SW3]stp region-configuration
[SW3-mst-region]region-name huawei
[SW3-mst-region]revision-level 1
[SW3-mst-region]instance 1 vlan 10
[SW3-mst-region]instance 2 vlan 20
[SW3-mst-region]active region-configuration


[SW1]stp instance 1 root primary
[SW2]stp instance 1 root secondary
[SW1]stp instance 2 root secondary
[SW2]stp instance 2 root primary

结果如下,对于install 1来说,阻断了5号口,对于instance 2来说,阻断了6号口:

 

 

posted @ 2022-04-28 20:12  Peter_Yi  阅读(100)  评论(0)    收藏  举报