12-High Availability Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18212-High Availability Command Reference
03-CFD Commands
Title Size Download
03-CFD Commands 219.42 KB

CFD configuration commands

cfd ais enable

Syntax

cfd ais enable

undo cfd ais enable

View

System view

Default level

2: System level

Parameters

None

Description

Use cfd ais enable to enable AIS.

Use undo cfd ais enable to disable AIS.

By default, AIS is disabled.

Examples

# Enable AIS.

<Sysname> system-view

[Sysname] cfd ais enable

cfd ais level

Syntax

cfd ais level level-value service-instance instance-id

undo cfd ais level level-value service-instance instance-id

View

System view

Default level

2: System level

Parameters

level level-value: Specifies the AIS frame transmission level in the range of 1 to 7.

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

Description

Use cfd ais level to configure the AIS frame transmission level in the specified service instance.

Use undo cfd ais level to restore the default.

By default, no AIS frame transmission level is configured for a service instance.

If no AIS frame transmission level is configured for a service instance, the MEPs in the service instance cannot send AIS frames.

Regardless of the value of the level-value argument, the undo cfd ais level command restores the AIS frame transmission level to an invalid value.

Examples

# Configure the AIS frame transmission level as 3 in service instance 1.

<Sysname> system-view

[Sysname] cfd ais level 3 service-instance 1

cfd ais period

Syntax

cfd ais period period-value service-instance instance-id

undo cfd ais period period-value service-instance instance-id

View

System view

Default level

2: System level

Parameters

period period-value: Specifies the AIS frame transmission period in the range of 1 to 60 seconds.

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

Description

Use cfd ais period to configure the AIS frame transmission period in the specified service instance.

Use undo cfd ais period to restore the default.

By default, the AIS frame transmission period is 1 second in all service instances.

Regardless of the value of the period-value argument, the undo cfd ais period command restores the AIS frame transmission period to 1 second.

Examples

# Configure the AIS frame transmission period as 60 seconds in service instance 1.

<Sysname> system-view

[Sysname] cfd ais period 60 service-instance 1

cfd cc enable

Syntax

cfd cc service-instance instance-id mep mep-id enable

undo cfd cc service-instance instance-id mep mep-id enable

View

Layer 2 Ethernet interface view

Default level

2: System level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.

Description

Use cfd cc enable to enable CCM sending on a specified MEP.

Use undo cfd cc enable to disable CCM sending on a specified MEP.

By default, the CCM sending function is disabled.

Related commands: cfd cc interval.

Examples

# On port GigabitEthernet 3/0/1, enable CCM sending on MEP 3 in service instance 5.

<Sysname> system-view

[Sysname] interface GigabitEthernet3/0/1

[Sysname-GigabitEthernet3/0/1] cfd cc service-instance 5 mep 3 enable

cfd cc interval

Syntax

cfd cc interval interval-value service-instance instance-id

undo cfd cc interval service-instance instance-id

View

System view

Default level

2: System level

Parameters

interval interval-value: Specifies the value of the interval field in CCM messages. The interval-value argument is in the range of 2 to 7.

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

Description

Use cfd cc interval to set the value of the interval field in the CCM messages.

Use undo cfd cc interval to restore default.

By default, the value of this field is 4 for all CCMs sent.

Only the MPUs with silkscreen LSR1SRP2C1, LSR1SRP2C2, or LSR1SRP2D1 have assistant CPUs.

If the switch has two MPUs with assistant CPUs, the CCM frames will be sent by the active MPU. If the active MPU is removed, the standby MPU will take over to send CCM frames and CC will be re-performed.

If the switch has one MPU with an assistant CPU, the CCM frames will be sent by this MPU.

If the switch has no MPUs with assistant CPUs, the CCM frames will be sent by the card where the MEP is located. The card sends and receives only low-speed CCM messages, and discards high-speed CCM messages.

Table 1 Relationship between the interval field value in the CCM messages, interval for sending CCM messages, and timeout time of remote MEP

Interval field value in the CCM messages

Interval for sending CCM messages

Timeout time of remote MEP

2

10 milliseconds

35 milliseconds

3

100 milliseconds

350 milliseconds

4

1 second

3.5 seconds

5

10 seconds

35 seconds

6

60 seconds

210 seconds

7

600 seconds

2100 seconds

 

Related commands: cfd cc enable.

Examples

# Set the value of the interval field in CCMs sent by MEPs in service instance 2 to 7.

<Sysname> system-view

[Sysname] cfd cc interval 7 service-instance 2

cfd enable

Syntax

cfd enable

undo cfd enable

View

System view

Default level

2: System level

Parameters

None

Description

Use cfd enable to enable CFD.

Use undo cfd enable to disable CFD.

By default, CFD is disabled.

Examples

# Enable CFD.

<Sysname> system-view

[Sysname] cfd enable

cfd linktrace

Syntax

cfd linktrace service-instance instance-id mep mep-id { target-mep target-mep-id | target-mac mac-address } [ ttl ttl-value ] [ hw-only ]

View

Any view

Default level

0: Visit level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of the source MEP, in the range of 1 to 8191.

target-map target-mep-id: Specifies the ID of the destination MEP, in the range of 1 to 8191.

target-mac mac-address: Specifies the destination MAC address, in the format of H-H-H.

ttl ttl-value: Specifies the time to live value in the range of 1 to 255. The default is 64.

hw-only: Sets the hw-only bits of the LTMs sent. When this keyword is specified and the MIP that receives LTMs cannot find the destination MAC address in its forwarding table, the MIP does not broadcast these LTM messages. Otherwise, the MIP broadcasts these LTM messages.

Description

Use cfd linktrace to find the path between the source and target MEPs, which is achieved through the transmission of LTMs between the two and detection of the responding LTRs.

Related commands: cfd linktrace auto-detection.

Examples

# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the standard version (IEEE 802.1ag) of CFD is used.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] cfd linktrace service-instance 1 mep 1101 target-mep 2001

Linktrace to MEP 2001 with the sequence number 1101-43361

