选择区域语言: EN CN HK

H3C 中低端以太网交换机 可靠性典型配置指导-6W100

06-Smart Link与CFD联动典型配置指导

本章节下载  (156.4 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/CE3000/CE3000-EI/Configure/Typical_Configuration_Example/H3C_KKX_CG-6W100/201111/733147_30005_0.htm

06-Smart Link与CFD联动典型配置指导


1 Smart Link与CFD联动典型配置指导

1.1  Smart Link与CFD联动简介

当网络的中间传输设备或传输链路发生故障(如光纤链路发生单通、错纤、丢包等故障)以及故障恢复时,Smart Link本身无法感知。而通过与CFD(Connectivity Fault Detection,连通错误检测)协议的连续性检测功能联动,则可以实现在检测到故障发生或恢复时通知Smart Link进行链路切换。

1.2  单Smart Link组与CFD联动典型配置指导

1.2.1  适用产品、版本

表1-1 配置适用的产品与软件版本关系

产品

软件版本

S7500E系列以太网交换机

Release 6600系列,Release 6610系列

S7600系列以太网交换机

Release 6600系列,Release 6610系列

S5800&S5820X系列以太网交换机

Release 1211

CE3000-32F以太网交换机

Release 1211

 

1.2.2  组网需求

Smart Link双上行组网方式,可以最大限度地避免单上行方式中的单点故障问题,从而可大大提高网络可靠性。如图1-1所示:

l              设备Device C连接VLAN1~VLAN10的用户网络,且通过Smart Link将用户网络的流量上行转发到设备Device A。

l              在正常情况下用户网络的流量经Device C上Smart Link 的主端口进行转发;

l              当Smart Link的主端口与Device A间的链路发生故障时,Smart Link的从端口将快速切换到转发状态;

l              当Smart Link的主端口与Device A间的链路恢复正常时,Smart Link的主端口将切换到转发状态。

图1-1 Smart Link与CFD联动组网图

 

1.2.3  配置思路

l              让Smart Link能够感知网络的中间传输设备或传输链路发生故障,可以通过Smart Link与CFD CC联动方式实现。相对于使用Monitor Link监视Smart Link上行链路的实现方式,Smart Link与CFD CC联动方式不会强制改变中间设备上端口的down/up状态,若使用CFD LT功能还可以确认故障发生的位置。

l              当Smart Link的主端口与Device A间的链路恢复正常时,要求Smart Link的主端口将快速切换到转发状态,可通过在Smart Link内配置角色抢占机制实现。

1.2.4  配置过程和解释

1. 配置Smart Link

(1)        配置Device C

# 创建VLAN 1~10。

<DeviceC> system-view

[DeviceC] vlan 1 to 10

# 在端口GigabitEthernet1/0/1GigabitEthernet1/0/2上分别关闭STP功能,并将端口配置为Trunk端口且允许VLAN 110通过。

[DeviceC] interface gigabitethernet 1/0/1

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

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

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

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] undo stp enable

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

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

[DeviceC-GigabitEthernet1/0/2] quit

# 创建Smart Link1,并配置其保护VLANMSTP实例0所映射的VLAN

[DeviceC] smart-link group 1

[DeviceC-smlk-group1] protected-vlan reference-instance 0

# 配置Smart Link1的主端口为GigabitEthernet1/0/1,从端口为GigabitEthernet1/0/2

[DeviceC-smlk-group1] port gigabitethernet 1/0/1 master

[DeviceC-smlk-group1] port gigabitethernet 1/0/2 slave

# Smart Link1中配置抢占模式为角色抢占模式;使能发送Flush报文的功能,并指定发送Flush报文的控制VLANVLAN 10

[DeviceC-smlk-group1] preemption mode role

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

[DeviceC-smlk-group1] quit

(2)        配置Device B

# 创建VLAN 1~10。

<DeviceB> system-view

[DeviceB] vlan 1 to 10

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 110通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 10

[DeviceB] interface gigabitethernet 1/0/1

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

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

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

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 1 to 10

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

[DeviceB-GigabitEthernet1/0/2] quit

(3)        配置Device D

# 创建VLAN 1~10。

<DeviceD> system-view

[DeviceD] vlan 1 to 10

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 110通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 10

[DeviceD] interface gigabitethernet 1/0/1

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

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

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

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] port trunk permit vlan 1 to 10

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

[DeviceD-GigabitEthernet1/0/2] quit

