• 全部
  • 經驗案例
  • 典型配置
  • 技術公告
  • FAQ
  • 漏洞說明
  • 全部
  • 全部
  • 大數據引擎
  • 知了引擎
產品線
搜索
取消
案例類型
發布者
是否解決
是否官方
時間
搜索引擎
匹配模式
高級搜索

S7000/S7500E/10500係列交換機MVRP配置(命令行版)

  • 0關注
  • 0收藏 2752瀏覽
閆寧 九段
粉絲:34人 關注:0人

組網及說明

1 配置需求或說明

1.1.1  1.1適用產品係列

交換機產品分類平台適用產品型號 - bobty下载软件,BOB登陆

本案例適用於如S7006S7503ES7506ES7606S10510S10508S7000S7500ES10500係列,且軟件版本是V7交換機

1.1.2  1.2配置需求及實現的效果

SWA創建vlan 10SWB創建vlan 20SWC創建vlan 30,通過MVRP功能實現3台交換機的vlan動態注冊。

2 組網圖


配置步驟

3 配置步驟

一.配置SwitchA

#SWA上創建vlan 10,全局默認開啟生成樹協議。

sys

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 10vlan 20vlan 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,全局默認開啟生成樹協議。

sys

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 10vlan 20vlan 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 10vlan 20vlan 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,全局默認開啟生成樹協議。

sys

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 10vlan 20vlan 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 1VLAN 20VLAN 30,向外聲明了VLAN 10,傳播了VLAN 1VLAN 20VLAN 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 1VLAN 10,向外聲明了VLAN 1VLAN 20VLAN 30,傳播了VLAN 1VLAN 10

SWB端口GigabitEthernet1/0/2注冊了VLAN 1VLAN 30,向外聲明了VLAN 1VLAN 10VLAN 20,傳播了VLAN 1VLAN 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 1VLAN 10VLAN 20,向外聲明了VLAN 1VLAN 30,傳播了VLAN 1VLAN 10VLAN 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

# SWBVLAN 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 注意事項

 1MVRP功能隻能與STPRSTPMSTP配合使用,而無法與其他二層網絡拓撲協議(如PVSTRRPPSmart Link)同時配置。MVRP報文的收發不受STP/RSTP/MSTP阻塞端口影響

 2、由於MVRP需要基於MSTI運行,因此在配置MVRP時,需要保證當前網絡內所有MSTI都生效,即網絡中設備都需要至少存在一個MSTI對應的VLAN以保證MSTI能夠生效。

3 MVRP功能隻能在Trunk端口上生效,因此需要保證MVRP實體的端口鏈路類型為Trunk類型


該案例對您是否有幫助:

您的評價:1

若您有關於案例的建議,請反饋:

0 個評論

該案例暫時沒有網友評論

編輯評論

舉報

×

侵犯我的權益 >
對根叔知了社區有害的內容 >
辱罵、歧視、挑釁等(不友善)

侵犯我的權益

×

泄露了我的隱私 >
侵犯了我企業的權益 >
抄襲了我的內容 >
誹謗我 >
辱罵、歧視、挑釁等(不友善)
騷擾我

泄露了我的隱私

×

您好,當您發現根叔知了上有泄漏您隱私的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您認為哪些內容泄露了您的隱私?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)

侵犯了我企業的權益

×

您好,當您發現根叔知了上有關於您企業的造謠與誹謗、商業侵權等內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到 pub.zhiliao@h3c.com 郵箱,我們會在審核後盡快給您答複。
  • 1. 您舉報的內容是什麼?(請在郵件中列出您舉報的內容和鏈接地址)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
  • 3. 是哪家企業?(營業執照,單位登記證明等證件)
  • 4. 您與該企業的關係是?(您是企業法人或被授權人,需提供企業委托授權書)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

抄襲了我的內容

×

原文鏈接或出處

誹謗我

×

您好,當您發現根叔知了上有誹謗您的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您舉報的內容以及侵犯了您什麼權益?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

對根叔知了社區有害的內容

×

垃圾廣告信息
色情、暴力、血腥等違反法律法規的內容
政治敏感
不規範轉載 >
辱罵、歧視、挑釁等(不友善)
騷擾我
誘導投票

不規範轉載

×

舉報說明

提出建議

    +

親~登錄後才可以操作哦!

確定

親~檢測到您登陸的賬號未在http://hclhub.h3c.com進行注冊

注冊後可訪問此模塊

跳轉hclhub

你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作