MAC Address               TTL     Last MAC         Relay Action

0010-FC00-6512            63      0010-FC00-6500   Hit

# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the IEEE 802.1ag draft 5.2 version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5

[Sysname] cfd linktrace service-instance 1 mep 1101 target-mep 2001

Linktrace to MEP 2001 with the sequence number 1101-43361 :

MAC Address               TTL     Forwarded         Relay Action

0010-FC00-6512            63      No                None

# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the IEEE 802.1ag draft 5.2 interim version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5-plus

[Sysname] cfd linktrace service-instance 1 mep 1101 target-mep 2001

Linktrace to MEP 2001 with the sequence number 1101-43361 :

MAC Address               TTL     Forwarded         Relay Action

0010-FC00-6512            63      No                None

 

 

NOTE:

The output varies by CFD protocol version.

 

Table 2 Command output

Field

Description

Linktrace to MEP 2001 with the sequence number 1101-43361

Linktrace to target MEP 2001 with the sequence number 1101-43361.

MAC Address

Source MAC address in the LTR messages.

TTL

Hop count when the LTM passes the device.

Last MAC

MAC address of the last-hop device the LTM passes.

Forwarded

Indicates whether the device forwards LTMs:

·     Yes means that the current device forwards LTMs.

·     No means that the current device does not forward LTMs.

Relay Action

Indicates whether the forwarding device found the destination MAC address in its MAC address table.

When the standard version (IEEE 802.1ag) of CFD is used:

·     HitThe current device is the destination device.

·     FDBThe forwarding device found the destination MAC address.

·     MPDBThe destination MAC address is not found, or the destination MAC address is found in the MEP or MIP database.

When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft 5.2 interim version of CFD is used:

·     FoundThe forwarding device found the destination MAC address.

·     UnknownThe forwarding device failed to find the destination MAC address.

·     NoneIt is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address.

 

cfd linktrace auto-detection

Syntax

cfd linktrace auto-detection [ size size-value ]

undo cfd linktrace auto-detection

View

System view

Default level

2: System level

Parameters

size size-value: Specifies the size of the buffer used to store the auto-detection result, in the range of 1 to 100 (in terms of sending times).

This value defaults to 5, which means the buffer stores the results of the recent five auto-detections.

Description

Use cfd linktrace auto-detection to enable the auto sending of linktrace messages.

Use undo cfd linktrace auto-detection to disable this function.

By default, this function is disabled.

After LT messages automatic sending is enabled, if the source MEP fails to receive the CCMs from the target MEP within 3.5 times the sending interval, the link between the two is regarded as faulty and LTMs will be sent out. (The destination of the LTMs is the target MEP, and the TTL field value is 255.) Based on the LTRs that echo back, the fault source can be located.

Once you disable LT messages automatic sending, the content stored in the buffer will be removed.

Related commands: cfd linktrace.

Examples

# Enable automatic LT messages sending, and specify the size of the buffer used to store the auto-detection result to 100 (in terms of sending times).

<Sysname> system-view

[Sysname] cfd linktrace auto-detection size 100

cfd loopback

Syntax

cfd loopback service-instance instance-id mep mep-id { target-mep target-mep-id | target-mac mac-address } [ number number ]

View

Any view

Default level

0: Visit level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of the source MEP, in the range of 1 to 8191.

target-mep target-mep-id: Specifies the ID of the target MEP, in the range of 1 to 8191.

target-mac mac-address: Specifies the destination MAC address of the MP, in the format of H-H-H.

number number: Specifies the number of the LBMs packets sent, in the range of 1 to 10. The default is 5.

Description

Use cfd loopback to enable LB function so that LBMs can be sent from the source MEP to the target MP, and LBR messages can be received.

By default, LB is not enabled.

Examples

# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1 (assume that the link status is normal).

<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001

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

Reply from 0010-FC00-6512: sequence number=1101-43404 time=5ms

Reply from 0010-FC00-6512: sequence number=1101-43405 time=5ms

Reply from 0010-FC00-6512: sequence number=1101-43406 time=5ms

Reply from 0010-FC00-6512: sequence number=1101-43407 time=5ms

Reply from 0010-FC00-6512: sequence number=1101-43408 time=5ms

Send:5        Received:5        Lost:0

# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1 (assume that the link status is abnormal).

<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001

Sequence number=1101-43404: Request timed out

Sequence number=1101-43404: Request timed out

Sequence number=1101-43404: Request timed out

Sequence number=1101-43404: Request timed out

Sequence number=1101-43404: Request timed out

Send:5        Received:0        Lost:5

Table 3 Command output

Field

Description

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

Sends LBMs to 0010-FC00-6512 with the sequence number starting with 1101-43404.

sequence number

Sequence number in the LBR messages.

time=5ms

The interval between the sending of LBMs and receiving of LBRs is 5 milliseconds.

Request timed out

The request is timed out because no LBR is received within 5 milliseconds.

Send

Number of LBMs sent.

Received

Number of LBR messages received.

Lost

Number of lost LBRs.

 

cfd ma

Syntax

cfd ma ma-name md md-name vlan vlan-id

undo cfd ma ma-name md md-name

View

System view

Default level

2: System level

Parameters

ma ma-name: Specifies the name of the MA, which is a string of 1 to 43 characters. IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special characters (including – and _), but do not allow an MA name to start or end with a special character.

md md-name: Specifies the name of an MD, a string of 1 to 43 characters. IEEE 802.1ag standard version allows an MD name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to contain letters, numbers, and special characters (including – and _), but do not allow an MD name to start or end with a special character.

vlan vlan-id: Specifies the ID of the VLAN where MA is in service, in the range of 1 to 4094.

Description

Use cfd ma to create MAs in an MD.

Use undo cfd ma to delete MAs in an MD.

By default, no MA is created.

Before creating an MA, you must create an MD first.

The total length of the MA and MD names should not exceed 44 characters.

When deleting an MA, you will also delete the configurations related to that MA.

Related commands: cfd md.

Examples

