选择区域语言: EN CN HK

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

02-连通错误检测典型配置指导

本章节下载  (155.83 KB)

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

02-连通错误检测典型配置指导


1 连通错误检测典型配置指导

1.1  连通错误检测概述

CFD是Connectivity Fault Detection(连通错误检测)的简称,遵循IEEE 802.1ag所定义的CFM(Connectivity Fault Management,连通错误管理)协议。它是一种二层链路上基于VLAN的端到端OAM(Operations, Administration and Maintenance,操作、管理和维护)机制,主要用于在二层网络中检测链路连通性,确认故障并确定故障发生的位置。

1.2  连通错误检测典型配置指导

1.2.1  适用产品、版本

在配置CFD的维护端点过程中,支持meplist和不支持meplist的产品和软件版本间,其配置过程及使用的命令行有所不同。

表1-1 配置适用的产品与软件版本关系(不支持meplist

产品

软件版本

S7500E系列以太网交换机

Release 6300系列

S5500-EI系列以太网交换机

Release 2202

S5500-SI系列以太网交换机

Release 2202

S5120-EI系列以太网交换机

Release 2202

S3610&S5510系列以太网交换机

Release 5306,Release 5309

S3500-EA系列以太网交换机

Release 5309

 

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

产品

软件版本

S7500E系列以太网交换机

Release 6600系列,Release 6610系列

S7600系列以太网交换机

Release 6600系列,Release 6610系列

S5800&S5820X系列以太网交换机

Release 1110,Release 1211

CE3000-32F以太网交换机

Release 1211

S5500-EI系列以太网交换机

Release 2208

S5500-EI-D系列以太网交换机

Release 2208

S5500-SI系列以太网交换机

Release 2208

S5120-EI系列以太网交换机

Release 2208

S5120-EI-D系列以太网交换机

Release 1505

S5120-SI系列以太网交换机

Release 1505

 

1.2.2  应用需求

图1-1所示网络,设备Device A、DeviceD、Device E由ISP 1管理,设备DeviceB、Device C由ISP 1下的ISP 2管理,要求在该网络中实现连通错误检测,检测链路连通性及对故障进行定位。

图1-1 连通错误检测组网示意图

 

1.2.3  配置思路

根据设备所属的ISP来划分维护域,把同一ISP管理下的设备划分在同一维护域中,并根据各维护域的范围来确定维护域的级别,确保低级别维护域嵌套于高级别维护域中;再根据业务来划分维护集,使每个维护集对应一个VLAN。其具体配置思路如下:

l              根据VLAN通过设备的情况,在所有设备上创建相应的VLAN,并配置相关端口属性,将端口加入到对应的VLAN中;

l              在Device A、Device D和Device E上创建维护域MD_A,级别为5;

l              在Device B、Device C、Device D上创建维护域MD-B,级别为3;

l              在除Device E外的所有设备上的MD_A域内创建维护集MA_A_1,与VLAN 20关联;

l              在Device A、Device B、Device E设备上的MD_A域内创建维护集MA_A_2,与VLAN 30关联;

l              在Device B、Device C、Device D设备上的MD_B域内创建维护集MA_B_1,与VLAN 20关联;

l              对每个维护域内的各个维护集,确定其维护端点,并根据维护域的位置确定维护端点的方向;

l              确定同一维护集内各维护端点所要检测的远端维护端点;

l              可选择配置维护中间点。为了准确定位链路故障,确认需要配置维护中间点的设备,并选择合适的维护中间点生成规则;

l              通过使用连续性检测功能来检测MD_A和MD_B中所有维护集内的维护端点之间的连通状态,在检测到链路故障时,使用环回功能进行故障定位;或在获取到整个组网的状态后,使用链路跟踪功能进行路径查找或故障定位。

1.2.4  配置过程和解释

1. 配置端口所属VLAN

根据图1-1,在各设备上创建对应VLAN;配置各设备上相关端口的属性,并将其加入到对应的VLAN中。具体配置过程略。

2. 使能CFD功能

# 在Device A上使能CFD功能。

<DeviceA> system-view

[DeviceA] cfd enable

Device B~Device E的配置与Device A相似,配置过程略。

3. 配置服务实例

(1)        基本配置过程

根据组网图中每台设备上的端点所属的维护域中的维护集,共需要完成以下配置:

l              在Device A、Device D和Device E上配置维护域MD_A,级别为5

l              在Device B、Device C和Device D上配置维护域MD_B,级别为3

l              在维护域MD_A内的相关的设备上配置维护集MA_A_1(关联VLAN 20)和MA_A_1(关联VLAN 30)

l              在维护域MD_B内相关的设备上配置维护集MA_B_1(关联VLAN 20)

l              为每个维护集创建一个服务实例

(2)        配置步骤

l              Device A的配置

<DeviceA> system-view

[DeviceA] cfd enable

[DeviceA] cfd md MD_A level 5

[DeviceA] cfd ma MA_A_1 md MD_A vlan 20

[DeviceA] cfd service-instance 1 md MD_A ma MA_A_1

[DeviceA] cfd ma MA_A_2 md MD_A vlan 30

[DeviceA] cfd service-instance 2 md MD_A ma MA_A_2

l              Device B的配置

<DeviceB> system-view

[DeviceB] cfd enable

[DeviceB] cfd md MD_B level 3

[DeviceB] cfd ma MA_B_1 md MD_B vlan 20

[DeviceB] cfd service-instance 3 md MD_B ma MA_B_1

l              Device C的配置

<DeviceC> system-view

[DeviceC] cfd enable

[DeviceC] cfd md MD_B level 3

[DeviceC] cfd ma MA_B_1 md MD_B vlan 20

[DeviceC] cfd service-instance 3 md MD_B ma MA_B_1

l              Device D的配置

<DeviceD> system-view

[DeviceD] cfd enable

[DeviceD] cfd md MD_A level 5

[DeviceD] cfd ma MA_A_1 md MD_A vlan 20

[DeviceD] cfd service-instance 1 md MD_A ma MA_A_1

[DeviceD] cfd md MD_B level 3

[DeviceD] cfd ma MA_B_1 md MD_B vlan 20

[DeviceD] cfd service-instance 3 md MD_B ma MA_B_1

l              Device E的配置

<DeviceE> system-view

[DeviceE] cfd enable

[DeviceE] cfd md MD_A level 5

[DeviceE] cfd ma MA_A_2 md MD_A vlan 30

[DeviceE] cfd service-instance 2 md MD_A ma MA_A_2

4. 配置维护端点

MEP ID分配如表1-3所示。

表1-3 MEP ID分配表

MA

设备

端口

MEP ID

MEP 方向

MA_A_1

DeviceA

GigabitEthernet1/0/1

1001

内向MEP

DeviceD

GigabitEthernet1/0/2

1002

内向MEP

MA_A_2

DeviceA

GigabitEthernet1/0/2

2001

内向MEP

DeviceE

GigabitEthernet1/0/1

2002

内向MEP

MA_B_1

DeviceB

GigabitEthernet1/0/1

3001

内向MEP

DeviceD

GigabitEthernet1/0/1

3002

外向MEP

 

对于不同产品及软硬件版本,维护端点的配置过程有所差异:

(2)        表1-1所示产品及对应软硬件版本,其维护端点配置过程

基本配置过程如图1-2所示。

图1-2 不支持meplist的维护端点配置过程

 

l              Device A的配置

# 配置GigabitEthernet10/1端口的ID,并配置其检测Device D上的GigabitEthernet1/0/2端口的报文。

<DeviceA> system-view

[DeviceA] interface GigabitEthernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd mep 1001 service-instance 1 inbound

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

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

[DeviceA-GigabitEthernet1/0/1] quit

# 配置GigabitEthernet10/2端口的ID,并配置其检测Device E上的GigabitEthernet1/0/1端口的报文。

[DeviceA] interface GigabitEthernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] cfd mep 2001 service-instance 2 inbound

