一.配置SwitchA
#在SWA上创建vlan 10,全局默认开启生成树协议。
System View: return to User View with Ctrl+Z.
[SWA]vlan 10
[SWA-vlan10]qu
[SWA]stp global enable
#全局开启MVRP功能。
[SWA]mvrp global enable
#配置SWA的下行口GE1/0/1透传vlan 10、vlan 20和vlan 30,端口开启MVRP功能。
[SWA]int g1/0/1
[SWA-GigabitEthernet1/0/1]port link-type trunk
[SWA-GigabitEthernet1/0/1]port trunk permit vlan 10 20 30
[SWA-GigabitEthernet1/0/1]mvrp enable
[SWA-GigabitEthernet1/0/1]quit
#配置保存
[SWA]save for
二.配置SwitchB
#在SWB上创建vlan 20,全局默认开启生成树协议。
System View: return to User View with Ctrl+Z.
[SWB]vlan 20
[SWB-vlan20]quit
[SWB]stp global enable
#全局开启MVRP功能。
[SWB]mvrp global enable
#配置SWB的上行口GE1/0/1透传vlan 10、vlan 20和vlan 30,端口开启MVRP功能。
[SWB]int g1/0/1
[SWB-GigabitEthernet1/0/1]port link-type trunk
[SWB-GigabitEthernet1/0/1]port trunk permit vlan 10 20 30
[SWB-GigabitEthernet1/0/1]mvrp enable
[SWB-GigabitEthernet1/0/1]quit
#配置SWB的下行口GE1/0/2透传vlan 10、vlan 20和vlan 30,端口开启MVRP功能。
[SWB]int g1/0/2
[SWB-GigabitEthernet1/0/2]port link-type trunk
[SWB-GigabitEthernet1/0/2]port trunk permit vlan 10 20 30
[SWB-GigabitEthernet1/0/2]mvrp enable
[SWB-GigabitEthernet1/0/2]quit
#配置保存
[SWB]save for
三.配置SwitchC
#在SWC上创建vlan 30,全局默认开启生成树协议。
System View: return to User View with Ctrl+Z.
[SWC]vlan 30
[SWC-vlan30]quit
[SWC]stp global enable
#全局开启MVRP功能。
[SWC]mvrp global enable
#配置SWC的上行口GE1/0/1透传vlan 10、vlan 20和vlan 30,端口开启MVRP功能。
[SWC]int g1/0/1
[SWC-GigabitEthernet1/0/1]port link-type trunk
[SWC-GigabitEthernet1/0/1]port trunk permit vlan 10 20 30
[SWC-GigabitEthernet1/0/1]mvrp enable
[SWC-GigabitEthernet1/0/1]quit
#配置保存
[SWC]save for
4 验证配置
# 查看查看MVRP本地VLAN的信息,验证以上配置是否生效。
SWA端口GigabitEthernet1/0/1注册了VLAN 1、VLAN 20和VLAN 30,向外声明了VLAN 10,传播了VLAN 1、VLAN 20和VLAN 30。
[SWA]dis mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
1(default), 20, 30
Declared VLANs :
1(default), 10
Propagated VLANs :
1(default), 20, 30
# SWB端口GigabitEthernet1/0/1注册了VLAN 1和VLAN 10,向外声明了VLAN 1、VLAN 20和VLAN 30,传播了VLAN 1和VLAN 10。
SWB端口GigabitEthernet1/0/2注册了VLAN 1和VLAN 30,向外声明了VLAN 1、VLAN 10和VLAN 20,传播了VLAN 1和VLAN 30。
[SWB]dis mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
1(default), 10
Declared VLANs :
1(default), 20, 30
Propagated VLANs :
1(default), 10
----[GigabitEthernet1/0/2]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
1(default), 30
Declared VLANs :
1(default), 10, 20
Propagated VLANs :
1(default), 30
# SWC端口GigabitEthernet1/0/1注册了VLAN 1、VLAN 10和VLAN 20,向外声明了VLAN 1和VLAN 30,传播了VLAN 1、VLAN 10和VLAN 20。
[SWC]dis mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
1(default), 10, 20
Declared VLANs :
1(default), 30
Propagated VLANs :
1(default), 10, 20
# 修改SWC端口GigabitEthernet1/0/1的模式为fixed模式,此时查看该端口VLAN信息和端口为normal模式时VLAN信息一样。
[SWC]int g1/0/1
[SWC-GigabitEthernet1/0/1]mvrp registration fixed
[SWC-GigabitEthernet1/0/1]quit
[SWC]dis mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Normal
Registered VLANs :
1(default), 10, 20
Declared VLANs :
1(default), 30
Propagated VLANs :
1(default), 10, 20
# 将SWB的VLAN 20删除后SWC端口GigabitEthernet1/0/1注册的动态VLAN也不会被注销。
[SWB]undo vlan 20
[SWC]dis mvrp running-status
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[GigabitEthernet1/0/1]----
Config Status : Enabled
Running Status : Enabled
Join Timer : 20 (centiseconds)
Leave Timer : 60 (centiseconds)
Periodic Timer : 100 (centiseconds)
LeaveAll Timer : 1000 (centiseconds)
Registration Type : Fixed
Registered VLANs :
1(default), 10, 20
Declared VLANs :
1(default), 30
Propagated VLANs :
1(default), 10, 20
5 注意事项
1、MVRP功能只能与STP、RSTP或MSTP配合使用,而无法与其他二层网络拓扑协议(如PVST、RRPP和Smart Link)同时配置。MVRP报文的收发不受STP/RSTP/MSTP阻塞端口影响
2、由于MVRP需要基于MSTI运行,因此在配置MVRP时,需要保证当前网络内所有MSTI都生效,即网络中设备都需要至少存在一个MSTI对应的VLAN以保证MSTI能够生效。
3、 MVRP功能只能在Trunk端口上生效,因此需要保证MVRP实体的端口链路类型为Trunk类型
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作