• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

H3C S6890係列以太網交換機 典型配置舉例-Release 27xx係列-6W100

目錄

55-Smart Link典型配置舉例

本章節下載 55-Smart Link典型配置舉例  (312.80 KB)

55-Smart Link典型配置舉例

H3C S6890產品Smart Link配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

資料版本:6W100-20190628

 

Copyright © 2019 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。



1  簡介

本文檔介紹了Smart Link配置舉例。

2  配置前提

本文檔不嚴格與具體軟、硬件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

本文檔假設您已了解Smart Link、Monitor Link和IRF特性。

3  使用限製

請勿將一個端口同時加入聚合組和Smart Link組,否則該端口在Smart Link組中將不會生效,也無法使用display smart-link group命令查看到。

4  Smart Link組負載分擔配置舉例

4.1  組網需求

圖1所示,某企業財務部和市場部分別使用VLAN 10和VLAN 11,出於可靠性考慮,接入設備Device A提供兩條鏈路雙上行到彙聚設備Device D。現要求如下:

·     通過配置Smart Link來實現鏈路備份和負載分擔。財務部優先使用Device A—>Device B路徑轉發數據流量,市場部優先使用Device A—>Device C路徑轉發數據流量。

·     當Device A到Device B、Device C的兩條上行鏈路都正常時,財務部和市場部的數據流量分別通過不同路徑轉發;當其中一條鏈路出現故障時,Smart Link功能會將故障鏈路上的流量快速切換到另一條鏈路上;當鏈路故障恢複時,Smart Link功能又會將數據流量及時切換回原來的轉發路徑。

圖1 Smart Link組配置組網圖

設備

接口

VLAN

設備

接口

VLAN

Device A

XGE1/0/1

10、11

Device C

XGE1/0/1

10、11

 

XGE1/0/2

10、11

 

XGE1/0/2

10、11

 

XGE1/0/3

10

Device D

XGE1/0/1

10、11

 

XGE1/0/4

11

 

XGE1/0/2

10、11

Device B

XGE1/0/1

10、11

 

XGE1/0/3

10、11

 

XGE1/0/2

10、11

 

 

 

 

4.2  配置思路

為了實現流量在兩條上行鏈路上的負載分擔,需在Device A創建兩個Smart Link組,不同Smart Link組包含相同的成員端口,但同一端口在不同Smart Link組內角色不同,且財務部和市場部使用的VLAN分別為這兩個Smart Link組的保護VLAN。

為了實現鏈路故障恢複時,財務部和市場部的數據流量仍能切換回各自原來的路徑轉發,需要為兩個Smart Link組都配置角色搶占模式。

為了避免當Smart Link組中的主從鏈路切換時,由於上遊設備上的MAC地址轉發表項和ARP/ND表項沒有及時更新,而導致下行數據流量發生中斷,需要在Device A上配置發送Flush報文功能,處於從Device A到Device D主、從鏈路上的端口都需要使能接收Flush報文功能。

4.3  使用版本

本舉例是在S6890-CMW710-R2712版本上進行配置和驗證的。

4.4  配置注意事項

·     如果欲配置某端口為Smart Link組的成員端口(主端口或從端口),請先手工關閉該端口,並待Smart Link組配置完成後再開啟該端口,以避免形成環路,導致廣播風暴。

·     在配置Smart Link組的成員端口及其直連端口之前,請確認端口未啟用STP或者RRPP功能。

·     上遊設備上配置的接收處理Flush報文的控製VLAN和在Smart Link設備上配置的發送控製VLAN需要相同。

·     不同的Smart Link組需要配置不同的控製VLAN。Smart Link組的控製VLAN應同時為該Smart Link組的保護VLAN,且不要將已配置為控製VLAN的VLAN刪除,否則會影響Flush報文的發送。

·     缺省情況下,S6890係列交換機的接口處於ADM(Administratively Down)狀態,請根據實際需要在對應接口視圖下使用undo shutdown命令開啟接口。

4.5  配置步驟

4.5.1  Device A的配置

# 關閉端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2,並配置端口為Trunk端口,允許VLAN 10、VLAN 11流量通過,並關閉STP。

<DeviceA> system-view

[DeviceA] vlan 10 to 11

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceA-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceA-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet1/0/2] undo stp enable

[DeviceA-Ten-GigabitEthernet1/0/2] quit

# 配置端口Ten-GigabitEthernet1/0/3、Ten-GigabitEthernet1/0/4為Access端口,分別允許VLAN 10和VLAN 11流量通過。

[DeviceA] interface ten-gigabitethernet 1/0/3

[DeviceA-Ten-GigabitEthernet1/0/3] port access vlan 10

[DeviceA-Ten-GigabitEthernet1/0/3] quit

[DeviceA] interface ten-gigabitethernet 1/0/4

[DeviceA-Ten-GigabitEthernet1/0/4] port access vlan 11

[DeviceA-Ten-GigabitEthernet1/0/4] quit

# 將VLAN 10映射到MSTI 1、VLAN 11映射到MSTI 2上,並激活MST域的配置。

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 10

[DeviceA-mst-region] instance 2 vlan 11

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 創建Smart Link組1,並配置其保護VLAN為MSTI 1所映射的VLAN。

[DeviceA] smart-link group 1

[DeviceA-smlk-group1] protected-vlan reference-instance 1

# 配置端口Ten-GigabitEthernet1/0/1為主端口,Ten-GigabitEthernet1/0/2為從端口。