[DeviceA-GigabitEthernet1/0/1] cfd remote-mep 2002 service-instance 1 mep 2001

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

l              Device B的配置

# 配置GigabitEthernet1/0/1端口的ID,并配置其检测Device D上的GigabitEthernet1/0/1端口的报文。

<DeviceB> system-view

[DeviceB] interface GigabitEthernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] cfd mep 3001 service-instance 3 inbound

[DeviceB-GigabitEthernet1/0/1] cfd remote-mep 3002 service-instance 3 mep 3001

[DeviceB-GigabitEthernet1/0/1] cfd mep service-instance 3 mep 3001 enable

l              Device D的配置

# 配置GigabitEthernet1/0/1端口的ID,并配置其检测Devic B上的GigabitEthernet1/0/1端口的报文。

<DeviceD> system-view

[DeviceD] interface GigabitEthernet 1/0/1

[DeviceD-GigabitEthernet1/0/1] cfd mep 3002 service-instance 3 outbound

[DeviceD-GigabitEthernet1/0/1] cfd remote-mep 3001 service-instance 3 mep 3002

[DeviceD-GigabitEthernet1/0/1] cfd mep service-instance 3 mep 3002 enable

[DeviceD-GigabitEthernet1/0/1] quit

# 配置GigabitEthernet1/0/2端口的ID,并配置其检测Devic A上的GigabitEthernet1/0/1端口的报文。