# Create an MA named test_ma in an MD named test_md, and configure the MA to serve VLAN 100.

<Sysname> system-view

[Sysname] cfd md test_md level 3

[Sysname] cfd ma test_ma md test_md vlan 100

cfd md

Syntax

cfd md md-name level level-value

undo cfd md md-name

View

System view

Default level

2: System level

Parameters

md md-name: Specifies the name of an MD, which is a string of 1 to 43 characters. IEEE 802.1ag standard version allows an MD name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to contain letters, numbers, and special characters (including – and _), but do not allow an MD name to start or end with a special character.

level level-value: Specifies an MD level in the range of 0 to 7.

Description

Use cfd md to create an MD.

Use undo cfd md to delete an MD.

By default, no MD is created.

You can create only one MD with a specific level. MD cannot be created if you enter an invalid MD name or an existing MD name.

When deleting an MD, you will also delete the configurations related to that MD.

Examples

# Create an MD named test_md, with its level being 3.

<Sysname> system-view

[Sysname] cfd md test_md level 3

cfd mep

Syntax

cfd mep mep-id service-instance instance-id { inbound | outbound }

undo cfd mep mep-id service-instance instance-id

View

Layer 2 Ethernet interface view

Default level

2: System level

Parameters

mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

inbound: Creates an inward-facing MEP.

outbound: Creates an outward-facing MEP.

Description

Use cfd mep to create a MEP on a port.

Use undo cfd mep to delete the specified MEP.

By default, no MEP exists on a port.

In creating a MEP, the service instance you specified defines the MD and MA that the MEP belongs to.

You cannot create a MEP if the MEP ID is not included in the MEP list of the relevant service instance.

Related commands: cfd meplist.

Examples

# Configure a MEP list in service instance 5, and create and enable inward-facing MEP 3 in service instance 5 on GigabitEthernet 3/0/1.

<Sysname> system-view

[Sysname] cfd md test_md level 3

[Sysname] cfd ma test_ma md test_md vlan 100

[Sysname] cfd service-instance 5 md test_md ma test_ma

[Sysname] cfd meplist 3 service-instance 5

[Sysname] interface GigabitEthernet3/0/1

[Sysname-GigabitEthernet3/0/1] cfd mep 3 service-instance 5 inbound

cfd mep enable

Syntax

cfd mep service-instance instance-id mep mep-id enable

undo cfd mep service-instance instance-id mep mep-id enable

View

Layer 2 Ethernet interface view

Default level

2: System level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.

Description

Use cfd mep enable to enable the MEP configured on a port.

Use undo cfd mep enable to disable the MEP.

By default, MEP is disabled on a port and cannot respond to various CFD frames (such as LTM frames, LBM frames, 1DM frames, DMM frames, and TST frames) unless you enable it.

Related commands: cfd mep.

Examples

# Enable MEP 3 in service instance 5 on GigabitEthernet 3/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet3/0/1

[Sysname-GigabitEthernet3/0/1] cfd mep service-instance 5 mep 3 enable

cfd meplist

Syntax

cfd meplist mep-list service-instance instance-id

undo cfd meplist mep-list service-instance instance-id

View

System view

Default level

2: System level

Parameters

meplist mep-list: Specifies a list of MEP IDs, indicating multiple MEPs, in the format of mep-list = { mep-id [ to mep-id ] }&<1-10>, in which mep-id represents the MEP ID in the range of 1 to 8191. &<1-10> indicates you can specify up to 10 MEP ID ranges.

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

Description

Use cfd meplist to create a MEP list, which is a collection of local MEPs allowed to be configured and the remote MEPs to be monitored in the same MA.

Use undo cfd meplist to delete existing MEP lists.

By default, no MEP list is created.

Before creating a MEP list, create the relevant MD, MA, and service instance.

After you delete a MEP list, all local MEP configurations based on this list are deleted.

Related commands: cfd ma, cfd md, and cfd service-instance.

Examples

# Create a MEP list that includes MEP 9 through MEP 15 in service instance 5.

<Sysname> system-view

[Sysname] cfd md test_md level 3

[Sysname] cfd ma test_ma md test_md vlan 100

[Sysname] cfd service-instance 5 md test_md ma test_ma

[Sysname] cfd meplist 9 to 15 service-instance 5

cfd mip-rule

Syntax

cfd mip-rule { explicit | default } service-instance instance-id

undo cfd mip-rule service-instance instance-id

View

System view

Default level

2: System level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

explicit: This rule means that if the lower level MA is not configured with MIPs, whether the current MA will create MIPs depends on whether the lower level MA is configured with MEPs.

default: This rule means that if the lower level MA is not configured with MIPs, the current MA will create MIPs.

Description

Use cfd mip-rule to configure the rules for generating MIPs. MIPs are generated on each port automatically according to the rules configured.

Use undo cfd mip-rule to delete the rule for generating MIPs.

By default, no rules for generating MIPs are configured and no MIPs exist.

Examples

# Configure the MIP generation rule as default in service instance 5.

<Sysname> system-view

[Sysname] cfd mip-rule default service-instance 5

cfd service-instance

Syntax

cfd service-instance instance-id md md-name ma ma-name

undo cfd service-instance instance-id

View

System view

Default level

2: System level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

md md-name: Specifies the name of an MD. The md-name argument is a string of 1 to 43 characters. IEEE 802.1ag standard version allows an MD name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to contain letters, numbers, and special characters (including – and _), but do not allow an MD name to start or end with a special character.

ma ma-name: Specifies the name of an MA. The ma-name argument is a string of 1 to 43 characters. IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special characters (including – and _), but do not allow an MA name to start or end with a special character.

Description

Use cfd service-instance to create a service instance with the MD name.

Use undo cfd service-instance to delete a service instance.

By default, no service instance is created.

You must create the relevant MD and MA prior to creating a service instance with the MD name.

The service instance ID uniquely identifies an MA in an MD.

When deleting a service instance, you are deleting the configurations related to that service instance as well.

Deleting a service instance simply breaks up the connection between the service instance and the relevant MA, the MA itself is not deleted.