(4)        配置Device A

# 创建VLAN 1~10。

<DeviceA> system-view

[DeviceA] vlan 1 to 10

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 110通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 10

[DeviceA] interface gigabitethernet 1/0/1

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

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

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

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

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

[DeviceA-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10

[DeviceA-GigabitEthernet1/0/2] quit

2. 配置CFD

(1)        配置Device C

# 使能CFD功能。

<DeviceC> system-view

[DeviceC] cfd enable

# 配置服务实例1(关联VLAN 10)。

[DeviceC] cfd md MD level 5

[DeviceC] cfd ma MA_1 md MD vlan 10

[DeviceC] cfd service-instance 1 md MD ma MA_1

# 配置维护端点。

[DeviceC] cfd meplist 1001 1002 service-instance 1

[DeviceC] interface GigabitEthernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] cfd mep 1001 service-instance 1 outbound

[DeviceC-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1001 enable

# 启用维护端点的CC功能

[DeviceC-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1001 enable

[DeviceC-GigabitEthernet1/0/1] quit

(2)        配置Device A

# 使能CFD功能。

<DeviceA> system-view

[DeviceA] cfd enable

# 配置服务实例1(关联VLAN 10)。

[DeviceA] cfd md MD level 5

[DeviceA] cfd ma MA_1 md MD vlan 10

[DeviceA] cfd service-instance 1 md MD ma MA_1

# 配置维护端点。

[DeviceA] cfd meplist 1001 1002 service-instance 1

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceA-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1002 enable

# 启用维护端点的CC功能

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceA-GigabitEthernet1/0/1] quit

3. 配置Smart Link与CFD CC进行联动

# 在Device C上配置Smart Link与CFD CC进行联动

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] port smart-link group 1 track cfd cc

[DeviceC-GigabitEthernet1/0/1] quit

4. 检验配置效果

对Device B上的端口GigabitEthernet1/0/1进行shutdown操作后,使用display smart-link group命令查看Smart Link组的信息:

[DeviceC] display smart-link group all

 Smart link group 1 information:

 Device ID: 0023-895f-954f

 Preemption mode: ROLE

 Preemption delay: 1(s)

 Control VLAN: 10

 Protected VLAN: Reference Instance 0

 Member                     Role    State    Flush-count Last-flush-time

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

 GigabitEthernet1/0/1       MASTER  DOWN     5           14:32:20 2009/12/11

 GigabitEthernet1/0/2       SLAVE   ACTIVE   4           14:32:56 2009/12/11

 

由显示结果可知,当对Device B上的端口GigabitEthernet1/0/1进行shutdown操作后,由于Smart LinkCFD CC进行了联动,所以能够感知上行链路发生故障,进而触发双上行链路间的切换。

1.2.5  完整配置

l              Device A上的配置

#

 cfd enable

 cfd md MD level 5

 cfd ma MA_1 md MD vlan 10

 cfd service-instance 1 md MD ma MA_1

 cfd meplist 1001 to 1002 service-instance 1

#

vlan 1

#

vlan 2 to 10

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

 cfd mep 1002 service-instance 1 outbound

 cfd mep service-instance 1 mep 1002 enable

 cfd cc service-instance 1 mep 1002 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

#

l              Device B上的配置

#

vlan 1

#

vlan 2 to 10

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

#

l              Device C上的配置

#

 cfd enable

 cfd md MD level 5

 cfd ma MA_1 md MD vlan 10

 cfd service-instance 1 md MD ma MA_1

 cfd meplist 1001 to 1002 service-instance 1

#

vlan 1

#

vlan 2 to 10

#

smart-link group 1

 preemption mode role

 protected-vlan reference-instance 0

 flush enable control-vlan 10

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 10

 stp disable

 port smart-link group 1 master

 port smart-link group 1 track cfd cc

 cfd mep 1001 service-instance 1 outbound

 cfd mep service-instance 1 mep 1001 enable

 cfd cc service-instance 1 mep 1001 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 10

 stp disable

 port smart-link group 1 slave

#

l              Device D上的配置

#

vlan 1

#

vlan 2 to 10

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 10

 smart-link flush enable control-vlan 10

#

1.2.6  配置注意事项

l              在配置CFD过程中,必须按照创建维护域、创建维护集、创建服务实例的顺序依次进行。

l              在配置Smart Link组的成员端口与CFD CC机制联动时,该端口所在Smart Link组的控制VLAN必须与CFD CC的检测VLAN相一致。