[DeviceD] interface GigabitEthernet 1/0/2

[DeviceD-GigabitEthernet1/0/2] cfd mep 1002 service-instance 1 inbound

[DeviceD-GigabitEthernet1/0/2] cfd remote-mep 1001 service-instance 1 mep 1002

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

l              Device E的配置

# 配置GigabitEthernet1/0/1端口的ID,并配置其检测Devic A上的GigabitEthernet1/0/2端口的报文。

<DeviceE> system-view

[DeviceE] interface GigabitEthernet 1/0/1

[DeviceE-GigabitEthernet1/0/1] cfd mep 2002 service-instance 2 inbound

[DeviceE-GigabitEthernet1/0/1] cfd remote-mep 2001 service-instance 2 mep 2001

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

(3)        表1-2所示产品及对应软硬件版本,其维护端点配置过程

基本配置过程如图1-3所示。

图1-3 支持meplist的维护端点配置过程

 

l              Device A的配置

# 配置服务实例1和服务实例2的维护端点列表,并配置GigabitEthernet10/1端口和GigabitEthernet10/2的MEP ID。

<DeviceA> system-view

[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 1001 service-instance 1 inbound

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

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

[DeviceA-GigabitEthernet1/0/2] cfd mep 2001 service-instance 2 inbound

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

l              Device B的配置

# 配置服务实例3的维护端点列表,并配置GigabitEthernet1/0/1端口的MEP ID。

<DeviceB> system-view

[DeviceB] cfd meplist 3001 3002 service-instance 3

[DeviceB] interface GigabitEthernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] cfd mep 3001 service-instance 3 inbound

[DeviceB-GigabitEthernet1/0/1] cfd mep service-instance 3 mep 3001 enable

l              Device D的配置

# 配置服务实例1和服务实例3的维护端点列表,并配置GigabitEthernet1/0/1端口和GigabitEthernet1/0/2端口的MEP ID。

<DeviceD> system-view

[DeviceD] cfd meplist 1001 1002 service-instance 1

[DeviceD] cfd meplist 3001 3002 service-instance 3

[DeviceD] interface GigabitEthernet 1/0/2

[DeviceD-GigabitEthernet1/0/2] cfd mep 1002 service-instance 1 inbound

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

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

[DeviceD-GigabitEthernet1/0/1] cfd mep 3002 service-instance 3 outbound

[DeviceD-GigabitEthernet1/0/1] cfd mep service-instance 3 mep 3002 enable

l              Device E的配置

# 配置GigabitEthernet1/0/1端口的ID,并配置其检测Devic A上的GigabitEthernet1/0/2端口的报文。

<DeviceE> system-view

[DeviceE] cfd meplist 2001 2002 service-instance 2

[DeviceE] interface GigabitEthernet 1/0/1

[DeviceE-GigabitEthernet1/0/1] cfd mep 2002 service-instance 2 inbound

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

5. 配置维护中间点

维护中间点的配置是可选项,维护中间点可处理LTM及LBM报文,合理的配置维护中间点,将方便管理员对链路故障进行确认和定位。

(1)        Device C的配置

# 在Device C的服务实例3内配置维护中间点。

<DeviceC> system-view

[DeviceC] cfd mip-rule default service-instance 3

6. 启用维护端点的CC功能

l              Device A的配置

# 在Device A的端口GigabitEthernet1/0/1上使能服务实例1内维护端点1001的CCM报文发送功能,及在端口GigabitEthernet1/0/2上使能服务实例2内维护端点2001的CCM报文发送功能。

[DeviceA] interface GigabitEthernet 1/0/1

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

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

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

[DeviceA-GigabitEthernet1/0/2] quit

l              Device B的配置

# 在Device B的端口GigabitEthernet1/0/1上使能服务实例3内维护端点3001的CCM报文发送功能。

[DeviceB] interface GigabitEthernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] cfd cc service-instance 3 mep 3001 enable

[DeviceB-GigabitEthernet1/0/1] quit

l              Device D的配置

# 在Device D的端口GigabitEthernet1/0/1上使能服务实例3内维护端点3002的CCM报文发送功能,并在端口GigabitEthernet1/0/2上使能服务实例1内维护端点1002的CCM报文发送功能。