A service instance with the MD name takes effect in all versions of CFD.

Related commands: cfd md, cfd ma, and cfd version.

Examples

# Create a level-3 MD named test_md, create an MA named test_ma, which serves VLAN 100, in test_md, and then create service instance 5 with the MD name for test_md and test_ma.

<Sysname> system-view

[Sysname] cfd md test_md level 3

[Sysname] cfd ma test_ma md test_md vlan 100

[Sysname] cfd service-instance 5 md test_md ma test_ma

cfd service-instance maid format

Syntax

cfd service-instance instance-id maid format { icc-based ma-name | string ma-name } level level-value vlan vlan-id

undo cfd service-instance instance-id

View

System view

Default level

2: System level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

icc-based ma-name: MA name in the Y.1731 format. The ma-name argument is a string of 1 to 13 characters. IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special characters (including – and _), but do not allow an MA name to start or end with a special character.

string ma-name: MA name in the IEEE 802.1ag format. The ma-name argument is a string of 1 to 45 characters. IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special characters (including – and _), but do not allow an MA name to start or end with a special character.

level level-value: Specifies the MD level for the service instance, in the range of 0 to 7.

vlan vlan-id: Specifies the VLAN for the service instance. The vlan-id argument is in the range of 1 to 4094.

Description

Use cfd service-instance maid format to create a service instance without the MD name.

Use undo cfd service-instance to remove the specified service instance.

By default, no service instance is created.

When you create a service instance without the MD name, the system automatically creates the MA and MD for the service instance.

The service instance ID, MA name, and MD level uniquely identify a MA.

Deleting a service instance also deletes all configurations based on the service instance.

Deleting a service instance removes not only the service instance ID-MA association, but also the MA.

A MD with no MAs will be deleted.

A service instance without the MD name takes effect only in the IEEE 802.1ag standard version of CFD.

Related commands: cfd version.

Examples

# Create service instance 5 without the MD name in CFD IEEE 802.1ag, and configure the MA named test_ma1 in the Y.1731 format, MD level 3, and VLAN 100 for the service instance.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] cfd service-instance 5 maid format icc-based test_ma1 level 3 vlan 100

# Create service instance 6 without the MD name in CFD IEEE 802.1ag, and configure the MA named test_ma2 in the IEEE 802.1ag format, MD level 4, and VLAN 200 for the service instance.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] cfd service-instance 6 maid format string test_ma2 level 4 vlan 200

cfd tst

Syntax

cfd tst service-instance instance-id mep mep-id { target-mac mac-address | target-mep target-mep-id } [ number number ] [ length-of-test length ] [ pattern-of-test { all-zero | prbs } [ with-crc ] ]

View

System view

Default level

2: System level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

mep mep-id: Specifies the source MEP by its ID, in the range of 1 to 8191.

target-mac mac-address: Specifies the target MEP by its MAC address, which is in the format of H-H-H.

target-mep target-mep-id: Specifies the target MEP by its ID in the range of 1 to 8191.

number number: Specifies the number of TST frames sent. The number argument is in the range of 1 to 10, and defaults to 5.

length-of-test length: Specifies the length of the Test TLV (Type/Length/Value) in the TST frame. The value range for the length argument is 4 to 1400, and the default is 64.

pattern-of-test { all-zero | prbs } [ with-crc ]: Specifies the pattern of the Test TLV in the TST frame, which can be all-zero (all-zero value without CRC-32), prbs (pseudo random bit sequence without CRC-32), all-zero with-crc (all-zero value with CRC-32), and prbs with-crc (pseudo random bit sequence with CRC-32). The default mode is all-zero.

Description

Use cfd tst to enable the TST function. The TST function detects the bit errors between two MEPs by sending TST frames from the source MEP to the target MEP.

By default, the TST function is disabled.

The TST function takes effect only in CFD IEEE 802.1ag.

To view the TST test result, use the display cfd tst command on the target MEP.

Related commands: cfd version and display cfd tst.

Examples

# Enable the TST function in CFD IEEE 802.1ag to test the bit errors between source MEP 1101 and destination MEP 1003 in service instance 1.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] cfd tst service-instance 1 mep 1101 target-mep 1003

Info: TST process is done. Please check the result on the remote device.

Table 4 Command output

Field

Description

TST process is done

The TST test has been performed.

 

cfd version

Syntax

cfd version { draft5 | draft5-plus | standard }

undo cfd version

View

System view

Default level

2: System level

Parameters

draft5: Specifies that IEEE 802.1ag draft5.2 be used.

draft5-plus: Specifies that the IEEE 802.1ag draft5.2 interim version be used.

standard: Specifies that the standard version of IEEE 802.1ag be used.

Description

Use cfd version to configure the CFD protocol version.

Use undo cfd version to restore the default.

By default, CFD uses the standard version of IEEE 802.1ag.

If an MD is created by using the cfd md command or automatically generated by using the cfd service-instance maid format command on a device, you cannot switch between the standard version and draft5.2 version (or draft5.2 interim version); however, you can switch between the draft5.2 version and draft5.2 interim version. This restriction does not apply to the device without an MD configured.

Related commands: cfd md and cfd service-instance maid format.

Examples

# Configure the CFD protocol version as IEEE 802.1ag draft5.2.

<Sysname> system-view

[Sysname] cfd version draft5

display cfd ais

Syntax