l              Smart Link与CFD CC联动功能不适用于Smart Link组的成员端口是聚合接口的组网环境。

l              有关CFD和Smart Link配置的具体注意事项,请参见“连通错误检测典型配置指导”和“Smart Link典型配置指导”。

1.3  多Smart Link组与CFD联动典型配置指导

1.3.1  适用产品、版本

表1-2 配置适用的产品与软件版本关系

产品

软件版本

S7500E系列以太网交换机

Release 6600系列,Release 6610系列

S7600系列以太网交换机

Release 6600系列,Release 6610系列

S5800&S5820X系列以太网交换机

Release 1211

CE3000-32F以太网交换机

Release 1211

 

1.3.2  组网需求

在同一个环网中,可能同时存在多个VLAN的数据流量,为了实现流量的负载分担,即使不同的VLAN流量沿不同的路径进行转发,可采用多Smart Link组。如图1-2所示,设备Device C通过多Smart Link组将VLAN 1~10和VLAN 11~20的流量分别沿不同的路径双上行到设备Device A。现要求:

l              在正常情况下VLAN 1~10的流量经Device C上Smart Link组1的主端口进行转发,VLAN 11~20的流量经Device C上Smart Link组2的主端口进行转发;

l              当各Smart Link组的主端口与Device A间的链路发生故障时,各Smart Link组的从端口将快速切换到转发状态;

l              当各Smart Link组的主端口与Device A间的链路恢复正常时,各Smart Link组的主端口将切换到转发状态。实现流量的负载分担和上行链路的灵活备份。

图1-2 Smart Link与CFD联动组网图

 

1.3.3  配置思路

l              让Smart Link能够感知网络的中间传输设备或传输链路发生故障,可以通过Smart Link与CFD CC联动方式实现。相对于使用Monitor Link监视Smart Link上行链路的实现方式,Smart Link与CFD CC联动方式不会强制改变中间设备上端口的down/up状态,若使用CFD LT功能还可以确认故障发生的位置。

l              当各Smart Link组的主端口与Device A间的链路恢复正常时,要求Smart Link组的主端口将快速切换到转发状态,可通过在Smart Link组内配置角色抢占机制实现。

1.3.4  配置过程和解释

1. 配置Smart Link

(1)        配置Device C

# 创建VLAN 1~20,分别将VLAN 1~10映射到MSTP实例0、VLAN 11~20映射到MSTP实例1上,并激活MST域的配置。

<DeviceC> system-view

[DeviceC] vlan 1 to 20

[DeviceC] stp region-configuration

[DeviceC-mst-region] instance 0 vlan 1 to 10

[DeviceC-mst-region] instance 1 vlan 11 to 20

[DeviceC-mst-region] active region-configuration

[DeviceC-mst-region] quit

# 在端口GigabitEthernet1/0/1GigabitEthernet1/0/2上分别关闭STP功能,并将端口配置为Trunk端口且允许VLAN 120通过。

[DeviceC] interface gigabitethernet 1/0/1

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

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

[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 1 to 20

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] undo stp enable

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

