08-MVRP配置
本章節下載: 08-MVRP配置 (354.96 KB)
MRP(Multiple Registration Protocol,多屬性注冊協議)作為一個屬性注冊協議的載體,可以用來傳遞屬性信息。MVRP(Multiple VLAN Registration Protocol,多VLAN注冊協議)是MRP的一種應用,用於在設備間發布並學習VLAN配置信息。通過MVRP,局域網中的設備可以自動同步VLAN信息,極大地減少了網絡管理員的VLAN配置工作。
設備上每一個參與協議的端口都可以視為一個應用實體。當MRP應用(如MVRP)在端口上啟動之後,該端口就可視為一個MRP應用實體(以下簡稱MRP實體,同樣的,MVRP應用實體簡稱MVRP實體)。
如圖1-1所示,MRP實體通過發送聲明類或回收聲明類消息(以下簡稱聲明和回收聲明),來通知其他MRP實體注冊或注銷自己的屬性信息,並根據其他MRP實體發來的聲明或回收聲明來注冊或注銷對方的屬性信息。通過MRP機製,一個MRP實體上的配置信息會迅速傳遍整個局域網。
圖1-1 MRP實現機製示意圖
以通過MVRP實現VLAN注冊和注銷為例,MRP的屬性注冊和注銷過程如下:
· 當端口收到一個VLAN的聲明時,該端口將注冊該聲明中的VLAN(該端口將加入到該VLAN中)。
· 當端口收到一個VLAN的回收聲明時,該端口將注銷該聲明中的VLAN(該端口將退出該VLAN)。
MRP支持在MSTI(Multiple Spanning Tree Instance,多生成樹實例)的基礎上,協助同一局域網內各成員之間傳遞屬性信息。圖1-1可以看作是MRP協議在某個MSTI上的實現機製,屬於比較簡單的一種情況,在實際應用的複雜組網情況下,可能存在多個MSTI,而屬性的注冊和注銷隻會在各自的MSTI上進行。有關MSTI的詳細介紹,請參見“二層技術-以太網交換配置指導”中的“生成樹”。
MRP消息主要包括Join消息、New消息、Leave消息和LeaveAll消息,它們通過互相配合來實現信息的注冊或注銷。其中,Join消息和New消息屬於聲明,Leave消息和LeaveAll消息屬於回收聲明。
當一個MRP實體配置了某些屬性,需要對端實體來注冊自己的屬性信息時,它會向對端實體發送Join消息。
當一個MRP實體收到來自對端實體的Join消息時,它會注冊該Join消息中的屬性,並向本設備的其他實體傳播該Join消息,其他實體收到傳播的Join消息後,向其對端實體發送Join消息。
MRP實體間發送的Join消息又分為JoinEmpty和JoinIn兩種(對於同一設備的實體間傳播的Join消息則不做區分),二者的區別如下:
· JoinEmpty:用於聲明MRP實體的非注冊屬性。比如一個MRP實體加入了某靜態VLAN(將本地手工創建的VLAN稱為靜態VLAN,通過MRP消息學習並創建的VLAN稱為動態VLAN),此時若該實體還沒有通過MRP消息注冊該VLAN,這時該實體向對端實體發送的Join消息就為JoinEmpty消息。
· JoinIn:用於聲明MRP實體的注冊屬性。比如MRP實體加入了某靜態VLAN且通過MRP消息注冊了該VLAN,或該實體收到本設備其他實體傳播的某VLAN的Join信息且通過MRP消息注冊了該VLAN,這時該實體向對端實體發送的Join消息就為JoinIn消息。
New消息的作用和Join消息比較類似,都是用於對屬性的聲明。不同的是,New消息主要用於MSTP(Multiple Spanning Tree Protocol,多生成樹協議)拓撲變化的情況。
· 當MSTP拓撲變化時,MRP實體需要向對端實體發送New消息聲明拓撲變化。
· 當一個MRP實體收到來自對端實體的New消息時,它會注冊該New消息中的屬性,並向本設備的其他實體傳播該New消息,其他實體收到傳播的New消息後,向其對端實體發送該New消息。
當一個MRP實體注銷了某些屬性,需要對端實體進行同步注銷時,它會向對端實體發送Leave消息。
當一個MRP實體收到來自對端實體的Leave消息時,它會注銷該Leave消息中的屬性,並向本設備的其他實體傳播該Leave消息,其他實體收到傳播的Leave消息後,根據該Leave消息中的屬性在本設備上的狀態,決定是否向其對端實體發送該Leave消息(比如該Leave消息中的屬性為某VLAN,若該VLAN為動態VLAN,且本設備上無實體注冊該VLAN,則在設備上刪除該VLAN,並向對端實體發送該Leave消息;若該VLAN為靜態VLAN,則不向對端實體發送該Leave消息)。
每個MRP實體啟動時都會啟動各自的LeaveAll定時器,當該定時器超時後,MRP實體就會向對端實體發送LeaveAll消息。
當一個MRP實體收發LeaveAll消息時,它會啟動Leave定時器,同時根據自身的屬性狀態決定是否發送Join消息要求對端實體重新注冊某屬性。該實體在Leave定時器超時前,重新注冊收到的來自對端實體的Join消息中的屬性;在Leave定時器超時後,注銷所有未重新注冊的屬性信息,從而周期性地清除網絡中的垃圾屬性。
MRP定義了四種定時器,用於控製各種MRP消息的發送。
每個MRP實體啟動時都會啟動各自的Periodic定時器,來控製MRP消息的周期發送。該定時器超時前,實體收集需要發送的MRP消息,在該定時器超時後,將所有待發送的MRP消息封裝成盡可能少的報文發送出去,這樣減少了報文發送數量。隨後再重新啟動Periodic定時器,開始新一輪的循環。
Periodic定時器允許用戶通過命令行開啟或關閉。如果關閉Periodic定時器,則MRP實體不再周期發送MRP消息,僅在LeaveAll定時器超時或收到來自對端實體的LeaveAll消息的情況下會發送MRP消息。
Join定時器用來控製Join消息的發送。為了保證消息能夠可靠地發送到對端實體,MRP實體在發送Join消息時,將啟動Join定時器。如果在該定時器超時前收到了來自對端實體的JoinIn消息,且該JoinIn消息中的屬性與發出的Join消息中的屬性一致,便不再重發該Join消息,否則在該定時器超時後,當Periodic定時器也超時,它將重發一次該Join消息。
Leave定時器用來控製屬性的注銷。當MRP實體收到來自對端實體的Leave消息(或收發LeaveAll消息)時,將啟動Leave定時器。如果在該定時器超時前,收到來自對端實體的Join消息,且該Join消息中的屬性與收到的Leave消息中的屬性一致(或與收發的LeaveAll消息中的某些屬性一致),則這些屬性不會在本實體被注銷,其他屬性則會在該定時器超時後被注銷。
每個MRP實體啟動時都會啟動各自的LeaveAll定時器,當該定時器超時後,該實體就會向對端實體發送LeaveAll消息,隨後再重新啟動LeaveAll定時器,開始新一輪的循環,對端實體在收到LeaveAll消息後也重新啟動LeaveAll定時器。
LeaveAll定時器具有抑製機製,即當某個MRP實體的LeaveAll定時器超時後,會向對端實體發送LeaveAll消息,對端實體在收到LeaveAll消息時,重啟本實體的LeaveAll定時器,從而有效抑製網絡中的LeaveAll消息數。為了防止每次都是同一實體的LeaveAll定時超時,每次LeaveAll定時器重啟時,LeaveAll定時器的值都將在一定範圍內隨機變動。
MVRP傳遞的VLAN配置信息既包括本地手工配置的靜態信息,也包括來自其他設備的動態信息。MVRP有三種注冊模式,不同注冊模式對動態VLAN的處理方式有所不同。
· Normal模式:該模式下的MVRP實體允許進行動態VLAN的注冊或注銷。
· Fixed模式:該模式下的MVRP實體禁止進行動態VLAN的注銷,收到的MVRP報文會被丟棄。也就是說,在該模式下,實體已經注冊的動態VLAN是不會被注銷的,同時也不會注冊新的動態VLAN。
· Forbidden模式:該模式下的MVRP實體禁止進行動態VLAN的注冊,收到的MVRP報文會被丟棄。同時,將端口的MVRP注冊模式配置為Forbidden模式時,該端口上除VLAN1以外所有已注冊的動態VLAN將被刪除。
與MVRP相關的協議規範有:
· IEEE 802.1ak:IEEE Standard for Local and Metropolitan Area Networks: Virtual Bridged Local Area Networks – Amendment 07:Multiple Registration Protocol
配置MVRP時,需要注意:
· MVRP功能隻能與STP、RSTP或MSTP配合使用,而無法與其他二層網絡拓撲協議(如PVST、RRPP和Smart Link)同時配置。MVRP報文的收發不受STP/RSTP/MSTP阻塞端口影響。有關STP、RSTP、MSTP和PVST的詳細介紹,請參見“二層技術-以太網交換配置指導”中的“生成樹”;有關RRPP的詳細介紹,請參見“可靠性配置指導”中的“RRPP”;有關Smart Link的詳細介紹,請參見“可靠性配置指導”中的“Smart Link”。
· 建議不要同時啟用遠程端口鏡像功能和MVRP功能,否則MVRP可能將遠程鏡像VLAN注冊到錯誤的端口上,導致鏡像目的端口會收到很多不必要的報文。有關遠程端口鏡像的詳細介紹,請參見“網絡管理和監控配置指導”中的“鏡像”。
· 在二層聚合接口上啟用了MVRP功能後,會同時在二層聚合接口和對應的所有選中成員端口上進行動態VLAN的注冊或注銷。
· 如果二層以太網接口加入了聚合組,則加入聚合組之前和加入聚合組之後在該接口上進行的MVRP相關配置不會生效,該接口退出聚合組後,MVRP的配置才會生效。
MVRP配置任務如下:
(1) 開啟MVRP功能
(2) 配置MVRP注冊模式
(3) (可選)配置MRP定時器
(4) (可選)配置MVRP兼容GVRP
· 由於MVRP需要基於MSTI運行,因此在配置MVRP時,需要保證當前網絡內所有MSTI都生效,即網絡中設備都需要至少存在一個MSTI對應的VLAN以保證MSTI能夠生效。
· MVRP功能隻能在Trunk端口上生效,因此需要保證MVRP實體的端口鏈路類型為Trunk類型。有關Trunk端口的詳細介紹,請參見“二層技術-以太網交換配置指導”中的“VLAN”。
(1) 進入係統視圖。
system-view
(2) 全局開啟MVRP功能。
mvrp global enable
缺省情況下,全局的MVRP功能處於關閉狀態。
要使端口上的MVRP功能生效,必須全局開啟MVRP功能。
(3) 進入二層以太網接口或二層聚合接口視圖。
interface interface-type interface-number
(4) 配置端口的鏈路類型為Trunk類型。
port link-type trunk
缺省情況下,端口的鏈路類型為Access類型。
有關port link-type trunk命令的詳細介紹,請參見“二層技術-以太網交換命令參考”中的“VLAN”。
(5) 配置允許指定的VLAN通過當前Trunk端口。
port trunk permit vlan { vlan-id-list | all }
缺省情況下,Trunk端口隻允許VLAN 1通過。
需要保證所有注冊的VLAN都能夠從該端口通過。
有關port trunk permit vlan命令的詳細介紹,請參見“二層技術-以太網交換命令參考”中的“VLAN”。
(6) 在端口上開啟MVRP功能。
mvrp enable
缺省情況下,端口上的MVRP功能處於關閉狀態。
(1) 進入係統視圖。
system-view
(2) 進入二層以太網接口或二層聚合接口視圖。
interface interface-type interface-number
(3) 配置端口的MVRP注冊模式。
mvrp registration { fixed | forbidden | normal }
缺省情況下,當前端口的MVRP端口注冊模式為Normal模式。
如表1-1所示,為保證MVRP的正常運行,Join定時器、Leave定時器和LeaveAll定時器的正確取值範圍間存在著相互依賴的關係,當配置某定時器時,如果配置值超出了該定時器當前正確的取值範圍,則該配置屬於錯誤配置。用戶可以通過改變相關定時器的值(必須是20厘秒的倍數)來重新進行配置。
表1-1 Join定時器、Leave定時器和LeaveAll定時器正確取值範圍間的依賴關係
定時器 |
取值下限 |
取值上限 |
Join定時器 |
20厘秒 |
小於Leave定時器值的一半 |
Leave定時器 |
大於Join定時器值的兩倍 |
小於LeaveAll定時器的值 |
LeaveAll定時器 |
大於所有端口上Leave定時器的值 |
32760厘秒 |
配置MRP定時器時,需要注意:
· MRP定時器的值建議全網一致,否則會出現VLAN頻繁注冊/注銷的情況。
· 設備的每個端口上都獨立維護自己的Periodic定時器、Join定時器和LeaveAll定時器,而每個端口的每個屬性上分別維護著一個Leave定時器。
· 當用戶欲恢複各定時器的值為缺省值時,建議按照Join定時器->Leave定時器->LeaveAll定時器的順序依次恢複。
· Periodic定時器的值可以在任何時刻恢複為缺省值。
(1) 進入係統視圖。
system-view
(2) 進入二層以太網接口或二層聚合接口視圖。
interface interface-type interface-number
(3) 配置LeaveAll定時器的值。
mrp timer leaveall timer-value
缺省情況下,LeaveAll定時器的值為1000厘秒。
(4) 配置Join定時器的值。
mrp timer join timer-value
缺省情況下,Join定時器的值為20厘秒。
(5) 配置Leave定時器的值。
mrp timer leave timer-value
缺省情況下,Leave定時器的值為60厘秒。
(6) 配置Periodic定時器的值。
mrp timer periodic timer-value
缺省情況下,Periodic定時器的值為100厘秒。
MVRP允許兼容GVRP(GARP VLAN Registration Protocol,GARP VLAN注冊協議)。當有鄰接設備支持GVRP功能時,可以通過配置MVRP兼容GVRP,允許本設備同時收發MVRP和GVRP報文。有關GVRP的詳細介紹,請參見相關協議規範IEEE 802.1Q。
配置MVRP兼容GVRP時,需要注意:
· 在配置MVRP兼容GVRP後,MVRP功能隻能與STP或RSTP配合使用,而不能與MSTP配合使用,否則可能會造成網絡工作的不正常。
· 在配置MVRP兼容GVRP後,建議關閉Periodic定時器,否則當係統繁忙時,容易造成VLAN狀態的頻繁改變。
(1) 進入係統視圖。
system-view
(2) 配置MVRP兼容GVRP。
mvrp gvrp-compliance enable
缺省情況下,MVRP不兼容GVRP。
在完成上述配置後,在任意視圖下執行display命令可以顯示配置後MVRP的運行情況,通過查看顯示信息驗證配置的效果。
在用戶視圖下執行reset命令可以清除MVRP的統計信息。
表1-2 MVRP顯示和維護
操作 |
命令 |
顯示MVRP運行狀態信息 |
display mvrp running-status [ interface interface-list ] |
顯示端口在指定VLAN內的MVRP接口狀態信息 |
display mvrp state interface interface-type interface-number vlan vlan-id |
顯示MVRP統計信息 |
display mvrp statistics [ interface interface-list ] |
清除端口上的MVRP統計信息 |
reset mvrp statistics [ interface interface-list ] |
· 設備A上創建了VLAN 10、設備B上創建了VLAN 20,各台設備上各個端口允許通過的VLAN如圖1-2所示。
· 通過配置MSTP,使不同VLAN的報文按照不同的MSTI轉發:VLAN 10的報文沿MSTI 1轉發,VLAN 20沿MSTI 2轉發,其他VLAN沿MSTI 0轉發。
· 通過啟用MVRP功能,並配置MVRP的注冊模式為Normal模式,來實現Device A、Device B、Device C和Device D之間的所有動態VLAN的注冊和注銷,從而保持各MSTI中VLAN配置的一致。
· 在網絡穩定後,配置Device B上與Device A相連端口的MVRP注冊模式為Fixed模式,使該端口注冊的動態VLAN不被注銷。
圖1-2 MVRP配置組網圖
(1) 配置Device A
# 進入MST域視圖。
<DeviceA> system-view
[DeviceA] stp region-configuration
# 配置MST域的域名、VLAN映射關係和修訂級別。
[DeviceA-mst-region] region-name example
[DeviceA-mst-region] instance 1 vlan 10
[DeviceA-mst-region] instance 2 vlan 20
[DeviceA-mst-region] revision-level 0
# 手工激活MST域的配置。
[DeviceA-mst-region] active region-configuration
[DeviceA-mst-region] quit
# 定義Device A為MSTI 1的根橋。
[DeviceA] stp instance 1 root primary
# 全局開啟生成樹協議。
[DeviceA] stp global enable
# 全局開啟MVRP功能。
[DeviceA] mvrp global enable
# 將端口GigabitEthernet1/0/1配置為Trunk口,並允許所有VLAN通過。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan all
# 在端口GigabitEthernet1/0/1上開啟MVRP。
[DeviceA-GigabitEthernet1/0/1] mvrp enable
[DeviceA-GigabitEthernet1/0/1] quit
# 將端口GigabitEthernet1/0/2配置為Trunk口,並允許VLAN 40通過。
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 40
# 在端口GigabitEthernet1/0/2上開啟MVRP。
[DeviceA-GigabitEthernet1/0/2] mvrp enable
[DeviceA-GigabitEthernet1/0/2] quit
# 將端口GigabitEthernet1/0/3配置為Trunk口,並允許所有VLAN通過。
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-type trunk
[DeviceA-GigabitEthernet1/0/3] port trunk permit vlan all
# 在端口GigabitEthernet1/0/3上開啟MVRP。
[DeviceA-GigabitEthernet1/0/3] mvrp enable
[DeviceA-GigabitEthernet1/0/3] quit
# 創建VLAN 10。
[DeviceA] vlan 10
[DeviceA-vlan10] quit
(2) 配置Device B
# 進入MST域視圖。
<DeviceB> system-view
[DeviceB] stp region-configuration
# 配置MST域的域名、VLAN映射關係和修訂級別。
[DeviceB-mst-region] region-name example
[DeviceB-mst-region] instance 1 vlan 10
[DeviceB-mst-region] instance 2 vlan 20
[DeviceB-mst-region] revision-level 0
# 手工激活MST域的配置。
[DeviceB-mst-region] active region-configuration
[DeviceB-mst-region] quit
# 定義Device B為MSTI 2的根橋。
[DeviceB] stp instance 2 root primary
# 全局開啟生成樹協議。
[DeviceB] stp global enable
# 開啟全局MVRP功能。
[DeviceB] mvrp global enable
# 將端口GigabitEthernet1/0/1配置為Trunk口,並允許VLAN 20、VLAN 40通過。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 20 40
# 在端口GigabitEthernet1/0/1上開啟MVRP。
[DeviceB-GigabitEthernet1/0/1] mvrp enable
[DeviceB-GigabitEthernet1/0/1] quit
# 將端口GigabitEthernet1/0/2配置為Trunk口,並允許所有VLAN通過。
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan all
# 在端口GigabitEthernet1/0/2上開啟MVRP。
[DeviceB-GigabitEthernet1/0/2] mvrp enable
[DeviceB-GigabitEthernet1/0/2] quit
# 將端口GigabitEthernet1/0/3配置為Trunk口,並允許所有VLAN通過。
[DeviceB] interface gigabitethernet 1/0/3
[DeviceB-GigabitEthernet1/0/3] port link-type trunk
[DeviceB-GigabitEthernet1/0/3] port trunk permit vlan all
# 在端口GigabitEthernet1/0/3上開啟MVRP。
[DeviceB-GigabitEthernet1/0/3] mvrp enable
[DeviceB-GigabitEthernet1/0/3] quit
# 創建VLAN 20。
[DeviceB] vlan 20
[DeviceB-vlan20] quit
(3) 配置Device C
# 進入MST域視圖。
<DeviceC> system-view
[DeviceC] stp region-configuration
# 配置MST域的域名、VLAN映射關係和修訂級別。
[DeviceC-mst-region] region-name example
[DeviceC-mst-region] instance 1 vlan 10
[DeviceC-mst-region] instance 2 vlan 20
[DeviceC-mst-region] revision-level 0
# 手工激活MST域的配置。
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# 定義Device C為MSTI 0的根橋。
[DeviceC] stp instance 0 root primary
# 全局開啟生成樹協議。
[DeviceC] stp global enable
# 全局開啟MVRP功能。
[DeviceC] mvrp global enable
# 將端口GigabitEthernet1/0/1配置為Trunk口,並允許所有VLAN通過。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan all
# 在端口GigabitEthernet1/0/1上開啟MVRP。
[DeviceC-GigabitEthernet1/0/1] mvrp enable
[DeviceC-GigabitEthernet1/0/1] quit
# 將端口GigabitEthernet1/0/2配置為Trunk口,並允許所有VLAN通過。
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] port link-type trunk
[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan all
# 在端口GigabitEthernet1/0/2上開啟MVRP。
[DeviceC-GigabitEthernet1/0/2] mvrp enable
[DeviceC-GigabitEthernet1/0/2] quit
(4) 配置Device D
# 進入MST域視圖。
<DeviceD> system-view
[DeviceD] stp region-configuration
# 配置MST域的域名、VLAN映射關係和修訂級別。
[DeviceD-mst-region] region-name example
[DeviceD-mst-region] instance 1 vlan 10
[DeviceD-mst-region] instance 2 vlan 20
[DeviceD-mst-region] revision-level 0
# 手工激活MST域的配置。
[DeviceD-mst-region] active region-configuration
[DeviceD-mst-region] quit
# 全局開啟生成樹協議。
[DeviceD] stp global enable
# 全局開啟MVRP功能。
[DeviceD] mvrp global enable
# 將端口GigabitEthernet1/0/1配置為Trunk口,並允許VLAN 20,40通過。
[DeviceD] interface gigabitethernet 1/0/1
[DeviceD-GigabitEthernet1/0/1] port link-type trunk
[DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 20 40
# 在端口GigabitEthernet1/0/1上開啟MVRP。
[DeviceD-GigabitEthernet1/0/1] mvrp enable
[DeviceD-GigabitEthernet1/0/1] quit
# 將端口GigabitEthernet1/0/2配置為Trunk口,並允許VLAN 40通過。
[DeviceD] interface gigabitethernet 1/0/2
[DeviceD-GigabitEthernet1/0/2] port link-type trunk
[DeviceD-GigabitEthernet1/0/2] port trunk permit vlan 40
# 在端口GigabitEthernet1/0/2上開啟MVRP。
[DeviceD-GigabitEthernet1/0/2] mvrp enable
[DeviceD-GigabitEthernet1/0/2] quit
(1) 驗證Normal注冊模式配置
通過使用display mvrp running-status命令可以查看MVRP本地VLAN的信息,驗證配置是否生效。
# 查看Device A上的本地VLAN信息。
[DeviceA] display 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)
Declared VLANs :
1(default), 10, 20
Propagated VLANs :
1(default)
----[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 :
None
Declared VLANs :
1(default)
Propagated VLANs :
None
----[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 :
20
Declared VLANs :
1(default), 10
Propagated VLANs :
20
由此可見,端口GigabitEthernet1/0/1注冊了VLAN 1,向外聲明了VLAN 1、VLAN 10和VLAN 20,傳播了VLAN 1。端口GigabitEthernet1/0/2沒有注冊任何VLAN,向外聲明了VLAN 1,沒有傳播VLAN。端口GigabitEthernet1/0/3注冊了VLAN 20,向外聲明了VLAN 1和VLAN 10,傳播了VLAN 20。
# 查看Device B上的本地VLAN信息。
[DeviceB] display 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)
Declared VLANs :
1(default), 20
Propagated VLANs :
1(default)
----[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), 10
Declared VLANs :
1(default), 20
Propagated VLANs :
1(default)
----[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), 10
Declared VLANs :
20
Propagated VLANs :
10
由此可見,端口GigabitEthernet1/0/1注冊了VLAN 1,向外聲明了VLAN 1和VLAN 20,傳播了VLAN 1。端口GigabitEthernet1/0/2注冊了VLAN 1和VLAN 10,向外聲明了VLAN 1和VLAN 20,傳播了VLAN 1。端口GigabitEthernet1/0/3注冊了VLAN 1和VLAN 10,向外聲明了VLAN 20,傳播了VLAN 10。
# 查看Device C上的本地VLAN信息。
[DeviceC] display 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)
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), 20
Declared VLANs :
1(default), 10
Propagated VLANs :
1(default), 20
由此可見,端口GigabitEthernet1/0/1注冊了VLAN 1、VLAN 10和VLAN 20,向外聲明了VLAN 1,傳播了VLAN 1和VLAN 10。端口GigabitEthernet1/0/2注冊了VLAN 1和VLAN 20,向外聲明了VLAN 1和VLAN 10,傳播了VLAN 1和VLAN 20。
# 查看Device D上的本地VLAN信息。
[DeviceD] display 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
Declared VLANs :
1(default)
Propagated VLANs :
1(default), 20
----[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)
Declared VLANs :
None
Propagated VLANs :
None
由此可見,端口GigabitEthernet1/0/1注冊並傳播了VLAN 10和VLAN 20,向外聲明VLAN 1。端口GigabitEthernet1/0/2注冊了VLAN 1,沒有向外聲明和傳播VLAN。
(2) 更改注冊模式並驗證
配置Device B上端口GigabitEthernet1/0/3的MVRP注冊模式為Fixed模式,使其注冊的動態VLAN不被注銷。
# 配置端口GigabitEthernet1/0/3的MVRP注冊模式為Fixed模式。
[DeviceB] interface gigabitethernet 1/0/3
[DeviceB-GigabitEthernet1/0/3] mvrp registration fixed
[DeviceB-GigabitEthernet1/0/3] quit
# 查看Device B的端口GigabitEthernet1/0/3上MVRP本地VLAN的信息。
[DeviceB] display mvrp running-status interface gigabitethernet 1/0/3
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[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 : Fixed
Registered VLANs :
1(default), 10
Declared VLANs :
20
Propagated VLANs :
10
由此可見,此時端口GigabitEthernet1/0/3上的VLAN信息與沒有配置Fixed模式時的VLAN信息相同。
# 在Device A上刪除VLAN 10。
[DeviceA] undo vlan 10
# 查看Device B的端口GigabitEthernet1/0/3上MVRP本地VLAN的信息。
[DeviceB] display mvrp running-status interface gigabitethernet 1/0/3
-------[MVRP Global Info]-------
Global Status : Enabled
Compliance-GVRP : False
----[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 : Fixed
Registered VLANs :
1(default), 10
Declared VLANs :
20
Propagated VLANs :
10
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!