display cfd ais [ service-instance instance-id [ mep mep-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

mep mep-id: Specifies the MEP by its ID in the range of 1 to 8191.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd ais to display the AIS configuration and information on the specified MEP.

If no MEP is specified, the display cfd ais command displays the AIS configuration and information of all MEPs in the specified service instance.

If no service instance is specified, the display cfd ais command displays the AIS configuration and information of all MEPs in all service instances.

Related commands: cfd ais enable, cfd ais level, and cfd ais period.

Examples

# Display the AIS configuration and information of all the MEPs in all service instances.

<Sysname> display cfd ais

Service instance: 5

AIS level: 4    AIS period: 1s

MEP ID: 1

AIS condition: yes   Time to enter the condition: 2009/05/22 10:43:57

AIS state machine: Prestate: NO_RECEIVE

                   Curstate: RECEIVE

MEP ID: 2

AIS condition: yes   Time to enter the condition: 2009/05/22 10:43:57

AIS state machine: Prestate: NO_RECEIVE

                   Curstate: RECEIVE

 

Service instance: 20

AIS level: 3    AIS period: 60s

MEP ID: 10

AIS condition: yes   Time to enter the condition: 2009/05/22 10:43:57

AIS state machine: Prestate: NO_RECEIVE

                   Curstate: RECEIVE

 

Service instance: 100

AIS level: 6    AIS period: 1s

MEP ID: 20

AIS condition: no    Time to enter the condition: 2009/05/22 11:40:01

AIS state machine: Prestate: IDLE

                   Curstate: NO_RECEIVE

Table 5 Command output

Field

Description

Service instance

Service instance of the MEP.

AIS level

AIS frame transmission level.

AIS period

AIS frame transmission period.

AIS condition

AIS status:

·     yesAIS is running.

·     noAIS is not running.

Time to enter the condition

The time when the AIS status began.

AIS state machine

AIS packet receiving state machine.

Prestate

Previous state:

·     IDLENot activated.

·     NO_RECEIVEActivated.

·     RECEIVEAIS frames are received.

Curstate

Current state:

·     IDLENot activated.

·     NO_RECEIVEActivated.

·     RECEIVEAIS frames are received.

 

display cfd linktrace-reply

Syntax

display cfd linktrace-reply [ service-instance instance-id [ mep mep-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd linktrace-reply to display the LTR information received by a MEP.

If this command is used without specifying MEP, the information of LTRs of all MEPs in the current service instance is displayed.

If this command is used without specifying any service instance, the information of LTRs of all MEPs is displayed.

Examples

# Display the LTR information saved on all the MEPs in every service instance when the standard version (IEEE 802.1ag) of CFD is used.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] display cfd linktrace-reply

Service instance: 1       MEP ID: 1003

MAC Address               TTL     Last MAC          Relay Action

0000-FC00-6505            63      0000-FC00-6504    MPDB

000F-E269-A852            62      0000-FC00-6505    FDB

0000-FC00-6508            61      000F-E269-A852    Hit

Service instance: 2       MEP ID: 1023

MAC Address               TTL     Last MAC          Relay Action

0000-FC00-6508            61      000F-E269-A852    Hit

# Display the LTR information saved on all the MEPs in every service instance when the IEEE 802.1ag draft5.2 version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5

[Sysname] display cfd linktrace-reply

Service instance: 1       MEP ID: 1003

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      Yes               Found

00E0-FC00-6510            62      Yes               Found

00E0-FC52-BAA0            61      No                None

 

Service instance: 2       MEP ID: 1023

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      No                None

# Display the LTR information saved on all the MEPs in every service instance when the IEEE 802.1ag draft5.2 interim version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5-plus

[Sysname] display cfd linktrace-reply

Service instance: 1       MEP ID: 1003

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      Yes               Found

00E0-FC00-6510            62      Yes               Found

00E0-FC52-BAA0            61      No                None

 

Service instance: 2       MEP ID: 1023

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      No                None

 

 

NOTE:

The output varies by CFD protocol version.

 

Table 6 Command output

Field

Description

Service instance

Service instance to which the MEPs that send LTMs belong.

MEP ID

ID of the MEP that sends LTMs.

MAC Address

Source MAC address in the LTR message.

TTL

Hop count when LTM passes the device.

Last MAC

MAC address of the last-hop device the LTM passes.

Forwarded

Indicates whether the device forwards LTMs:

·     Yes means that the device has forwarded the LTMs.

·     No means that the device did not forward the LTMs.

Relay Action

Indicates whether the forwarding device found the destination MAC address in its MAC address table.

When the standard version (IEEE 802.1ag) of CFD is used:

·     HitThe current device is the destination device.

·     FDBThe forwarding device found the destination MAC address.

·     MPDBThe destination MAC address is not found, or the destination MAC address is found in the MEP or MIP database.

When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft5.2 interim version of CFD is used:

·     FoundThe forwarding device found the destination MAC address in its MAC address table.

·     UnknownThe forwarding device failed to find the destination MAC address in its MAC address table.

·     NoneIt is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address.

 

display cfd linktrace-reply auto-detection

Syntax

display cfd linktrace-reply auto-detection [ size size-value ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

size size-value: Specifies the times of recent auto-detections, in the range of 1 to 100.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd linktrace-reply auto-detection to display the content of the LTR messages received as responses to the automatically sent LTMs.

These LTR messages received as responses to automatically sent LTMs are stored in the buffer after you executed the cfd linktrace auto-detection command.

With the size keyword not specified, this command displays the information of all LTRs stored in the buffer.

Related commands: cfd linktrace auto-detection.

Examples

# Display the contents of the LTRs received as responses to the LTMs automatically sent when the standard version (IEEE 802.1ag) of CFD is used.

<Sysname> system-view

[Sysname] cfd version standard

[Sysname] display cfd linktrace-reply auto-detection

Service instance: 1       MEP ID: 1003    Time: 2006/05/22 10:43:57

Target MEP ID: 2005       TTL: 64

MAC Address               TTL     Last MAC          Relay Action

0000-FC00-6505            63      0000-FC00-6504    MPDB

000F-E269-A852            62      0000-FC00-6505    FDB

0000-FC00-6508            61      000F-E269-A852    Hit

Service instance: 2       MEP ID: 1023    Time: 2006/05/22 10:44:06

Target MEP ID: 2025       TTL: 64

MAC Address               TTL     Last MAC          Relay Action

0000-FC00-6508            61      000F-E269-A852    Hit

# Display the contents of the LTRs received as responses to the LTMs automatically sent when the IEEE 802.1ag draft5.2 version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5

[Sysname] display cfd linktrace-reply auto-detection

Service instance: 1       MEP ID: 1003    Time: 2006/05/22 10:43:57

Target MEP ID: 2005       TTL: 64

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      Yes               Found

00E0-FC00-6510            62      Yes               Found

00E0-FC52-BAA0            61      No                None

 

Service instance: 2       MEP ID: 1023    Time: 2006/05/22 10:44:06

Target MEP ID: 2025       TTL: 64

MAC Address               TTL        Forwarded        Relay Action

00E0-FC27-6502            63         No               None

# Display the contents of the LTRs received as responses to the LTMs automatically sent when the IEEE 802.1ag draft5.2 interim version of CFD is used.

<Sysname> system-view

[Sysname] cfd version draft5-plus

[Sysname] display cfd linktrace-reply auto-detection

Service instance: 1       MEP ID: 1003    Time: 2006/05/22 10:43:57

Target MEP ID: 2005       TTL: 64

MAC Address               TTL     Forwarded         Relay Action

00E0-FC27-6502            63      Yes               Found

00E0-FC00-6510            62      Yes               Found

00E0-FC52-BAA0            61      No                None

 

Service instance: 2       MEP ID: 1023    Time: 2006/05/22 10:44:06

Target MEP ID: 2025       TTL: 64

MAC Address               TTL        Forwarded        Relay Action

00E0-FC27-6502            63         No               None

 

 

NOTE:

The output varies by CFD protocol version.

 

Table 7 Command output

Field

Description

Service instance

Service instance to which the MEPs that sent LTM messages belong.

MEP ID

ID of the MEP that sends LTMs.

Time

Time of the LTMs automatically sent.

Target MEP ID

ID of the target MEP.

TTL

Initial hop count of the automatically sent LTMs.

MAC Address

Source MAC address in the LTR messages.

TTL

Hop count when LTM passes the device.

Last MAC

MAC address of the last-hop device the LTM passes.

Forwarded

Indicates whether the device forwards LTMs:

·     Yes means that the device has forwarded the LTMs.

·     No means that the device did not forward the LTMs.

Relay Action

Indicates whether the forwarding device found the destination MAC address in its MAC address table.

When the standard version (IEEE 802.1ag) of CFD is used:

·     HitThe current device is the destination device.

·     FDBThe forwarding device found the destination MAC address.

·     MPDBThe destination MAC address is not found, or the destination MAC address is found in the MEP or MIP database.

When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft5.2 interim version of CFD is used:

·     FoundThe forwarding device found the destination MAC address.

·     UnknownThe forwarding device failed to find the destination MAC address.

·     NoneIt is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address.

 

display cfd ma

Syntax

display cfd ma [ [ ma-name ] md { md-name | level level-value } ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

ma-name: Name of MA, a character string of 1 to 43 characters. IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special characters (including – and _), but do not allow an MA name to start or end with a special character.

md-name: Name of an MD, a character string of 1 to 43 characters. IEEE 802.1ag standard version allows an MD name to contain letters, numbers, and special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to contain letters, numbers, and special characters (including – and _), but do not allow an MD name to start or end with a special character.

level level-value: Specifies the MD level in the range of 0 to 7.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd ma to display the configuration of a specified MA.

If MD is not specified, this command will display the MA configurations of all MDs on the device.

If both MD and MA are specified, this command will display the specified MA configuration.

If only MD is specified, this command will display the configurations of all MAs in that MD.

If a MD does not have a name, you can specify it only by the MD level.

Examples

# Display the MA configuration information in all MDs.

<Sysname> display cfd ma

3 maintenance domain(s) configured.

Maintenance domain: mdtest_5

1 maintenance association(s) belong(s) to this maintenance domain:

Maintenance association: matest_5

Service instance: 5          VLAN: 5          Level: 5

 

Maintenance domain: mdtest_6

1 maintenance association(s) belong(s) to this maintenance domain:

Maintenance association: matest_6

Service instance: 6          VLAN: 6          Level: 6

 

Maintenance domain: (Without Name)

1 maintenance association(s) belong(s) to this maintenance domain:

Maintenance association: matest_7

Service instance: 7          VLAN: 7          Level: 7

Table 8 Command output

Field

Description

3 maintenance domain(s) configured.

Number of MDs configured.

Maintenance domain

Name of the MD. (If the MD does not have a name, this field is displayed as Without Name.)

Level

MD level.

1 maintenance association(s) belong(s) to this maintenance domain

Number of MAs configured in the MD.

Maintenance association

Name of the MA.

Service instance

Service instance of the MA.

VLAN

VLAN to which the service instance belongs.

Level

Level of the MD to which the MA belongs.

 

display cfd md

Syntax

display cfd md [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd md to display the MD configuration information.

Examples

# Display the MD configuration information.

<Sysname> display cfd md

CFD is enabled.

8 maintenance domain(s) configured:

Level: 0     Maintenance domain: mdtest_0

Level: 1     Maintenance domain: mdtest_1

Level: 2     Maintenance domain: mdtest_2

Level: 3     Maintenance domain: mdtest_3

Level: 4     Maintenance domain: mdtest_4

Level: 5     Maintenance domain: mdtest_5

Level: 6     Maintenance domain: mdtest_6

Level: 7     Maintenance domain: (Without Name)

Table 9 Command output

Field

Description

8 maintenance domain(s) configured

Number of MDs configured.

Level

Level of MD, each level allows only one MD.

Maintenance domain

Name of MD. (If the MD does not have a name, this field is displayed as Without Name.)

 

display cfd mep

Syntax

display cfd mep mep-id service-instance instance-id [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

mep mep-id: Specifies a MEP by its ID in the range of 1 to 8191.

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd mep to display the attribute and operating information of a MEP.

Examples

# Display the attribute and operating information of MEP 50 in service instance 1.

<Sysname> display cfd mep 50 service-instance 1

Interface: GigabitEthernet3/0/2

Maintenance domain: mdtest_1

Maintenance association: matest_1

Level: 1        VLAN: 1         Direction: Outbound

Administrative state: Active          CCM send: Enable

FNG state: FNG_DEFECT_REPORTED

 

CCM:

Current state: CCI_WAITING

Interval: 1s       SendCCM: 12018

 

Loopback:

NextSeqNumber: 8877

SendLBR: 0          ReceiveInOrderLBR: 0          ReceiveOutOrderLBR: 0

 

Linktrace:

NextSeqNumber: 8877

SendLTR: 0          ReceiveLTM: 0

 

No CCM from some remote MEPs is received.

 

One or more streams of error CCMs is received. The last-received CCM:

Maintenance domain: (Without Name)

Maintenance association:matest1

MEP:5      Sequence Number:0x50A

Received Time: 02/3/6 13:01:34

 

One or more streams of cross-connect CCMs is received. The last-received CCM:

Maintenance domain:mdtest1

Maintenance association:matest1

MEP:6      Sequence Number:0x63A

Received Time: 02/3/6 13:01:34

 

Some other MEPs are transmitting the RDI bit.

Table 10 Command output

Field

Description

Interface

Interface that an MD belongs to.

Maintenance domain

MD that a MEP belongs to. (If the MD does not have a name, this field is displayed as Without Name.)

Maintenance association

MA that a MEP belongs to.

Level

Level of the MD.

VLAN

VLAN that the MA belongs to.

Direction

Direction of the MEPs.

Administrative state

State of MEP, either Active or Inactive.

CCM send

Whether the MEP sends CCM.

FNG state

State of FNG (Fault Notification Generator):

·     FNG_RESET.

·     FNG_DEFECT.

·     FNG_REPORT_DEFECT.

·     FNG_DEFECT_REPORTED.

·     FNG_DEFECT_CLEARING.

If this field is not supported, a hyphen (-) is displayed.

CCM

Information related to CCM.

Current state

State of CCMs sent:

·     CCI_IDLE.

·     CCI_WAITING.

If this field is not supported, a hyphen (-) is displayed.

Interval

Interval to send CCM.

SendCCM

Number of CCMs that have been sent by the MEPs.

If this field is not supported, a hyphen (-) is displayed.

Loopback

Information related to Loopback.

NextSeqNumber

Sequence number of the next LBM to be sent.

SendLBR

Number of LBRs that have been sent. If the MEP is inward-facing, the number of LBRs will not be counted.

ReceiveInOrderLBR

Number of LBR messages received in correct sequence.

ReceiveOutOrderLBR

Number of LBR messages received out of order.

Linktrace

Information related to linktrace.

NextSeqNumber

Sequence number of the next LTM to be sent.

SendLTR

Number of LTRs sent. If the MEP is inward-facing, the number of LTRs will not be counted.

ReceiveLTM

Number of LTMs received.

No CCM from some remote MEPs is received.

Failure to receive CCMs from some remote MEPs (This information is displayed only when some CCMs are lost.)

One or more streams of error CCMs is received. The last-received CCM:

Display the content of the last error CCM when one or more error CCMs are received. (This information is displayed only when error CCMs are received.)

Maintenance domain

MD of the last error CCM message.

If this field is not supported, a hyphen (-) is displayed.

Maintenance association

MA of the last error CCM message.

If this field is not supported, a hyphen (-) is displayed.

MEP

ID of the MEP that sent the last error CCM message.

If this field is not supported, a hyphen (-) is displayed.

Sequence Number

Sequence number of the last error CCM.

If this field is not supported, a hyphen (-) is displayed.

Received Time

Time when the last error CCM is received.

One or more streams of cross-connect CCMs is received. The last-received CCM:

Cross-connect CCMs are received, and the content of the last cross-connect CCM is displayed. (This information is displayed only when cross-connect CCMs are received.)

Some other MEPs are transmitting the RDI bit.

CCMs with the RDI flag bits set are received from other MEPs. (This information is displayed only when this type of CCMs are received.)

 

display cfd meplist

Syntax

display cfd meplist [ service-instance instance-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd meplist to display the MEP list in a service instance.

If the service instance ID is not specified, this command displays MEP lists in all service instances.

Examples

# Display the MEP list in service instance 5.

<Sysname> display cfd meplist service-instance 5

Service instance: 5

MEP list: 1 to 20, 30, 50.

display cfd mp

Syntax

display cfd mp [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Displays the MP information on a port specified by its port type and port number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd mp to display the MP information.

If no port is specified, this command displays the MP information on all ports.

The output is arranged by port name, then in the ascending VLAN ID order on the same port, and in the order of outward-facing MEPs (from low to high level), MIPs, and inward-facing MEPs (from high to low level) within the same VLAN.

Examples

# Display the MP information on all ports.

<Sysname> display cfd mp

Interface GigabitEthernet3/0/1   VLAN 100

MEP ID: 100      Level: 0    Service instance: 100    Direction: Outbound

Maintenance domain: mdtest0

Maintenance association: mainmd0

 

MEP ID: 105      Level: 5    Service instance: 105    Direction: Outbound

Maintenance domain: mdtest5

Maintenance association: mainmd5

 

MIP              Level: 6    Service instance: 106

Maintenance domain: mdtest6

Maintenance association: mainmd6

 

MEP ID: 104      Level: 4    Service instance: 104    Direction: Inbound

Maintenance domain: mdtest4

Maintenance association: mainmd4

 

MEP ID: 102      Level: 2    Service instance: 102    Direction: Inbound

Maintenance domain: mdtest2

Maintenance association: mainmd2

 

Interface GigabitEthernet3/0/4   VLAN 1

MEP ID: 9        Level: 6    Service instance: 6      Direction: Outbound

Maintenance domain: mdtest6

Maintenance association: matest6

Table 11 Command output

Field

Description

Interface GigabitEthernet3/0/1   VLAN 100

MP configuration of the specified VLAN on the specified port.

MEP ID

ID of the MEP.

MIP

A MIP in the MP.

Level

MD level that an MP belongs to.

Service instance

Service instance to which the MP belongs.

Direction

Direction of the MEP.

Maintenance domain

MD to which an MP belongs.

Maintenance association

MA to which an MP belongs.

 

display cfd remote-mep

Syntax

display cfd remote-mep service-instance instance-id mep mep-id [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of a remote MEP, in the range of 1 to 8191.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd remote-mep to display the information of a remote MEP.

Examples

# Display the information of remote MEP 10 in service instance 4.

<Sysname> display cfd remote-mep service-instance 4 mep 10

MEP ID   MAC Address      State        Time                  MAC Status

20       00E0-FC00-6565   OK           2006/03/06 02:36:38   UP

30       00E0-FC27-6502   OK           2006/03/06 02:36:38   DOWN

40       00E0-FC00-6510   FAILED       2006/03/06 02:36:39   DOWN

50       00E0-FC52-BAA0   OK           2006/03/06 02:36:44   DOWN

60       0010-FC00-6502   OK           2006/03/06 02:36:42   DOWN

Table 12 Command output

Field

Description

MEP ID

ID of the remote MED.

MAC Address

MAC address of the remote MEP device.

If this field is not supported, a hyphen (-) is displayed.

State

Running state of the remote MEP: OK or FAILED.

Time

Time when the remote MEP entered the FAILED or OK state for the last time.

MAC Status

State of the port indicated by the last CCM received from the remote MEP: UP or DOWN.

If this field is not supported, a hyphen (-) is displayed.

 

display cfd service-instance

Syntax

display cfd service-instance [ instance-id ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

instance-id: Specifies the service instance ID in the range of 1 to 32767.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd service-instance to display the configuration information of service instance.

Without specifying the service instance ID, the command will display the configuration information of all service instances.

Examples

# Display the configuration information of all service instances.

<Sysname> display cfd service-instance

2 service instance(s) configured:

Service instance 5:

Maintenance domain: mdtest_5

Maintenance association: matest_5

Level: 5        VLAN: 5        MIP rule: None         CCM interval: 1s

 

Service instance 6:

Maintenance domain: mdtest_6

Maintenance association: matest_6

Level: 6        VLAN: 6        MIP rule: None         CCM interval: 1s

MEP ID: 730     Interface: GigabitEthernet3/0/1                Direction: Inbound

 

Service instance 6:

Maintenance domain: (Without Name)

Maintenance association: matest_6

Level: 6        VLAN: 6        MIP rule: None         CCM interval: 1s

MEP ID: 731     Interface: GigabitEthernet3/0/2                Direction: Outbound

Table 13 Command output

Field

Description

2 service instance(s) are configured.

Number of service instance configured.

Service instance 5

Service instance ID.

Maintenance domain

MD of the service instance. (If the MD does not have a name, this field is displayed as Without Name.)

Maintenance association:

MA of the service instances.

Level

MD level.

VLAN

VLAN that the MA belongs to.

MIP rule

MIP generation rules configured on service instance.

CCM interval

Interval to send CCMs.

MEP ID

ID of MEPs configured on the service instance.

Interface

Interface of the MEP configured on the service instance.

Direction

Direction of the MEPs configured on the service instance.

 

display cfd status

Syntax

display cfd status [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd status to display the status of CFD and AIS (enabled or disabled).

Examples

# Display the status of CFD and AIS.

<Sysname> display cfd status

CFD is enabled.

AIS is disabled.

display cfd tst

Syntax

display cfd tst [ service-instance instance-id [ mep mep-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

mep mep-id: Specifies the MEP by its ID in the range of 1 to 8191.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd tst to display the TST result on the specified MEP.

If no MEP is specified, the display cfd tst command displays the TST results of all MEPs in the specified service instance.

If no service instance is specified, the display cfd tst command displays the TST results of all MEPs in all service instances.

Related commands: cfd tst.

Examples

# Display the TST results of all the MEPs in all service instances.

<Sysname> display cfd tst

Service instance: 1

MEP ID: 1003

Send TST total number: 0

Received TST total number: 5

Received from 0010-FC00-6510, sequence number 1: Bit True

Received from 0010-FC00-6510, sequence number 2: Bit True

Received from 0010-FC00-6510, sequence number 3: Bit True

Received from 0010-FC00-6510, sequence number 4: Bit True

Received from 0010-FC00-6510, sequence number 5: Bit True

MEP ID: 1004

Send TST total number: 5

Received TST total number: 0

 

Service instance: 2

No mep exists in the service instance.

 

Service instance: 3

MEP ID: 1023

Send TST total number: 5

Received TST total number: 0

Table 14 Command output

Field

Description

Service instance

Service instance of the MEP.

Send TST total number

Number of TST frames sent.

Received TST total number

Number of TST frames received.

Received from 0010-FC00-6510, sequence number 01

TST frame with sequence number 01 received from the MEP with MAC address 0010-FC00-6510:

·     Bit TrueNo bit error occurred.

·     Bit FalseBit errors occurred.

 

display cfd version

Syntax

display cfd version [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display cfd version to display the CFD protocol version.

Examples

# Display the CFD protocol version.

<Sysname> display cfd version

The current CFD version is standard.

Table 15 Command output

Field

Description

The current CFD version is draft5

Indicates that the current CFD protocol is IEEE 802.1ag draft5.2.

The current CFD version is draft5-plus

Indicates that the current CFD protocol is the IEEE 802.1ag draft5.2 interim version.

The current CFD version is standard

Indicates that the current CFD protocol is the standard version of IEEE 802.1ag.

 

reset cfd tst

Syntax

reset cfd tst [ service-instance instance-id [ mep mep-id ] ]

View

User view

Default level

1: Monitor level

Parameters

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

mep mep-id: Specifies the MEP by its ID in the range of 1 to 8191.

Description

Use reset cfd tst to clear the TST result on the specified MEP.

If no MEP is specified, the reset cfd tst command clear the TST results of all MEPs in the specified service instance.

If no service instance is specified, the reset cfd tst command clears the TST results of all MEPs in all service instances.

Related commands: display cfd tst.

Examples

# Clear the TST results of all the MEPs in all service instances.

<Sysname> reset cfd tst

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网