[DeviceA-smlk-group1] port ten-gigabitethernet 1/0/1 primary

[DeviceA-smlk-group1] port ten-gigabitethernet 1/0/2 secondary

# 使能發送Flush報文。

[DeviceA-smlk-group1] flush enable control-vlan 10

# 配置搶占模式,配置延時搶占時間為10秒。

[DeviceA-smlk-group1] preemption mode role

[DeviceA-smlk-group1] preemption delay 10

[DeviceA-smlk-group1] quit

# 創建Smart Link組2,並配置其保護VLAN為MSTI 2所映射的VLAN。

[DeviceA] smart-link group 2

[DeviceA-smlk-group2] protected-vlan reference-instance 2

# 配置端口Ten-GigabitEthernet1/0/2為主端口,Ten-GigabitEthernet1/0/1為從端口。

[DeviceA-smlk-group2] port ten-gigabitethernet 1/0/2 primary

[DeviceA-smlk-group2] port ten-gigabitethernet 1/0/1 secondary

# 使能發送Flush報文。

[DeviceA-smlk-group2] flush enable control-vlan 11

# 配置搶占模式,配置默認的延時搶占時間為10秒。

[DeviceA-smlk-group2] preemption mode role

[DeviceA-smlk-group2] preemption delay 10

[DeviceA-smlk-group2] quit

# 開啟端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2。

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] quit

4.5.2  Device B的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 10、VLAN 11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceB> system-view

[DeviceB] vlan 10 to 11

[DeviceB] interface ten-gigabitethernet 1/0/1

[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceB-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceB-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceB-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceB-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10、VLAN 11流量通過,使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceB-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceB-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceB-Ten-GigabitEthernet1/0/2] quit

4.5.3  Device C的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 10、VLAN 11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceC> system-view

[DeviceC] vlan 10 to 11

[DeviceC] interface ten-gigabitethernet 1/0/1

[DeviceC-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceC-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10、VLAN 11流量通過,使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

[DeviceC] interface ten-gigabitethernet 1/0/2

[DeviceC-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] quit

4.5.4  Device D的配置

# 配置端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3為Trunk端口,允許VLAN 10、VLAN 11的流量通過;Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceD> system-view

[DeviceD] vlan 10 to 11

[DeviceD] interface ten-gigabitethernet 1/0/1

[DeviceD-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/1] quit

[DeviceD] interface ten-gigabitethernet 1/0/2

[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] quit

[DeviceD] interface ten-gigabitethernet 1/0/3

[DeviceD-Ten-GigabitEthernet1/0/3] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/3] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/3] quit

4.6  驗證配置

(1)     當Device A正常工作時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   ACTIVE  0               NA

  XGE1/0/2                SECONDARY STANDBY 2               16:22:40 2014/12/29

 

Smart link group 2 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 11

  Protected VLAN  : Reference Instance 2

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/2                PRIMARY   ACTIVE  2               16:22:40 2014/12/29

  XGE1/0/1                SECONDARY STANDBY 0               NA

上述信息表示,在Smart Link組1中,Device A的Ten-GigabitEthernet1/0/1是主端口,負責轉發VLAN 10的流量;在Smart Link組2中,Device A的Ten-GigabitEthernet1/0/2是主端口,負責轉發VLAN 11的流量。

(2)     當Device A的Ten-GigabitEthernet1/0/1接口Down時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   DOWN    0               NA

  XGE1/0/2                SECONDARY ACTIVE  3               16:43:06 2014/12/29

 

Smart link group 2 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 11

  Protected VLAN  : Reference Instance 2

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/2                PRIMARY   ACTIVE  2               16:22:40 2014/12/29

  XGE1/0/1                SECONDARY DOWN    0               NA

上述信息表示,Ten-GigabitEthernet1/0/1接口Down時,在Smart Link組1中,Device A的Ten-GigabitEthernet1/0/2負責轉發VLAN 10的流量;在Smart Link組2中,Device A的Ten-GigabitEthernet1/0/2仍然是主端口,負責轉發VLAN 11的流量。

# 通過使用display smart-link flush命令可以查看Device B上收到的Flush報文信息。

[DeviceB] display smart-link flush

 Received flush packets                       : 1

 Receiving interface of the last flush packet : Ten-GigabitEthernet1/0/2

 Receiving time of the last flush packet      : 16:43:08 2014/10/29

 Device ID of the last flush packet           : 0000-fc00-2500

 Control VLAN of the last flush packet        : 10

4.7  配置文件

·     Device A:

#

vlan 1

#

vlan 10 to 11

#

stp region-configuration

 instance 1 vlan 10

 instance 2 vlan 11

 active region-configuration

#

smart-link group 1

 preemption mode role

 preemption delay 10

 flush enable control-vlan 10

 protected-vlan reference-instance 1

#

smart-link group 2

 preemption mode role

 preemption delay 10

 flush enable control-vlan 11

 protected-vlan reference-instance 2

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 port smart-link group 1 primary

 port smart-link group 2 secondary

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 port smart-link group 1 secondary

 port smart-link group 2 primary

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port access vlan 10

#

interface Ten-GigabitEthernet1/0/4

 port link-mode bridge

 port access vlan 11

#

·     Device B:

#

vlan 1

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

·     Device C:

#

vlan 1

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

·     Device D:

#

vlan 1

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

#

5  Smart Link與Monitor Link聯動配置舉例

5.1  組網需求