[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 1 to 20

[DeviceC-GigabitEthernet1/0/2] quit

# 创建Smart Link1,并配置其保护VLANMSTP实例0所映射的VLAN

[DeviceC] smart-link group 1

[DeviceC-smlk-group1] protected-vlan reference-instance 0

# 配置Smart Link1的主端口为GigabitEthernet1/0/1,从端口为GigabitEthernet1/0/2

[DeviceC-smlk-group1] port gigabitethernet 1/0/1 master

[DeviceC-smlk-group1] port gigabitethernet 1/0/2 slave

# Smart Link1中配置抢占模式为角色抢占模式;使能发送Flush报文的功能,并指定发送Flush报文的控制VLANVLAN 10

[DeviceC-smlk-group1] preemption mode role

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

[DeviceC-smlk-group1] quit

# 创建Smart Link2,并配置其保护VLANMSTP实例1所映射的VLAN

[DeviceC] smart-link group 2

[DeviceC-smlk-group2] protected-vlan reference-instance 1

# 配置Smart Link2的主端口为GigabitEthernet1/0/2,从端口为GigabitEthernet1/0/1

[DeviceC-smlk-group2] port gigabitethernet 1/0/2 master

[DeviceC-smlk-group2] port gigabitethernet 1/0/1 slave

# Smart Link2中配置抢占模式为角色抢占模式;使能发送Flush报文的功能,并指定发送Flush报文的控制VLANVLAN 11

[DeviceC-smlk-group2] preemption mode role

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

[DeviceC-smlk-group2] quit

(2)        配置Device B

# 创建VLAN 1~20。

<DeviceB> system-view

[DeviceB] vlan 1 to 20

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 120通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 1011

[DeviceB] interface gigabitethernet 1/0/1

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

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 1 to 20

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

[DeviceB-GigabitEthernet1/0/1] quit

[DeviceB] interface gigabitethernet 1/0/2

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

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 1 to 20

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

[DeviceB-GigabitEthernet1/0/2] quit

(3)        配置Device D

# 创建VLAN 1~20。

<DeviceD> system-view

[DeviceD] vlan 1 to 20

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 120通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 1011

[DeviceD] interface gigabitethernet 1/0/1

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

[DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 1 to 20

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

[DeviceD-GigabitEthernet1/0/1] quit

[DeviceD] interface gigabitethernet 1/0/2

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

[DeviceD-GigabitEthernet1/0/2] port trunk permit vlan 1 to 20

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

[DeviceD-GigabitEthernet1/0/2] quit

(4)        配置Device A

# 创建VLAN 1~20。

<DeviceA> system-view

[DeviceA] vlan 1 to 20

# 分别将端口GigabitEthernet1/0/1GigabitEthernet1/0/2配置为Trunk端口且允许VLAN 120通过,在这些端口上使能接收Flush报文的功能,并指定接收Flush报文的控制VLANVLAN 1011

[DeviceA] interface gigabitethernet 1/0/1

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

[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 1 to 20

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

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

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

[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 1 to 20

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

[DeviceA-GigabitEthernet1/0/2] quit

2. 配置CFD

(1)        配置Device C

# 使能CFD功能。

<DeviceC> system-view

[DeviceC] cfd enable

# 配置服务实例1(关联VLAN 10)和服务实例2(关联VLAN 11)。

[DeviceC] cfd md MD level 5

[DeviceC] cfd ma MA_1 md MD vlan 10

[DeviceC] cfd service-instance 1 md MD ma MA_1

[DeviceC] cfd ma MA_2 md MD vlan 11

[DeviceC] cfd service-instance 2 md MD ma MA_2

# 配置维护端点。

[DeviceC] cfd meplist 1001 1002 service-instance 1

[DeviceC] cfd meplist 2001 2002 service-instance 2

[DeviceC] interface GigabitEthernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] cfd mep 1001 service-instance 1 outbound

[DeviceC-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1001 enable

[DeviceC-GigabitEthernet1/0/1] interface GigabitEthernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] cfd mep 2001 service-instance 2 outbound

[DeviceC-GigabitEthernet1/0/2] cfd mep service-instance 2 mep 2001 enable

# 启用维护端点的CC功能

[DeviceC-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1001 enable

[DeviceC-GigabitEthernet1/0/1] interface GigabitEthernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2001 enable

[DeviceC-GigabitEthernet1/0/2] quit

(2)        配置Device A

# 使能CFD功能。

<DeviceA> system-view

[DeviceA] cfd enable

# 配置服务实例1(关联VLAN 10)和服务实例2(关联VLAN 11)。

[DeviceA] cfd md MD level 5

[DeviceA] cfd ma MA_1 md MD vlan 10

[DeviceA] cfd service-instance 1 md MD ma MA_1

[DeviceA] cfd ma MA_2 md MD vlan 11

[DeviceA] cfd service-instance 2 md MD ma MA_2

# 配置维护端点。

[DeviceA] cfd meplist 1001 1002 service-instance 1

[DeviceA] cfd meplist 2001 2002 service-instance 2

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceA-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1002 enable

[DeviceA-GigabitEthernet1/0/1] interface GigabitEthernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] cfd mep 2002 service-instance 2 outbound

[DeviceA-GigabitEthernet1/0/2] cfd mep service-instance 2 mep 2002 enable

# 启用维护端点的CC功能

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceA-GigabitEthernet1/0/1] interface GigabitEthernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2002 enable

[DeviceA-GigabitEthernet1/0/2] quit

3. 配置Smart Link与CFD CC进行联动

# 在Device C上配置Smart Link与CFD CC进行联动

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] port smart-link group 1 track cfd cc

[DeviceC-GigabitEthernet1/0/1] quit

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] port smart-link group 2 track cfd cc

