60-MVRP典型配置舉例
本章節下載: 60-MVRP典型配置舉例 (231.28 KB)
H3C S6800&S6860&S6861產品MVRP配置舉例
Copyright © 2019 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
目 錄
本文檔介紹了MVRP(Multiple VLAN Registration Protocol,多VLAN注冊協議)的配置舉例。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文假設您已了解MVRP特性。
如圖1所示:
· Device A和Device B為核心層設備,Device C和Device D為彙聚層設備;所有設備的端口均允許VLAN 11~30通過。
· 通過MSTP功能,Device C和Device D的VLAN 11~20報文、VLAN 21~30報文沿不同鏈路分別上行到Device A和Device B,達到流量負載分擔和鏈路備份的目的。
現要求通過配置MVRP功能簡化VLAN配置工作,實現:
· 在Device A上創建VLAN 11~30後,VLAN配置信息可同步到其他設備,並與網絡拓撲同步更新。
· 在網絡穩定後,配置Device B上與Device A相連端口的MVRP注冊模式為Fixed模式,使該端口注冊的動態VLAN不被注銷。
圖1 MVRP組網圖
· 配置MSTP功能時,為了使所有設備屬於同一MST域,在所有設備上配置相同的如下參數:
¡ 生成樹的工作模式(使用缺省的MSTP模式,無需配置)
¡ 域名(本例配置為test)
¡ 修訂級別(缺省為0,無需配置)
¡ VLAN映射表(本例將VLAN 11~20映射到MSTI 1,VLAN 21~30映射到MSTI 2)
· 為了使MSTI 1和MSTI 2拓撲中的上行鏈路不同並互相作為冗餘備份,配置Device A為MSTI 1的根橋,Device B為MSTI 2的根橋。
· 由於MVRP需要基於MSTI運行,網絡中的設備都需要至少存在一個MSTI對應的VLAN以保證MSTI能夠生效。本例中,每台設備都創建MSTI 1對應的VLAN 11,以及MSTI 2對應的VLAN 21。
· 由於MVRP功能隻能在Trunk端口上生效,配置MVRP實體的端口鏈路類型為Trunk類型。
產品 |
軟件版本 |
S6800係列 S6860係列 S6861係列 |
Release 2702 |
· MVRP功能隻能與STP、RSTP或MSTP配合使用,而無法與其他二層網絡拓撲協議(如業務環回、PVST、RRPP和Smart Link)配合使用。MVRP報文的收發不受STP/RSTP/MSTP阻塞端口影響。
· 在二層聚合接口上啟用了MVRP功能後,會同時在二層聚合接口和對應的所有選中成員端口上進行動態VLAN的注冊或注銷。
· 如果二層以太網接口加入了聚合組,則加入聚合組之前和加入聚合組之後在該接口上進行的MVRP相關配置不會生效,該接口退出聚合組後,MVRP的配置才會生效。
# 創建VLAN 11~30。
<DeviceA> system-view
[DeviceA] vlan 11 to 30
# 配置MST域的域名為test,將VLAN 11~20映射到MSTI 1,VLAN 21~30映射到MSTI 2,並激活MST域的配置。
[DeviceA] stp region-configuration
[DeviceA-mst-region] region-name test
[DeviceA-mst-region] instance 1 vlan 11 to 20
[DeviceA-mst-region] instance 2 vlan 21 to 30
[DeviceA-mst-region] active region-configuration
[DeviceA-mst-region] quit
# 配置本設備為MSTI 1的根橋。
[DeviceA] stp instance 1 root primary
# 全局開啟生成樹協議。
[DeviceA] stp global enable
# 全局開啟MVRP功能。
# 將設備的各端口配置為Trunk端口,允許VLAN 11~30通過,並開啟MVRP功能。
[DeviceA] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/3
[DeviceA-if-range] port link-type trunk
[DeviceA-if-range] port trunk permit vlan 11 to 30
[DeviceA-if-range] mvrp enable
[DeviceA-if-range] quit
# 創建VLAN 11和VLAN 21。
<DeviceB> system-view
[DeviceB] vlan 11
[DeviceB-vlan11] quit
[DeviceB] vlan 21
[DeviceB-vlan21] quit
# 配置MST域的域名為test,將VLAN 11~20映射到MSTI 1,VLAN 21~30映射到MSTI 2,並激活MST域的配置。
[DeviceB] stp region-configuration
[DeviceB-mst-region] region-name test
[DeviceB-mst-region] instance 1 vlan 11 to 20
[DeviceB-mst-region] instance 2 vlan 21 to 30
[DeviceB-mst-region] active region-configuration
[DeviceB-mst-region] quit
# 配置本設備為MSTI 2的根橋。
[DeviceB] stp instance 2 root primary
# 全局開啟生成樹協議。
[DeviceB] stp global enable
# 全局開啟MVRP功能。
[DeviceB] mvrp global enable
# 將設備的各端口配置為Trunk端口,允許VLAN 11~30通過,並開啟MVRP功能。
[DeviceB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/3
[DeviceB-if-range] port link-type trunk
[DeviceB-if-range] port trunk permit vlan 11 to 30
[DeviceB-if-range] mvrp enable
[DeviceB-if-range] quit
Device D的配置與Device C相同,這裏以Device C為例。
# 創建VLAN 11和VLAN 21。
<DeviceC> system-view
[DeviceC] vlan 11
[DeviceC-vlan11] quit
[DeviceC] vlan 21
[DeviceC-vlan21] quit
# 配置MST域的域名為test,將VLAN 11~20映射到MSTI 1,VLAN 21~30映射到MSTI 2,並激活MST域的配置。
[DeviceC] stp region-configuration
[DeviceC-mst-region] region-name test
[DeviceC-mst-region] instance 1 vlan 11 to 20
[DeviceC-mst-region] instance 2 vlan 21 to 30
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# 全局開啟生成樹協議。
[DeviceC] stp global enable
# 全局開啟MVRP功能。
[DeviceC] mvrp global enable
# 將設備的各端口配置為Trunk端口,允許VLAN 11~30通過,並開啟MVRP。
[DeviceC] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2
[DeviceC-if-range] port link-type trunk
[DeviceC-if-range] port trunk permit vlan 11 to 30
[DeviceC-if-range] mvrp enable
[DeviceC-if-range] quit
通過使用display stp brief命令可以查看生成樹的簡要信息,驗證各VLAN對應的網絡拓撲是否正確形成。
# 查看Device A上生成樹的簡要信息。
[DeviceA] display stp brief
MST ID Port Role STP State Protection
...
1 Ten-GigabitEthernet1/0/1 DESI FORWARDING NONE
1 Ten-GigabitEthernet1/0/2 DESI FORWARDING NONE
1 Ten-GigabitEthernet1/0/3 DESI FORWARDING NONE
2 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
2 Ten-GigabitEthernet1/0/2 DESI FORWARDING NONE
2 Ten-GigabitEthernet1/0/3 DESI FORWARDING NONE
# 查看Device B上生成樹的簡要信息。
[DeviceB] display stp brief
MST ID Port Role STP State Protection
...
1 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
1 Ten-GigabitEthernet1/0/2 DESI FORWARDING NONE
1 Ten-GigabitEthernet1/0/3 DESI FORWARDING NONE
2 Ten-GigabitEthernet1/0/1 DESI FORWARDING NONE
2 Ten-GigabitEthernet1/0/2 DESI FORWARDING NONE
2 Ten-GigabitEthernet1/0/3 DESI FORWARDING NONE
# 查看Device C上生成樹的簡要信息。
[DeviceC] display stp brief
MST ID Port Role STP State Protection
...
1 Ten-GigabitEthernet1/0/1 ALTE DISCARDING NONE
1 Ten-GigabitEthernet1/0/2 ROOT FORWARDING NONE
2 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
2 Ten-GigabitEthernet1/0/2 ALTE DISCARDING NONE
# 查看Device D上生成樹的簡要信息。
[DeviceD] display stp brief
MST ID Port Role STP State Protection
...
1 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
1 Ten-GigabitEthernet1/0/2 ALTE DISCARDING NONE
2 Ten-GigabitEthernet1/0/1 ALTE DISCARDING NONE
2 Ten-GigabitEthernet1/0/2 ROOT FORWARDING NONE
根據上述顯示信息中MST ID為1和2的ALTE端口(阻塞端口),可以繪出MSTI 1和MSTI 2的拓撲,如圖2所示。
圖2 MSTI 1和MSTI 2的拓撲
通過使用display mvrp running-status命令可以查看MVRP本地VLAN的信息,驗證Device A上配置的VLAN 11~30是否同步到了其他設備。
(1) 查看Device A上的本地VLAN信息。
[DeviceA] display mvrp running-status
-------[MVRP Global Info] -------
Global Status : Enabled
Compliance-GVRP : False
----[Ten-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), 11, 21
Declared VLANs :
1(default), 11-30
Propagated VLANs :
1(default), 11, 21
----[Ten-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), 11
Declared VLANs :
1(default), 11-30
Propagated VLANs :
1(default), 11
----[Ten-GigabitEthernet1/0/3] ----
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), 11
Declared VLANs :
1(default), 11-30
Propagated VLANs :
1(default), 11
由此可見,Device A的所有端口均向外聲明了VLAN 11~30。
(2) 查看Device B上的本地VLAN信息。
[DeviceB] display mvrp running-status
-------[MVRP Global Info] -------
Global Status : Enabled
Compliance-GVRP : False
----[Ten-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), 11-30
Declared VLANs :
1(default), 11, 21
Propagated VLANs :
1(default), 11-30
----[Ten-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 :
21
Declared VLANs :
1(default), 11-30
Propagated VLANs :
21
----[Ten-GigabitEthernet1/0/3] ----
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 :
21
Declared VLANs :
1(default), 11-30
Propagated VLANs :
21
由此可見:
· Device B的Ten-GigabitEthernet1/0/1(與Device A相連的端口)注冊了VLAN 11~30,並在本設備傳播了VLAN 11~30。
· 其他兩個端口向外聲明了VLAN 11~30。
(3) 查看Device C上的本地VLAN信息。
[DeviceC] display mvrp running-status
-------[MVRP Global Info] -------
Global Status : Enabled
Compliance-GVRP : False
----[Ten-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), 11-30
Declared VLANs :
21
Propagated VLANs :
21-30
----[Ten-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), 11-30
Declared VLANs :
1(default), 11
Propagated VLANs :
1(default), 11-20
· Device C的Ten-GigabitEthernet1/0/1(與Device B相連的端口)注冊了VLAN 11~30;由於該端口在VLAN 11~20對應的MSTI 1中被阻塞,僅傳播了VLAN 21~30。
· Device C的Ten-GigabitEthernet1/0/2(與Device A相連的端口)注冊了VLAN 11~30;由於該端口在VLAN 21~30對應的MSTI 2中被阻塞,僅傳播了VLAN 11~20。
(4) 查看Device D上的本地VLAN信息。
[DeviceD] display mvrp running-status
-------[MVRP Global Info] -------
Global Status : Enabled
Compliance-GVRP : False
----[Ten-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), 11-30
Declared VLANs :
1(default), 11
Propagated VLANs :
1(default), 11-20
----[Ten-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), 11-30
Declared VLANs :
21
Propagated VLANs :
21-30
· Device D的Ten-GigabitEthernet1/0/1(與Device A相連的端口)注冊了VLAN 11~30;由於該端口在VLAN 21~30對應的MSTI 2中被阻塞,僅傳播了VLAN 11~20。
· Device D的Ten-GigabitEthernet1/0/2(與Device B相連的端口)注冊了VLAN 11~30;由於該端口在VLAN 11~20對應的MSTI 1中被阻塞,僅傳播了VLAN 21~30。
# 配置Device B上與Device A相連端口的MVRP注冊模式為Fixed模式,使該端口注冊的動態VLAN不被注銷。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] mvrp registration fixed
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# 在Device A上刪除VLAN 30。
[DeviceA] undo vlan 30
# 查看Device B的端口Ten-GigabitEthernet1/0/1上MVRP本地VLAN的信息,驗證VLAN 30是否仍然在注冊狀態。
[DeviceB] display mvrp running-status interface ten-gigabitethernet 1/0/1
-------[MVRP Global Info] -------
Global Status : Enabled
Compliance-GVRP : False
----[Ten-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), 21-30
Declared VLANs :
1(default), 21
Propagated VLANs :
1(default), 21-30
由此可見,Device B的端口Ten-GigabitEthernet1/0/1配置Fixed模式後,該端口注冊的動態VLAN信息不會發生變化。驗證完後,在Device A上恢複創建VLAN 30。
[DeviceA] vlan 30
通過關閉Device C的端口Ten-GigabitEthernet1/0/2來引發網絡拓撲變化,同時觀察端口學習的動態VLAN信息是否同步更新。
(1) 關閉Device C的端口Ten-GigabitEthernet1/0/2前,查看該端口實際通過的VLAN信息。
[DeviceC] display interface ten-gigabitethernet 1/0/2
Ten-GigabitEthernet1/0/2
Current state: UP
Line protocol state: UP
...
Port link-type: Trunk
VLAN Passing: 1(default vlan), 11-30
VLAN permitted: 1(default vlan), 11-30
Trunk port encapsulation: IEEE 802.1q
...
由此可見,該端口實際通過的VLAN為缺省VLAN 1和VLAN 11~30。
(2) 關閉Device C的端口Ten-GigabitEthernet1/0/2,查看網絡拓撲變化。
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] shutdown
[DeviceC-Ten-GigabitEthernet1/0/2] quit
# 通過使用display stp brief命令在各設備上查看生成樹的簡要信息。以Device C和Device D為例:
[DeviceC] display stp brief
MST ID Port Role STP State Protection
0 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
1 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
2 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
[DeviceD] display stp brief
MST ID Port Role STP State Protection
0 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
0 Ten-GigabitEthernet1/0/2 ALTE DISCARDING NONE
1 Ten-GigabitEthernet1/0/1 ROOT FORWARDING NONE
1 Ten-GigabitEthernet1/0/2 ALTE DISCARDING NONE
2 Ten-GigabitEthernet1/0/1 ALTE DISCARDING NONE
2 Ten-GigabitEthernet1/0/2 ROOT FORWARDING NONE
根據顯示信息中MST ID為1的ALTE端口(阻塞端口),可以繪出MSTI 1的拓撲,如圖3所示。
圖3 Device C的XGE1/0/2斷開後的拓撲
(3) 查看Device C的端口Ten-GigabitEthernet1/0/2在關閉後實際通過的VLAN信息。
[DeviceC] display interface ten-gigabitethernet 1/0/2
...
Port link-type: Trunk
VLAN Passing: 1(default vlan), 11, 21
VLAN permitted: 1(default vlan), 11-30
Trunk port encapsulation: IEEE 802.1q
...
由此可見,該端口實際通過的VLAN為缺省VLAN 1以及本地創建的VLAN 11和VLAN 21,該端口沒有學習到動態VLAN。關於設備上的動態VLAN,可用display vlan dynamic命令查看:
[DeviceC] display vlan dynamic
Dynamic VLANs: 18
The dynamic VLANs include:
12-20, 22-30
#
sysname DeviceA
#
mvrp global enable
#
vlan 1
#
vlan 11 to 30
#
stp region-configuration
region-name test
instance 1 vlan 11 to 20
instance 2 vlan 21 to 30
active region-configuration
#
stp instance 0 to 1 root primary
stp global enable
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
#
sysname DeviceB
#
mvrp global enable
#
vlan 1
#
vlan 11
#
vlan 21
#
stp region-configuration
region-name test
instance 1 vlan 11 to 20
instance 2 vlan 21 to 30
active region-configuration
#
stp instance 2 root primary
stp global enable
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
#
sysname DeviceC
#
mvrp global enable
#
vlan 1
#
vlan 11
#
vlan 21
#
stp region-configuration
region-name test
instance 1 vlan 11 to 20
instance 2 vlan 21 to 30
active region-configuration
#
stp global enable
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
#
sysname DeviceD
#
mvrp global enable
#
vlan 1
#
vlan 11
#
vlan 21
#
stp region-configuration
region-name test
instance 1 vlan 11 to 20
instance 2 vlan 21 to 30
active region-configuration
#
stp global enable
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 11 to 30
mvrp enable
#
· H3C S6800[60][61](R27xx) & S6820(R630x)係列以太網交換機 二層技術-以太網交換配置指導
· H3C S6800[60][61](R27xx) & S6820(R630x)係列以太網交換機 二層技術-以太網交換命令參考
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!