[DeviceD] interface GigabitEthernet 1/0/1

[DeviceD-GigabitEthernet1/0/1] cfd cc service-instance 3 mep 3002 enable

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

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

[DeviceD-GigabitEthernet1/0/2] quit

l              Device E的配置

# 在Device E的端口GigabitEthernet1/0/1上使能服务实例2内维护端点2002的CCM报文发送功能。

[DeviceE] interface GigabitEthernet 1/0/1

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

[DeviceE-GigabitEthernet1/0/1] quit

7. 检验配置效果

# 在Device A上察看服务实例1内维护端点1001的远端维护端点的信息。

[DeviceA] display cfd remote-mep service-instance 1 mep 1001

MEP ID   MAC Address      State        Time                  MAC Status

1001      0000-FC00-6504   OK           2009/09/01 12:54:52   UP

结果显示远端维护端点运行状态正常。

# 在Device A上启用环回功能,检查服务实例1内维护端点1001到1002的链路状况。

[DeviceA] cfd loopback service-instance 1 mep 1001 target-mep 1002

Loopback to 0010-FC00-6512 with the sequence number start from 1001-43404:

Reply from 0010-FC00-6512: sequence number=1001-43404

Reply from 0010-FC00-6512: sequence number=1001-43405

Reply from 0010-FC00-6512: sequence number=1001-43406

Reply from 0010-FC00-6512: sequence number=1001-43407

Reply from 0010-FC00-6512: sequence number=1001-43408

Send:5        Received:5        Lost:0

结果显示服务实例1内的维护端点1001和维护端点1002间的链路无故障。

# 在Device B的服务实例3内查找维护端点3001到3002的路径。

[DeviceB] cfd linktrace service-instance 3 mep 3001 target-mep 3002

Linktrace to MEP 3002 with the sequence number 3001-34

MAC Address               TTL     Last MAC         Relay Action

000F-E234-5678            63      0000-FC00-6504    FDB

000F-E22E-97BC            62      000F-E234-5678    Hit

结果显示服务实例3内的维护端点3001找到了远端维护端点3002,且当维护中间点及远端维护端点收到源维护端点发送的LTM报文后,都向源维护端点反馈LTR报文。源维护端点从而获悉3001到3002链路的路径。

1.2.5  完整配置

(1)        表1-1所示产品的完整配置

l              Device A的完整配置

#

vlan 20

#

vlan 30

#

cfd enable

 cfd md MD_A level 5

 cfd ma MA_A_1 md MD_A vlan 20

 cfd service-instance 1 md MD_A ma MA_A_1

 cfd ma MA_A_2 md MD_A vlan 30

cfd service-instance 2 md MD_A ma MA_A_2

#

interface GigabitEthernet1/0/1

 port access vlan 20

 cfd mep 1001 service-instance 1 inbound

 cfd remote-mep 1002 service-instance 1 mep 1001

 cfd mep service-instance 1 mep 1001 enable

 cfd cc service-instance 1 mep 1001 enable

#

interface GigabitEthernet1/0/2

 port access vlan 30

 cfd mep 2001 service-instance 2 inbound

 cfd mep service-instance 2 mep 2001 enable

 cfd remote-mep 2002 service-instance 2 mep 2001

 cfd cc service-instance 2 mep 2001 enable

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20 30

l              Device B的完整配置

#

vlan 20

#

vlan 30

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20 30

 cfd mep 3001 service-instance 3 inbound

 cfd mep service-instance 3 mep 3001 enable

 cfd remote-mep 3002 service-instance 3 mep 3001

 cfd cc service-instance 3 mep 3001 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 20 30

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/4

 port link-type trunk

 port trunk permit vlan 30

l              Device C的完整配置

#

vlan 20

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

 cfd mip-rule default service-instance 3

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/4

 port link-type trunk

 port trunk permit vlan 30

l              Device D的完整配置

#

vlan 20

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

 cfd md MD_A level 5

 cfd ma MA_A_1 md MD_A vlan 20

 cfd service-instance 1 md MD_A ma MA_A_1

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20

 cfd mep 3002 service-instance 3 outbound

 cfd mep service-instance 3 mep 3002 enable

cfd remote-mep 3001 service-instance 3 mep 3002

 cfd cc service-instance 3 mep 3002 enable

#

interface GigabitEthernet1/0/2

 port access vlan 20

 cfd mep 1002 service-instance 1 inbound

 cfd mep service-instance 1 mep 1002 enable