圖2所示,區域A和區域B分別使用VLAN 10和VLAN 11,出於可靠性考慮,接入層設備Device A和Device B都提供兩條鏈路分別雙上行到彙聚層設備Device C和Device D。現要求如下:

·     Device A和Device B設備通過配置Smart Link來實現鏈路備份。

·     當Device A到Device C和Device D的兩條上行鏈路都正常時,區域A的數據流量優先通過Device A—>Device C的路徑轉發。當該鏈路出現故障時,Smart Link功能會將故障鏈路上的流量快速切換到Device A—>Device D的鏈路上。當鏈路故障恢複時,Smart Link功能又會將數據流量及時切換回原來的轉發路徑。

·     當Device B到Device C和Device D的兩條上行鏈路都正常時,區域B的數據流量優先通過Device B—>Device D的路徑轉發。當該鏈路出現故障時,Smart Link功能會將故障鏈路上的流量快速切換到Device B—>Device C的鏈路上。當鏈路故障恢複時,Smart Link功能又會將數據流量及時切換回原來的轉發路徑。

·     通過配置Smart Link和Monitor Link聯動,確保Device C和Device D的上行接口出現故障時能夠快速感知並將下行接口的狀態變為Down,觸發Smart Link進行鏈路切換,從而最大可能地避免區域A和區域B與外部通信中斷。

圖2 Smart Link+Monitor Link組配置組網圖

設備

接口

VLAN

設備

接口

VLAN

Device A

XGE1/0/1

10

Device D

XGE1/0/1

11

 

XGE1/0/2

10

 

XGE1/0/2

10、11

 

XGE1/0/3

10

 

XGE1/0/3

10

Device B

XGE1/0/1

11

Device E

XGE1/0/1

10、11

 

XGE1/0/2

11

 

XGE1/0/2

10、11

 

XGE1/0/3

11

 

XGE1/0/3

10、11

Device C

XGE1/0/1

10

 

 

 

 

XGE1/0/2

10、11

 

 

 

 

XGE1/0/3

11

 

 

 

 

5.2  配置思路

為了實現Device A和Device B的鏈路備份,需在Device A和Device B上分別創建一個Smart Link組,區域A和區域B的VLAN分別為這兩個Smart Link組的保護VLAN。

為了實現鏈路故障恢複時,區域A和區域B的數據流量仍能切換回各自原來的路徑轉發,需要為兩個Smart Link組都配置角色搶占模式。

為了避免當Smart Link組中的主從鏈路切換時,由於上遊設備上的MAC地址轉發表項和ARP/ND表項沒有及時更新,而導致下行數據流量發生中斷,需要在Device A和Device B上配置發送Flush報文功能,Device C和Device D的下行端口都需要使能接收Flush報文功能。

5.3  使用版本

本舉例是在S6890-CMW710-R2712版本上進行配置和驗證的。

5.4  配置注意事項

·     如果欲配置某端口為Smart Link組的成員端口(主端口或從端口),請先手工關閉該端口,並待Smart Link組配置完成後再開啟該端口,以避免形成環路,導致廣播風暴。

·     在配置Smart Link組的成員端口及其直連端口之前,請確認端口未啟用STP或者RRPP功能。

·     上遊設備上配置的接收處理Flush報文的控製VLAN和在Smart Link設備上配置的發送控製VLAN需要相同。

·     不同的Smart Link組需要配置不同的控製VLAN。Smart Link組的控製VLAN應同時為該Smart Link組的保護VLAN,且不要將已配置為控製VLAN的VLAN刪除,否則會影響Flush報文的發送。

·     一個接口隻能屬於一個Monitor Link組。

·     請勿通過shutdownundo shutdown命令手動開啟或關閉接口來改變Monitor Link組中下行接口的狀態。

·     缺省情況下,S6890係列交換機的接口處於ADM(Administratively Down)狀態,請根據實際需要在對應接口視圖下使用undo shutdown命令開啟接口。

5.5  配置步驟

5.5.1  Device A的配置

# 關閉端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2,並配置端口為Trunk端口,允許VLAN 10流量通過,並關閉STP。

<DeviceA> system-view

[DeviceA] vlan 10 to 11

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10

[DeviceA-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10

[DeviceA-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet1/0/2] undo stp enable

[DeviceA-Ten-GigabitEthernet1/0/2] quit

# 配置端口Ten-GigabitEthernet1/0/3為Access端口,允許VLAN 10流量通過。

[DeviceA] interface ten-gigabitethernet 1/0/3

[DeviceA-Ten-GigabitEthernet1/0/3] port access vlan 10

[DeviceA-Ten-GigabitEthernet1/0/3] quit

# 將VLAN 10映射到MSTI 1上,並激活MST域的配置。

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 10

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 創建Smart Link組1,並配置其保護VLAN為MSTI 1所映射的VLAN。

[DeviceA] smart-link group 1

[DeviceA-smlk-group1] protected-vlan reference-instance 1

# 配置端口Ten-GigabitEthernet1/0/1為主端口,Ten-GigabitEthernet1/0/2為從端口。

[DeviceA-smlk-group1] port ten-gigabitethernet 1/0/1 primary

[DeviceA-smlk-group1] port ten-gigabitethernet 1/0/2 secondary

# 使能發送Flush報文。

[DeviceA-smlk-group1] flush enable control-vlan 10

# 配置搶占模式,配置延時搶占時間為10秒。

[DeviceA-smlk-group1] preemption mode role

[DeviceA-smlk-group1] preemption delay 10

[DeviceA-smlk-group1] quit

# 開啟端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2。

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] quit

