#拓扑结构
MVRP 多vlan注册协议
步骤:
# 进入 MST 域视图。
# 配置 MST 域的域名、VLAN 映射关系和修订级别。
# 手工激活 MST 域的配置。
# 定义根桥。
# 全局使能生成树协议。
# 全局使能 MVRP 功能。
# 端口设置trunk设置相应vlan通过
# 端口使能MVRP
A
[H3C]stpregion-configuration
[H3C-mst-region]region-nameexample
[H3C-mst-region]instance1 vlan 10
[H3C-mst-region]instance2 vlan 20
[H3C-mst-region]revision-level0
[H3C-mst-region]activeregion-configuration
[H3C-mst-region]exit
[H3C]stpinstance 1 root primary
[H3C]stpglobal enable
[H3C]mvrpglobal enable
[H3C]interface Ten-GigabitEthernet1/0/49
[H3C-Ten-GigabitEthernet1/0/49]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/49]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/49]mvrpenable
[H3C-Ten-GigabitEthernet1/0/49]exit
[H3C]intTen-GigabitEthernet1/0/51
[H3C-Ten-GigabitEthernet1/0/51]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/51]porttrunk permit vlan 40
[H3C-Ten-GigabitEthernet1/0/51]mvrpenable
[H3C-Ten-GigabitEthernet1/0/51]exit
[H3C]intTen-GigabitEthernet1/0/50
[H3C-Ten-GigabitEthernet1/0/50]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/50]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/50]mvrpenable
[H3C-Ten-GigabitEthernet1/0/50]exit
[H3C]vlan10
[H3C-vlan10]exit
B
[H3C]stpregion-configuration
[H3C-mst-region]region-nameexample
[H3C-mst-region]instance1 vlan 10
[H3C-mst-region]instance2 vlan 20
[H3C-mst-region]revision-level0
[H3C-mst-region]activeregion-configuration
[H3C-mst-region]exit
[H3C]stpinstance 2 root primary
[H3C]stpglobal e
[H3C]stpglobal enable
[H3C]mvrpglobal enable
[H3C]interfaceTen-GigabitEthernet1/0/50
[H3C-Ten-GigabitEthernet1/0/50]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/50]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/50]mvrpenable
[H3C-Ten-GigabitEthernet1/0/50]exit
[H3C]interfaceTen-GigabitEthernet1/0/51
[H3C-Ten-GigabitEthernet1/0/51]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/51]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/51]mvrpenable
[H3C-Ten-GigabitEthernet1/0/51]exit
[H3C]intTen-GigabitEthernet1/0/49
[H3C-Ten-GigabitEthernet1/0/49]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/49]porttrunk permit vlan 20 40
[H3C-Ten-GigabitEthernet1/0/49]exit
[H3C]vlan20
[H3C-vlan20]exit
[H3C]vlan40
[H3C-vlan40]exit
C
[H3C]stpregion-configuration
[H3C-mst-region]region-nameexample
[H3C-mst-region]instance1 vlan 10
[H3C-mst-region]instance2 vlan 20
[H3C-mst-region]revision-level0
[H3C-mst-region]activeregion-configuration
[H3C-mst-region]exit
[H3C]stpinstance 0 root primary
[H3C]stpglobal enable
[H3C]mvrpglobal enable
[H3C]intTen-GigabitEthernet1/0/49
[H3C-Ten-GigabitEthernet1/0/49]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/49]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/49]mvrpenable
[H3C-Ten-GigabitEthernet1/0/49]exit
[H3C]intTen-GigabitEthernet1/0/50
[H3C-Ten-GigabitEthernet1/0/50]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/50]porttrunk permit vlan all
[H3C-Ten-GigabitEthernet1/0/50]mvrpenable
[H3C-Ten-GigabitEthernet1/0/50]exit
D
[H3C]stpregion-configuration
[H3C-mst-region]region-nameexample
[H3C-mst-region]instance1 vlan 10
[H3C-mst-region]instance2 vlan 20
[H3C-mst-region]revision-level0
[H3C-mst-region]activeregion-configuration
[H3C]stpglobal enable
[H3C]mvrpglobal enable
[H3C]interfaceTen-GigabitEthernet1/0/50
[H3C-Ten-GigabitEthernet1/0/50]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/50]porttrunk permit vlan 40
[H3C-Ten-GigabitEthernet1/0/50]mvrpenable
[H3C-Ten-GigabitEthernet1/0/50]exit
[H3C]intTen-GigabitEthernet1/0/49
[H3C-Ten-GigabitEthernet1/0/49]portlink-type trunk
[H3C-Ten-GigabitEthernet1/0/49]porttrunk permit vlan 20 40
[H3C-Ten-GigabitEthernet1/0/49]mvrpenable
[H3C-Ten-GigabitEthernet1/0/49]exit
[H3C]vlan20
[H3C-vlan20]exit
[H3C]vlan40
[H3C-vlan40]exit