cfd remote-mep 1001 service-instance 1 mep 1002

 cfd cc service-instance 1 mep 1002 enable

l              Device E的完整配置

#

vlan 30

#

cfd enable

 cfd md MD_A level 5

 cfd ma MA_A_2 md MD_A vlan 30

 cfd service-instance 2 md MD_A ma MA_A_2

#

interface GigabitEthernet1/0/1

 port access vlan 30

 cfd mep 2002 service-instance 2 inbound

 cfd mep service-instance 2 mep 2002 enable

cfd remote-mep 2001 service-instance 2 mep 2002

 cfd cc service-instance 2 mep 2002 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 30

(2)        表1-2所示产品的完整配置

l              Device A的完整配置

#

vlan 20

#

vlan 30

#

cfd enable

 cfd md MD_A level 5

 cfd ma MA_A_1 md MD_A vlan 20

 cfd service-instance 1 md MD_A ma MA_A_1

 cfd meplist 1001 1002 service-instance 1

 cfd ma MA_A_2 md MD_A vlan 30

 cfd service-instance 2 md MD_A ma MA_A_2

 cfd meplist 2001 2002 service-instance 2

#

interface GigabitEthernet1/0/1

 port access vlan 20

 cfd mep 1001 service-instance 1 inbound

 cfd mep service-instance 1 mep 1001 enable

 cfd cc service-instance 1 mep 1001 enable

#

interface GigabitEthernet1/0/2

 port access vlan 30

 cfd mep 2001 service-instance 2 inbound

 cfd mep service-instance 2 mep 2001 enable

 cfd cc service-instance 2 mep 2001 enable

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20 30

l              Device B的完整配置

#

vlan 20

#

vlan 30

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

 cfd meplist 3001 3002 service-instance 3

 cfd cc service-instance 3 mep 3001 enable

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20 30

 cfd mep 3001 service-instance 3 inbound

 cfd mep service-instance 3 mep 3001 enable

 cfd cc service-instance 3 mep 3001 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 20 30

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/4

 port link-type trunk

 port trunk permit vlan 30

l              Device C的完整配置

#

vlan 20

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

 cfd mip-rule default service-instance 3

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/3

 port link-type trunk

 port trunk permit vlan 20

#

interface GigabitEthernet1/0/4

 port link-type trunk

 port trunk permit vlan 30

l              Device D的完整配置

#

vlan 20

#

cfd enable

 cfd md MD_B level 3

 cfd ma MA_B_1 md MD_B vlan 20

 cfd service-instance 3 md MD_B ma MA_B_1

 cfd meplist 3001 3002 service-instance 3

 cfd md MD_A level 5

 cfd ma MA_A_1 md MD_A vlan 20

 cfd service-instance 1 md MD_A ma MA_A_1

 cfd meplist 1001 1002 service-instance 1

#

interface GigabitEthernet1/0/1

 port link-type trunk

 port trunk permit vlan 20

 cfd mep 3002 service-instance 3 outbound

 cfd mep service-instance 3 mep 3002 enable

 cfd cc service-instance 3 mep 3002 enable

#

interface GigabitEthernet1/0/2

 port access vlan 20

 cfd mep 1002 service-instance 1 inbound

 cfd mep service-instance 1 mep 1002 enable

 cfd cc service-instance 1 mep 1002 enable

l              Device E的完整配置

#

vlan 30

#

cfd enable

 cfd md MD_A level 5

 cfd ma MA_A_2 md MD_A vlan 30

 cfd service-instance 2 md MD_A ma MA_A_2

 cfd meplist 2001 2002 service-instance 2

#

interface GigabitEthernet1/0/1

 port access vlan 30

 cfd mep 2002 service-instance 2 inbound

 cfd mep service-instance 2 mep 2002 enable

 cfd cc service-instance 2 mep 2002 enable

#

interface GigabitEthernet1/0/2

 port link-type trunk

 port trunk permit vlan 30

1.2.6  配置注意事项

l              创建维护域、创建维护集、创建服务实例这三个操作必须依次进行配置,顺序不可变更。

l              需根据各产品对meplist支持情况,按照图1-2图1-3的配置顺序来配置维护端点。且对于支持meplist的产品,在创建维护端点时,该维护端点ID必须已包含在对应服务实例的维护端点列表中,否则不能创建成功。

l              若涉及到CFD协议版本的配置,请确保同一维护域内的设备所采用的CFD协议版本的一致性,否则CFD协议报文将无法互通。

l              一个维护域内可以有多个维护集,但一个维护集只能与一个检测VLAN进行关联。

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