5.5.2  Device B的配置

# 關閉端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2,並配置端口為Trunk端口,允許VLAN 11流量通過,並關閉STP。

<DeviceB> system-view

[DeviceB] vlan 10 to 11

[DeviceB] interface ten-gigabitethernet 1/0/1

[DeviceB-Ten-GigabitEthernet1/0/1] shutdown

[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 11

[DeviceB-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceB-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceB-Ten-GigabitEthernet1/0/1] quit

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] shutdown

[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 11

[DeviceB-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceB-Ten-GigabitEthernet1/0/2] undo stp enable

[DeviceB-Ten-GigabitEthernet1/0/2] quit

# 配置端口Ten-GigabitEthernet1/0/3為Access端口,分別允許VLAN 11流量通過。

[DeviceB] interface ten-gigabitethernet 1/0/3

[DeviceB-Ten-GigabitEthernet1/0/3] port access vlan 11

[DeviceB-Ten-GigabitEthernet1/0/3] quit

# 將VLAN 11映射到MSTI 1上,並激活MST域的配置。

[DeviceB] stp region-configuration

[DeviceB-mst-region] instance 1 vlan 11

[DeviceB-mst-region] active region-configuration

[DeviceB-mst-region] quit

# 創建Smart Link組1,並配置其保護VLAN為MSTI 1所映射的VLAN。

[DeviceB] smart-link group 1

[DeviceB-smlk-group1] protected-vlan reference-instance 1

# 配置端口Ten-GigabitEthernet1/0/1為主端口,Ten-GigabitEthernet1/0/2為從端口。

[DeviceB-smlk-group1] port ten-gigabitethernet 1/0/1 primary

[DeviceB-smlk-group1] port ten-gigabitethernet 1/0/2 secondary

# 使能發送Flush報文。

[DeviceB-smlk-group1] flush enable control-vlan 11

# 配置搶占模式,配置延時搶占時間為10秒。

[DeviceB-smlk-group1] preemption mode role

[DeviceB-smlk-group1] preemption delay 10

[DeviceB-smlk-group1] quit

# 開啟端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/2。

[DeviceB] interface ten-gigabitethernet 1/0/1

[DeviceB-Ten-GigabitEthernet1/0/1] undo shutdown

[DeviceB-Ten-GigabitEthernet1/0/1] quit

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] undo shutdown

[DeviceB-Ten-GigabitEthernet1/0/2] quit

5.5.3  Device C的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 10流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10。

<DeviceC> system-view

[DeviceC] vlan 10 to 11

[DeviceC] interface ten-gigabitethernet 1/0/1

