#MSTP多实例生成树实验。

拓扑如下:

mstp多实例的配置:
1.配置domain1,domain2,domain3等三个域,在每个域内配置两个非0实例;
2.指定非0的实例中的S1,S2,S5,S6,S11,S12设备为实例的根,指对端为备份根;
3.配置S5为MSIT域的总根;并更改sw10的G0/0/3开销,使其变成AP端口。
抓包结果如下,stp的详细信息如下;

MSTP多实例生成树。

当区域边界设备S10发生拓扑变化会发送TC置位的BPDU泛洪置全网:

MSTP多实例生成树。
MSTP多实例生成树。

设备配置如下:
《S1》:
vlan batch 10 20
stp instance 10 root primary
stp instance 20 root secondary
stp region-configuration
region-name domain1
instance 10 vlan 10
instance 20 vlan 20
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094


《S2》
vlan batch 10 20
stp instance 20 root primary
stp instance 10 root secondary
stp region-configuration
region-name domain1
instance 10 vlan 10
instance 20 vlan 20
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094


《S3》
vlan batch 10 20

stp region-configuration
region-name domain1
instance 10 vlan 10
instance 20 vlan 20
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094


《S4》
vlan batch 50 60
stp region-configuration
region-name domain3
instance 5 vlan 50
instance 6 vlan 60
active region-configuration
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094

interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094


《S5》
vlan batch 50 60
stp instance 0 priority 4096
stp instance 5 root primary
stp instance 6 root secondary

stp region-configuration
region-name domain3
instance 5 vlan 50
instance 6 vlan 60
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094


《S6》
vlan batch 50 60

stp instance 5 root secondary
stp instance 6 root primary

stp region-configuration
region-name domain3
instance 5 vlan 50
instance 6 vlan 60
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

《S10》
vlan batch 110 120
stp region-configuration
region-name domain2
instance 11 vlan 110
instance 12 vlan 120
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp instance 0 cost 100000
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 2 to 4094

《S11》
vlan batch 110 120
stp instance 11 root primary
stp instance 12 root secondary
stp region-configuration
region-name domain2
instance 11 vlan 110
instance 12 vlan 120
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

《S12》
vlan batch 110 120
stp instance 12 root primary
stp instance 11 root secondary
stp region-configuration
region-name domain2
instance 11 vlan 110
instance 12 vlan 120
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

链路聚合实验;拓扑如下:
MSTP多实例生成树。

1.配合优先级使S1成为E-trunk的主设备
2.配置S3的优先级为Eth-trunk的主动端,开启抢占十秒,最大的活跃链路为3条,最小的活跃链路为2条,模式都为LACP静态;
E-Trnnk邻居交互报文使用UDP协议1025端口;
MSTP多实例生成树。

Eth-Trunk运行lacp静态模式的报文交互数据包;
MSTP多实例生成树。

配置如下:《S1》
vlan batch 10
interface Vlanif10
ip address 10.1.12.1 255.255.255.0

e-trunk 1
priority 10
peer-address 10.1.12.2 source-address 10.1.12.1
interface Eth-Trunk10
mode lacp-static
e-trunk 1 remote-eth-trunk 20

interface GigabitEthernet0/0/1
eth-trunk 10

interface GigabitEthernet0/0/2
eth-trunk 10

interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
interface GigabitEthernet0/0/4
eth-trunk 10

《S2》
vlan batch 10
interface Vlanif10
ip address 10.1.12.2 255.255.255.0

e-trunk 1
priority 10
peer-address 10.1.12.1 source-address 10.1.12.2

interface Eth-Trunk20
mode lacp-static
e-trunk 1 remote-eth-trunk 10

interface GigabitEthernet0/0/1
eth-trunk 20

interface GigabitEthernet0/0/2
eth-trunk 20

interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
interface GigabitEthernet0/0/4
eth-trunk 10

《S3》
lacp priority 100

interface Eth-Trunk1
mode lacp-static
least active-linknumber 2
lacp preempt enable
max active-linknumber 3
lacp preempt delay 10
interface GigabitEthernet0/0/1
eth-trunk 1
interface GigabitEthernet0/0/2
eth-trunk 1
interface GigabitEthernet0/0/3
eth-trunk 1
interface GigabitEthernet0/0/4
eth-trunk 1
interface GigabitEthernet0/0/5
eth-trunk 1
interface GigabitEthernet0/0/6
eth-trunk 1

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2022-01-15
  • 2022-01-12
  • 2021-09-22
  • 2021-10-07
  • 2021-04-01
猜你喜欢
  • 2021-10-31
  • 2021-07-19
  • 2021-11-30
  • 2022-12-23
  • 2021-06-18
  • 2021-09-09
相关资源
相似解决方案