1. 程式人生 > 實用技巧 >MSTP多例項生成樹。

MSTP多例項生成樹。

#MSTP多例項生成樹實驗。

拓撲如下:

mstp多例項的配置:
1.配置domain1,domain2,domain3等三個域,在每個域內配置兩個非0例項;
2.指定非0的例項中的S1,S2,S5,S6,S11,S12裝置為例項的根,指對端為備份根;
3.配置S5為MSIT域的總根;並更改sw10的G0/0/3開銷,使其變成AP埠。
抓包結果如下,stp的詳細資訊如下;

在這裡插入圖片描述

當區域邊界裝置S10發生拓撲變化會發送TC置位的BPDU泛洪置全網:

在這裡插入圖片描述
在這裡插入圖片描述

裝置配置如下:
《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

鏈路聚合實驗;拓撲如下:
在這裡插入圖片描述

1.配合優先順序使S1成為E-trunk的主裝置
2.配置S3的優先順序為Eth-trunk的主動端,開啟搶佔十秒,最大的活躍鏈路為3條,最小的活躍鏈路為2條,模式都為LACP靜態;
E-Trnnk鄰居互動報文使用UDP協議1025埠;
在這裡插入圖片描述

Eth-Trunk執行lacp靜態模式的報文互動資料包;
在這裡插入圖片描述

配置如下:《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