华三MVRP的配置

#拓扑结构

华三MVRP的配置_第1张图片

MVRP  多vlan注册协议

步骤:

# 进入 MST 域视图。

# 配置 MST 域的域名、VLAN 映射关系和修订级别。

# 手工激活 MST 域的配置。

# 定义根桥。

# 全局使能生成树协议。

# 全局使能 MVRP 功能。

# 端口设置trunk设置相应vlan通过

# 端口使能MVRP


配置:

A

system-view

[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

system-view

[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

system-view

[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

 

 

 

system-view

[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



你可能感兴趣的:(网络)