[DeviceC-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10

[DeviceC-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceC-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10

[DeviceC-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10、VLAN11流量通過,並使能Flush報文接收。

[DeviceC] interface ten-gigabitethernet 1/0/2

[DeviceC-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] quit

# 配置端口Ten-GigabitEthernet1/0/3為Trunk端口,允許VLAN 11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 11。

[DeviceC] interface ten-gigabitethernet 1/0/3

[DeviceC-Ten-GigabitEthernet1/0/3] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/3] port trunk permit vlan 11

[DeviceC-Ten-GigabitEthernet1/0/3] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/3] undo stp enable

[DeviceC-Ten-GigabitEthernet1/0/3] smart-link flush enable control-vlan 11

[DeviceC-Ten-GigabitEthernet1/0/3] quit

# 創建Monitor Link組1。

[DeviceC] monitor-link group 1

# 配置觸發Monitor Link組狀態切換的上行接口閾值為1。

[DeviceC-mtlk-group1] uplink up-port-threshold 1

# Ten-GigabitEthernet1/0/2配置為上行接口,Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/3配置為下行接口。

[DeviceC-mtlk-group1] port ten-gigabitethernet 1/0/2 uplink

[DeviceC-mtlk-group1] port ten-gigabitethernet 1/0/1 downlink

[DeviceC-mtlk-group1] port ten-gigabitethernet 1/0/3 downlink

[DeviceC-mtlk-group1] quit

5.5.4  Device D的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 11。

<DeviceD> system-view

[DeviceD] vlan 10 to 11

[DeviceD] interface ten-gigabitethernet 1/0/1

[DeviceD-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 11

[DeviceD-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceD-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 11

[DeviceD-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10、VLAN11流量通過,並使能Flush報文接收。

[DeviceD] interface ten-gigabitethernet 1/0/2

[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] quit

# 配置端口Ten-GigabitEthernet1/0/3為Trunk端口,允許VLAN 10流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10。

[DeviceD] interface ten-gigabitethernet 1/0/3

[DeviceD-Ten-GigabitEthernet1/0/3] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10

[DeviceD-Ten-GigabitEthernet1/0/3] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/3] undo stp enable

[DeviceD-Ten-GigabitEthernet1/0/3] smart-link flush enable control-vlan 10

[DeviceD-Ten-GigabitEthernet1/0/3] quit

# 創建Monitor Link組1。

[DeviceD] monitor-link group 1

# 配置觸發Monitor Link組狀態切換的上行接口閾值為1。

[DeviceD-mtlk-group1] uplink up-port-threshold 1

# Ten-GigabitEthernet1/0/2配置為上行接口,Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/3配置為下行接口。

[DeviceD-mtlk-group1] port ten-gigabitethernet 1/0/2 uplink

[DeviceD-mtlk-group1] port ten-gigabitethernet 1/0/1 downlink

[DeviceD-mtlk-group1] port ten-gigabitethernet 1/0/3 downlink

[DeviceD-mtlk-group1] quit

5.5.5  Device E的配置

# 配置端口Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2、Ten-GigabitEthernet1/0/3為Trunk端口,允許VLAN 10、VLAN 11的流量通過;Ten-GigabitEthernet1/0/1、Ten-GigabitEthernet1/0/2使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceE> system-view

[DeviceE] vlan 10 to 11

[DeviceE] interface ten-gigabitethernet 1/0/1

[DeviceE-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceE-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceE-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceE-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceE-Ten-GigabitEthernet1/0/1] quit

[DeviceE] interface ten-gigabitethernet 1/0/2

[DeviceE-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceE-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceE-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceE-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceE-Ten-GigabitEthernet1/0/2] quit

[DeviceE] interface ten-gigabitethernet 1/0/3

[DeviceE-Ten-GigabitEthernet1/0/3] port link-type trunk

[DeviceE-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10 11

[DeviceE-Ten-GigabitEthernet1/0/3] undo port trunk permit vlan 1

[DeviceE-Ten-GigabitEthernet1/0/3] quit

5.6  驗證配置

(1)     當Device A和Device B正常工作時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   ACTIVE  1               17:37:49 2014/12/29

  XGE1/0/2                SECONDARY STANDBY 3               17:43:06 2014/12/29

# 查看Device B上的Smart Link組的信息。

[DeviceB] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc01-2501

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 11

  Protected VLAN  : Reference Instance 2

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   ACTIVE  2               17:22:40 2014/12/29

  XGE1/0/2                SECONDARY STANDBY 0               NA

上述信息表示,在Device A設備的Smart Link組1中,Device A的Ten-GigabitEthernet1/0/1是主端口,負責轉發VLAN 10的流量;在Device B設備的Smart Link組1中,Device B的Ten-GigabitEthernet1/0/1是主端口,負責轉發VLAN 11的流量。

(2)     當Device C和Device D正常工作時,查看Monitor Link組的信息

# 查看Device C上的Monitor Link組的信息。

[DeviceC] display monitor-link group all

Monitor link group 1 information:

  Group status     : UP

  Downlink up-delay: 0(s)

  Last-up-time     : 17:07:26 2014/12/29

  Last-down-time   : -

  Up-port-threshold: 1

 

  Member                    Role       Status

  --------------------------------------------

  XGE1/0/2                  UPLINK     UP

  XGE1/0/1                  DOWNLINK   UP

  XGE1/0/3                  DOWNLINK   UP

 

# 查看Device D上的Monitor Link組的信息。

[DeviceD] display monitor-link group all

Monitor link group 1 information:

  Group status     : UP

  Downlink up-delay: 0(s)

  Last-up-time     : 17:09:33 2014/12/29

  Last-down-time   : -

  Up-port-threshold: 1

 

  Member                    Role       Status

  --------------------------------------------

  XGE1/0/2                  UPLINK     UP

  XGE1/0/1                  DOWNLINK   UP

  XGE1/0/3                  DOWNLINK   UP

上述信息表示,Device C設備的Monitor Link 1中,Ten-GigabitEthernet1/0/2為上行接口,Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/3為下行接口;Device D設備的Monitor Link 2中,Ten-GigabitEthernet1/0/2為上行接口,Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet1/0/3為下行接口。

(3)     當Device A的Ten-GigabitEthernet1/0/1接口Down時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   DOWN    1               17:37:49 2014/12/29

  XGE1/0/2                SECONDAR  ACTIVE 4               17:49:06 2014/12/29

上述信息表示,Device A的Ten-GigabitEthernet1/0/1接口Down時,在Smart Link組1中, Ten-GigabitEthernet1/0/2負責轉發VLAN 10的流量。

# 通過使用display smart-link flush命令可以查看Device C上收到的Flush報文信息。

[DeviceC] display smart-link flush

 Received flush packets                       : 1

 Receiving interface of the last flush packet : Ten-GigabitEthernet1/0/2

 Receiving time of the last flush packet      : 17:49:08 2014/12/29

 Device ID of the last flush packet           : 0000-fc00-2500

 Control VLAN of the last flush packet        : 10

(4)     當Device C的上行接口Ten-GigabitEthernet1/0/2的狀態變為Down時,查看Monitor Link組的信息

# 查看Device C上的Monitor Link組的信息。

[DeviceC] display monitor-link group all

Monitor link group 1 information:

  Group status     : DOWN

  Downlink up-delay: 0(s)

  Last-up-time     : 17:07:26 2014/12/29

  Last-down-time   : 18:01:05 2014/12/29

  Up-port-threshold: 1

 

  Member                    Role       Status

  --------------------------------------------

  XGE1/0/2                  UPLINK     DOWN

  XGE1/0/1                  DOWNLINK   DOWN

  XGE1/0/3                  DOWNLINK   DOWN

# 查看Device D上的Monitor Link組的信息。

[DeviceD] display monitor-link group all

Monitor link group 1 information:

  Group status     : UP

  Downlink up-delay: 0(s)

  Last-up-time     : 17:09:33 2014/12/29

  Last-down-time   : -

  Up-port-threshold: 1

 

  Member                    Role       Status

  --------------------------------------------

  XGE1/0/2                  UPLINK     UP

  XGE1/0/1                  DOWNLINK   UP

  XGE1/0/3                  DOWNLINK   UP

上述信息表示,Device C設備的Ten-GigabitEthernet1/0/2狀態變為Down時,Device C上的Monitor Link 1的狀態變為Down,所有下行接口的狀態變為Down。

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 0000-fc00-2500

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   DOWN    2               17:57:49 2014/12/29

  XGE1/0/2                SECONDAR  ACTIVE 5               18:01:06 2014/12/29

上述信息表示,Device A的Ten-GigabitEthernet1/0/1狀態也變為Down,在Smart Link組1中, Ten-GigabitEthernet1/0/2負責轉發VLAN 10的流量。

5.7  配置文件

·     Device A:

#

vlan 1

#

vlan 10

#

stp region-configuration

 instance 1 vlan 10

active region-configuration

#

smart-link group 1

 preemption mode role

 preemption delay 10

 flush enable control-vlan 10

 protected-vlan reference-instance 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10

 undo stp enable

 port smart-link group 1 primary

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10

 undo stp enable

 port smart-link group 1 secondary

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port access vlan 10

#

·     Device B:

#

vlan 1

#

vlan 11

#

stp region-configuration

 instance 1 vlan 11

active region-configuration

#

smart-link group 1

 preemption mode role

 preemption delay 10

 flush enable control-vlan 11

 protected-vlan reference-instance 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 undo stp enable

 port smart-link group 1 primary

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 undo stp enable

 port smart-link group 1 secondary

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port access vlan 11

#

·     Device C:

#

vlan 1

#

vlan 10 to 11

#

monitor-link group 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10

 undo stp enable

 smart-link flush enable control-vlan 10

 port monitor-link group 1 downlink

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

 port monitor-link group 1 uplink

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 undo stp enable

 smart-link flush enable control-vlan 11

 port monitor-link group 1 downlink

#

·     Device D:

#

vlan 1

#

vlan 10 to 11

#

monitor-link group 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 11

 undo stp enable

 smart-link flush enable control-vlan 11

 port monitor-link group 1 downlink

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

 port monitor-link group 1 uplink

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10

 undo stp enable

 smart-link flush enable control-vlan 10

 port monitor-link group 1 downlink

#

·     Device E:

#

vlan 1

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

#

6  在IRF中應用Smart Link典型配置舉例

6.1  組網需求

圖3所示,某企業財務部和市場部分別使用VLAN 10和VLAN 11接入Device A和Device B。為了擴展性考慮,接入層設備Device A和Device B組成IRF,接入彙聚層設備Device C和Device D。現要求如下:

·     接入層設備通過配置Smart Link來實現鏈路備份。

·     當Device A和Device B的上行鏈路都正常時,財務部和市場部的數據流量通過Device A—>Device C的路徑進行轉發;當該鏈路出現故障時,Smart Link功能會將故障鏈路上的流量快速切換到另一條鏈路上;當鏈路故障恢複時,Smart Link功能又會將數據流量及時切換回原來的轉發路徑。

圖3 Smart Link +IRF組配置組網圖

設備

接口

VLAN

設備

接口

VLAN

Device A

XGE1/0/1

10、11

Device B

XGE2/0/1

10、11

 

XGE1/0/3

10

 

XGE2/0/3

11

Device C

XGE1/0/1

10、11

Device D

XGE1/0/1

10、11

 

XGE1/0/2

10、11

 

XGE1/0/2

10、11

 

6.2  配置思路

為了實現Device A和Device B的鏈路備份,需在Device A 和Device B上創建一個Smart Link組,財務部和市場部的VLAN為這個Smart Link組的保護VLAN。

為了實現鏈路故障恢複時,財務部和市場部的數據流量仍能切換回各自原來的路徑轉發,需要為兩個Smart Link組都配置角色搶占模式。

為了避免當Smart Link組中的主從鏈路切換時,由於上遊設備上的MAC地址轉發表項和ARP/ND表項沒有及時更新,而導致下行數據流量發生中斷,需要在Device A和Device B上配置發送Flush報文功能,Device C、Device D的ten-gigabitethernet 1/0/1端口需要使能接收Flush報文功能。

6.3  使用版本

本舉例是在S6890-CMW710-R2712版本上進行配置和驗證的。

6.4  配置注意事項

·     如果欲配置某端口為Smart Link組的成員端口(主端口或從端口),請先手工關閉該端口,並待Smart Link組配置完成後再開啟該端口,以避免形成環路,導致廣播風暴。

·     在配置Smart Link組的成員端口及其直連端口之前,請確認端口未啟用STP或者RRPP功能。

·     上遊設備上配置的接收處理Flush報文的控製VLAN和在Smart Link設備上配置的發送控製VLAN需要相同。

·     Smart Link組的控製VLAN應同時為該Smart Link組的保護VLAN,且不要將已配置為控製VLAN的VLAN刪除,否則會影響Flush報文的發送。

·     有關IRF的配置注意事項,請參見“虛擬化技術配置指導”中的“IRF”。

·     缺省情況下,S6890係列交換機的接口處於ADM(Administratively Down)狀態,請根據實際需要在對應接口視圖下使用undo shutdown命令開啟接口。

6.5  配置步驟

6.5.1  搭建IRF

1. Device A的配置

# 將Device A的成員編號配置為1。

<DeviceA> system-view

[DeviceA] irf member 1

# 配置IRF端口1/2,並將它與物理端口Ten-GigabitEthernet1/0/2綁定,並保存配置。

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] quit

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/0/2

[DeviceA-irf-port1/2] quit

[DeviceA] interface ten-gigabitethernet 1/0/2

[DeviceA-Ten-GigabitEthernet1/0/2] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/2] quit

[DeviceA] save

# 激活IRF端口下的配置。

[DeviceA] irf-port-configuration active

2. Device B的配置

# 將Device B的成員編號配置為2,並重啟設備使新編號生效。

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

Warning: Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y

[DeviceB] quit

<DeviceB> reboot

# 參照圖3進行物理連線。

# 重新登錄到設備,配置IRF端口2/1,並將它與物理端口Ten-GigabitEthernet1/0/2綁定,並保存配置。

<DeviceB> system-view

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] shutdown

[DeviceB-Ten-GigabitEthernet1/0/2] quit

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface ten-gigabitEthernet 1/0/2

[DeviceB-irf-port2/1] quit

[DeviceB] interface ten-gigabitethernet 1/0/2

[DeviceB-Ten-GigabitEthernet1/0/2] undo shutdown

[DeviceB-Ten-GigabitEthernet1/0/2] quit

[DeviceB] save

# 激活IRF端口下的配置。

[DeviceB] irf-port-configuration active

Device A和Device B間將會進行主設備競選,競選失敗的一方將重啟,重啟完成後,IRF形成。

6.5.2  配置Smart Link

1. Device A的配置

# 關閉端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet2/0/1,並配置端口為Trunk端口,允許VLAN 10、VLAN 11流量通過,並關閉STP。

<DeviceA> system-view

[DeviceA] vlan 10 to 11

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceA-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceA-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 2/0/1

[DeviceA-Ten-GigabitEthernet2/0/1] shutdown

[DeviceA-Ten-GigabitEthernet2/0/1] port link-type trunk

[DeviceA-Ten-GigabitEthernet2/0/1] port trunk permit vlan 10 11

[DeviceA-Ten-GigabitEthernet2/0/1] undo port trunk permit vlan 1

[DeviceA-Ten-GigabitEthernet2/0/1] undo stp enable

[DeviceA-Ten-GigabitEthernet2/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/3為Access端口,允許VLAN 10流量通過。

[DeviceA] interface ten-gigabitethernet 1/0/3

[DeviceA-Ten-GigabitEthernet1/0/3] port access vlan 10

[DeviceA-Ten-GigabitEthernet1/0/3] quit

# 配置端口Ten-GigabitEthernet2/0/3為Access端口,允許VLAN 11流量通過。

[DeviceA] interface ten-gigabitethernet 2/0/3

[DeviceA-Ten-GigabitEthernet2/0/3] port access vlan 11

[DeviceA-Ten-GigabitEthernet2/0/3] quit

# 將VLAN 10和VLAN 11映射到MSTI 1上,並激活MST域的配置。

[DeviceA] stp region-configuration

[DeviceA-mst-region] instance 1 vlan 10 11

[DeviceA-mst-region] active region-configuration

[DeviceA-mst-region] quit

# 創建Smart Link組1,並配置其保護VLAN為MSTI 1所映射的VLAN。

[DeviceA] smart-link group 1

[DeviceA-smlk-group1] protected-vlan reference-instance 1

# 配置端口Ten-GigabitEthernet1/0/1為主端口,Ten-GigabitEthernet2/0/1為從端口。

[DeviceA-smlk-group1] port ten-gigabitethernet 1/0/1 primary

[DeviceA-smlk-group1] port ten-gigabitethernet 2/0/1 secondary

# 使能發送Flush報文。

[DeviceA-smlk-group1] flush enable control-vlan 10

# 配置搶占模式,配置延時搶占時間為10秒。

[DeviceA-smlk-group1] preemption mode role

[DeviceA-smlk-group1] preemption delay 10

[DeviceA-smlk-group1] quit

# 開啟端口Ten-GigabitEthernet1/0/1和Ten-GigabitEthernet2/0/1。

[DeviceA] interface ten-gigabitethernet 1/0/1

[DeviceA-Ten-GigabitEthernet1/0/1] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/1] quit

[DeviceA] interface ten-gigabitethernet 2/0/1

[DeviceA-Ten-GigabitEthernet2/0/1] undo shutdown

[DeviceA-Ten-GigabitEthernet2/0/1] quit

2. Device C的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 10和11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceC> system-view

[DeviceC] vlan 10 to 11

[DeviceC] interface ten-gigabitethernet 1/0/1

[DeviceC-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceC-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10和11流量通過,使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

[DeviceC] interface ten-gigabitethernet 1/0/2

[DeviceC-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceC-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceC-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceC-Ten-GigabitEthernet1/0/2] quit

3. Device D的配置

# 配置端口Ten-GigabitEthernet1/0/1為Trunk端口,允許VLAN 10和11流量通過,在該端口上關閉STP並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

<DeviceD> system-view

[DeviceD] vlan 10 to 11

[DeviceD] interface ten-gigabitethernet 1/0/1

[DeviceD-Ten-GigabitEthernet1/0/1] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/1] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/1] undo stp enable