4. 检验配置效果

对Device B上的端口GigabitEthernet1/0/1进行shutdown操作后,使用display smart-link group命令查看Device C上Smart Link组的信息:

[DeviceC] display smart-link group all

 Smart link group 1 information:

 Device ID: 0023-895f-954f

 Preemption mode: ROLE

 Preemption delay: 1(s)

 Control VLAN: 10

 Protected VLAN: Reference Instance 0

 Member                     Role    State    Flush-count Last-flush-time

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

 GigabitEthernet1/0/1       MASTER  DOWN     5           14:32:20 2009/12/11

 GigabitEthernet1/0/2       SLAVE   ACTIVE   4           14:32:56 2009/12/11

 

 Smart link group 2 information:

 Device ID: 0023-895f-954f

 Preemption mode: ROLE

 Preemption delay: 1(s)

 Control VLAN: 11

 Protected VLAN: Reference Instance 1

 Member                     Role    State    Flush-count Last-flush-time

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

 GigabitEthernet1/0/2       MASTER  ACTIVE   5           14:32:20 2009/12/11

 GigabitEthernet1/0/1       SLAVE   STANDBY  4           14:31:40 2009/12/11

由显示结果可知,当对Device B上的端口GigabitEthernet1/0/1进行shutdown操作后,由于Smart LinkCFD CC进行了联动,所以能够感知上行链路发生故障,进而触发双上行链路间的切换。

1.3.5  完整配置

l              Device A上的配置

#

 cfd enable

 cfd md MD level 5

 cfd ma MA_1 md MD vlan 10

 cfd service-instance 1 md MD ma MA_1

 cfd meplist 1001 to 1002 service-instance 1

 cfd ma MA_2 md MD vlan 11

 cfd service-instance 2 md MD ma MA_2

 cfd meplist 2001 to 2002 service-instance 2

#

vlan 1

#

vlan 2 to 20

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

 cfd mep 1002 service-instance 1 outbound

 cfd mep service-instance 1 mep 1002 enable

 cfd cc service-instance 1 mep 1002 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

 cfd mep 2002 service-instance 2 outbound

 cfd mep service-instance 2 mep 2002 enable

 cfd cc service-instance 2 mep 2002 enable

#

l              Device B上的配置

#

vlan 1

#

vlan 2 to 20

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

#

l              Device C上的配置

#

 cfd enable

 cfd md MD level 5

 cfd ma MA_1 md MD vlan 10

 cfd service-instance 1 md MD ma MA_1

 cfd meplist 1001 to 1002 service-instance 1

 cfd ma MA_2 md MD vlan 11

 cfd service-instance 2 md MD ma MA_2

 cfd meplist 2001 to 2002 service-instance 2

#

vlan 1

#

vlan 2 to 20

#

stp region-configuration

 instance 1 vlan 11 to 20

 active region-configuration

#

smart-link group 1

 preemption mode role

 protected-vlan reference-instance 0

 flush enable control-vlan 10

smart-link group 2

 preemption mode role

 protected-vlan reference-instance 1

 flush enable control-vlan 11

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 20

 stp disable

 port smart-link group 1 master

 port smart-link group 1 track cfd cc

 port smart-link group 2 slave

 cfd mep 1001 service-instance 1 outbound

 cfd mep service-instance 1 mep 1001 enable

 cfd cc service-instance 1 mep 1001 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 20

 stp disable

 port smart-link group 1 slave

 port smart-link group 2 master

 port smart-link group 2 track cfd cc

 cfd mep 2001 service-instance 2 outbound

 cfd mep service-instance 2 mep 2001 enable

 cfd cc service-instance 2 mep 2001 enable

#

l              Device D上的配置

#

vlan 1

#

vlan 2 to 20

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 1 to 20

 smart-link flush enable control-vlan 10 11

#

1.3.6  配置注意事项

l              在配置CFD过程中,必须按照创建维护域、创建维护集、创建服务实例的顺序依次进行。

l              在配置Smart Link组的成员端口与CFD CC机制联动时,该端口所在Smart Link组的控制VLAN必须与CFD中维护集所服务的VLAN相一致。

l              Smart Link与CFD CC联动功能不适用于Smart Link组的成员端口是聚合接口的组网环境。

l              有关CFD和Smart Link配置的具体注意事项,请参见“连通错误检测典型配置指导”和“Smart Link典型配置指导”。

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!