[DeviceD-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/1] quit

# 配置端口Ten-GigabitEthernet1/0/2為Trunk端口,允許VLAN 10和11流量通過,並使能Flush報文接收,並指定接收Flush報文的控製VLAN為VLAN 10和11。

[DeviceD] interface ten-gigabitethernet 1/0/2

[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk

[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1

[DeviceD-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 11

[DeviceD-Ten-GigabitEthernet1/0/2] quit

6.6  驗證配置

(1)     配置完成後,查看IRF的相關信息

# 在Device A上查看IRF的相關信息。(集中式設備)

<Sysname> display irf

MemberID  Role     Priority    CPU-Mac           Description

 *+1      Master   1           0210-fc01-0001    -----

   2      Standby  1           0210-fc02-0002    -----

--------------------------------------------------------

 

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The Bridge MAC of the IRF is: 00e0-fc00-1000

 Auto upgrade                   : yes

 Mac persistent                 : 6 min

 Domain ID                      : 0

 IRF mode                       : normal

以上顯示信息表明IRF已經成功建立。

# 在Device A上查看IRF的相關信息。(分布式設備)

[DeviceA] display irf

MemberID  Slot  Role    Priority  CPU-Mac         Description

 *+1      1     Master  1         0210-fc01-0001  -----

   2      0     Standby 1         0210-fc02-0002  -----

--------------------------------------------------

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The bridge MAC of the IRF is: 00e0-fc00-c518

 Auto upgrade                : yes

 Mac persistent              : 6 min

 Domain ID                   : 0

 Auto merge                  : yes

 IRF mode                    : normal

以上顯示信息表明IRF已經成功建立。

(2)     當Device A正常工作時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 00e0-fc00-c518

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   ACTIVE  3               18:16:44 2014/12/29

  XGE2/0/1                SECONDARY STANDBY 0               NA

上述信息表示,在Smart Link組1中,Device A的Ten-GigabitEthernet1/0/1是主端口,負責轉發VLAN 10和VLAN 11的流量,Device B的Ten-GigabitEthernet2/0/1是從端口,作為備份端口。

(3)     當Device A的Ten-GigabitEthernet1/0/1接口Down時,查看Smart Link組的信息

# 查看Device A上的Smart Link組的信息。

[DeviceA] display smart-link group all

Smart link group 1 information:

  Device ID       : 00e0-fc00-c518

  Preemption mode : Role

  Preemption delay: 10(s)

  Control VLAN    : 10

  Protected VLAN  : Reference Instance 1

 

  Member                  Role      State   Flush-count     Last-flush-time

  -----------------------------------------------------------------------------

  XGE1/0/1                PRIMARY   DOWN    3               18:16:44 2014/12/29

  XGE2/0/1                SECONDARY ACTIVE  1               18:22:37 2014/12/29

上述信息表示,Device A的Ten-GigabitEthernet1/0/1接口Down時,在Smart Link組1中,Device B的Ten-GigabitEthernet2/0/1負責轉發VLAN 10和VLAN 11的流量。

# 通過使用display smart-link flush命令可以查看Device C上收到的Flush報文信息。

[DeviceC] display smart-link flush

 Received flush packets                       : 1

 Receiving interface of the last flush packet : Ten-GigabitEthernet1/0/3

 Receiving time of the last flush packet      : 18:22:39 2014/12/29

 Device ID of the last flush packet           : 00e0-fc00-c518

 Control VLAN of the last flush packet        : 10

# 通過使用display smart-link flush命令可以查看Device D上收到的Flush報文信息。

[DeviceD] display smart-link flush

 Received flush packets                       : 1

 Receiving interface of the last flush packet : Ten-GigabitEthernet1/0/1

 Receiving time of the last flush packet      : 18:22:38 2014/12/29

 Device ID of the last flush packet           : 00e0-fc00-c518

 Control VLAN of the last flush packet        : 10

6.7  配置文件

·     Device A

#

 sysname DeviceA

#

vlan 10 to 11

#

 irf mac-address persistent always

 irf auto-update enable

 irf auto-merge enable

 undo irf link-delay

 irf member 1 priority 1

 irf member 2 priority 1

 irf mode normal

#

irf-port 1/2

 port group 1 interface Ten-GigabitEthernet1/0/2

 port group mdc 1 interface Ten-GigabitEthernet1/0/2

#

irf-port 2/1

 port group 1 interface Ten-GigabitEthernet2/0/2

 port group mdc 1 interface Ten-GigabitEthernet2/0/2

#

stp region-configuration

 instance 1 vlan 10 to 11

 active region-configuration

#

smart-link group 1

 preemption mode role

 preemption delay 10

 flush enable control-vlan 10

 protected-vlan reference-instance 1

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 port smart-link group 1 primary

#

interface Ten-GigabitEthernet1/0/3

 port link-mode bridge

 port access vlan 10

#

interface Ten-GigabitEthernet2/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

port smart-link group 1 secondary

#

interface Ten-GigabitEthernet2/0/3

 port link-mode bridge

 port access vlan 11

#

·     Device C

#

 sysname DeviceC

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

·     Device D

#

 sysname DeviceD

#

vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 undo stp enable

 smart-link flush enable control-vlan 10 to 11

#

interface Ten-GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 to 11

 smart-link flush enable control-vlan 10 to 11

#

7  相關資料

·     H3C S6890係列以太網交換機 二層技術-以太網交換配置指導(R27xx)

·     H3C S6890係列以太網交換機 二層技術-以太網交換命令參考(R27xx)

·     H3C S6890係列以太網交換機 可靠性配置指導(R27xx)

·     H3C S6890係列以太網交換機 可靠性命令參考(R27xx)

·     H3C S6890係列以太網交換機 虛擬化技術配置指導(R27xx)

·     H3C S6890係列以太網交換機 虛擬化技術命令參考(R27xx)

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們