07-CFD Commands
Chapters Download (125.36 KB)
Syntax
cfd cc service-instance instance-id mep mep-id enable
undo cfd cc service-instance instance-id mep mep-id enable
View
Ethernet port view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of a MEP, ranging from 1 to 8191.
Description
Use the cfd cc enable command to enable CCM sending on a specified MEP.
Use the undo cfd cc enable command 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 1/0/1, Enable CCM sending on MEP 3 in service instance 5.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] cfd cc service-instance 5 mep 3 enable
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, ranging from 4 to 7.
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
Description
Use the cfd cc interval command to set the value of the interval field in the CCM messages.
Use the undo cfd cc interval command to restore default.
By default, the value of this field is 4 for all CCMs sent.
The relationship between the interval field value in the CCM messages, the interval for sending CCM messages, and the timeout time of the remote MEP is shown in Table 1-1.
Interval field value |
Interval for sending CCMs |
Timeout time of remote MEP |
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
Syntax
cfd enable
undo cfd enable
View
System view
Default Level
2: System level
Parameters
None
Description
Use the cfd enable command to enable CFD.
Use the undo cfd enable command to disable CFD.
By default, CFD is disabled.
Examples
<Sysname> system-view
[Sysname] cfd enable
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
System view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of the MEP that sends LTMs, ranging from 1 to 8191.
target-map target-mep-id: Specifies the ID of the MEP that receives LTM, ranging from 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, ranging from 1 to 255 and defaulting to 64.
hw-only: Sets the hw-only bits of the LTMs sent. When this keyword is specified, if 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 forwards these LTMs.
Description
Use the cfd linktrace command to find the path between the specified MEP and the destination MEP, 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 MEP 1101 and MEP 2001 in service instance 1 when the standard version of IEEE 802.1ag 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 MEP 1101 and MEP 2001 in service instance 1 when IEEE 802.1ag draft 5.2 version 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
Table 1-2 cfd linktrace command output description
Field |
Description |
Linktrace to MEP 2001 with the sequence number 1101-43361 |
Linktrace to 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: l Yes means that the current device forwards LTMs. l 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 of IEEE 802.1ag is used: l Hit: Indicates that the current device is the destination device. l FDB: Indicates that the forwarding device found the destination MAC address. l MPDB: Indicates that the destination MAC address is not found, or that the destination MAC address is found in the MEP or MIP database. When IEEE 802.1ag draft5.2 version is used: l Found: Indicates that the forwarding device found the destination MAC address. l Unknown: Indicates that the forwarding device failed to find the destination MAC address. l None: Indicates that it is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address. |
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, ranging from 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 the cfd linktrace auto-detection command to enable the auto sending of linktrace messages.
Use the undo cfd linktrace auto-detection command to disable this function.
By default, this function is disabled.
Note that:
l After LT messages automatic sending is enabled, if a MEP fails to receive the CCMs from the remote MEP with 3.5 sending periods, the link between the two is regarded as faulty and LTMs will be sent out. (The destination of the LTMs is the remote MEP, and the TTL field value is 255.) Based on the LTRs that echo back, the fault source can be located.
l 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
Syntax
cfd loopback service-instance instance-id mep mep-id { target-mep target-mep-id | target-mac mac-address } [ number number ]
View
System view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of a MEP, ranging from 1 to 8191.
target-mep target-mep-id: Specifies the ID of the destination MEP for LBM packets, ranging from 1 to 8191.
target-mac mac-address: Specifies the destination MAC address, in the format of H-H-H.
number number: Specifies the number of the LBMs packets sent, ranging from 1 to 10 and defaulting to 5.
Description
Use the cfd loopback command to enable LB function so that LBMs can be sent from the specified MEP to other MPs in the same service instance, 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.
<Sysname> system-view
[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
Reply from 0010-FC00-6512: sequence number=1101-43405
Reply from 0010-FC00-6512: sequence number=1101-43406
Reply from 0010-FC00-6512: sequence number=1101-43407
Reply from 0010-FC00-6512: sequence number=1101-43408
Send:5 Received:5 Lost:0
Table 1-3 cfd loopback command output description
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 |
Send |
Number of LBMs sent |
Received |
Number of LBR messages received |
Lost |
Number of lost LBMs |
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, composed of letters, numbers or underlines, but cannot start or end with an underline character.
md md-name: Specifies the name of an MD, a string of 1 to 43 characters, composed of letters, numbers or underlines, but cannot start or end with an underline character.
vlan vlan-id: Specifies the ID of the VLAN where MA is in service, ranging from 1 to 4094.
Description
Use the cfd ma command to create MAs in an MD.
Use the undo cfd ma command to delete MAs in an MD.
By default, no MA is created.
Note that:
l Before creating an MA, you must create an MD first.
l The total length of the MA and MD names should not exceed 44 characters.
l 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 MD to serve VLAN 100.
<Sysname> system-view
[Sysname] cfd md test_md level 3
[Sysname] cfd ma test_ma md test_md vlan 100
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, composed of letters, numbers or underlines, but cannot start or end with an underline character.
level level-value: Specifies an MD level, ranging from 0 to 7.
Description
Use the cfd md command to create an MD.
Use the undo cfd md command to delete an MD.
By default, no MD is created.
Note that:
l 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.
l 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
Syntax
cfd mep mep-id service-instance instance-id { inbound | outbound }
undo cfd mep mep-id service-instance instance-id
View
Ethernet port view
Default Level
2: System level
Parameters
mep mep-id: Specifies the ID of a MEP, ranging from 1 to 8191.
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
inbound: Creates an inward-facing MEP.
outbound: Creates an outward-facing MEP.
Description
Use the cfd mep command to create a MEP on a port.
Use the undo cfd mep command to delete the specified MEP.
By default, no MEP is configured on a port.
Note that:
l In creating a MEP, the service instance you specified defines the MD and MA that the MEP belongs to.
l You cannot create a MEP if the MEP ID is not included in the MEP list of the corresponding 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 GigabitEthernet1/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 gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] cfd mep 3 service-instance 5 inbound
Syntax
cfd mep service-instance instance-id mep mep-id enable
undo cfd mep service-instance instance-id mep mep-id enable
View
Ethernet port view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of a MEP, ranging from 1 to 8191.
Description
Use the cfd mep enable command to enable the MEP configured on a port.
Use the undo cfd mep enable command to disable the MEP.
By default, MEP is disabled on a port and cannot respond to LTM and LBM messages unless you enable it.
Related commands: cfd mep.
Examples
# Enable MEP 3 in service instance 5.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] cfd mep service-instance 5 mep 3 enable
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 and ranges from 1 to 8191. &<1-10> indicates you can specify up to 10 MEP ID ranges.
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
Description
Use the cfd meplist command 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 the undo cfd meplist command to delete existing MEP lists.
By default, no MEP list is created.
Note that:
l Before creating a MEP list, you need to create the corresponding MD, MA, and service instance.
l After you delete a MEP list, all local MEP configurations based on this list will be deleted.
Related commands: cfd ma, cfd md, 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
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, ranging from 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 the cfd mip-rule command to configure the rules for generating MIPs. MIPs are generated on each port automatically according to the rules configured.
Use the undo cfd mip-rule command to delete the rule for generating MIPs.
By default, no rules for generating MIPs are configured, nor are the MIPs themselves.
Examples
# Configure the MIP generation rule as default in service instance 5.
<Sysname> system-view
[Sysname] cfd mip-rule default service-instance 5
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, which ranges from 1 to 32767.
md md-name: Specifies the name of an MD, a string of 1 to 43 characters, composed of letters, numbers or underlines, but cannot start or end with an underline character.
ma ma-name: Specifies the name of an MA, a string of 1 to 43 characters, composed of letters, numbers or underlines, but cannot start or end with an underline character.
Description
Use the cfd service-instance command to create a service instance.
Use the undo cfd service-instance command to delete a service instance.
By default, no service instance is created.
Note that:
l You must create MD and MA prior to creating service instance.
l The service instance ID uniquely identifies an MA in an MD.
l When deleting a service instance, you are deleting the configurations related to that service instance as well.
l Deleting a service instance simply breaks up the connection between the service instance and the corresponding MA, the MA itself is not deleted.
Related commands: cfd md, cfd ma.
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 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
Syntax
cfd version { draft5 | standard }
undo cfd version
View
System view
Default Level
2: System level
Parameters
draft5: Specifies that IEEE 802.1ag draft5.2 version be used.
standard: Specifies that the standard version of IEEE 802.1ag be used.
Description
Use the cfd version command to configure the CFD protocol version.
Use the undo cfd version command to restore the default.
By default, CFD uses the standard version of IEEE 802.1ag.
Examples
# Configure the CFD protocol version as IEEE 802.1ag draft5.2.
<Sysname> system-view
[Sysname] cfd version draft5
Syntax
display cfd linktrace-reply [ service-instance instance-id [ mep mep-id ] ]
View
Any view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of a MEP, ranging from 1 to 8191.
Description
Use the display cfd linktrace-reply command to display the LTR information received by a MEP.
Note that:
l If this command is used without specifying MEP, the information of LTRs of all MEPs in the current service instance is displayed.
l If this command is used without specifying any service instance, the information of LTRs of all MEPs is displayed.
Examples
The output information varies as different CFD protocol versions are used.
# Display the LTR information saved on all the MEPs in every service instance when the standard version of IEEE 802.1ag 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 IEEE 802.1ag draft5.2 version 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
Table 1-4 display cfd linktrace-reply command output description
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: l Yes means that the device has forwarded the LTMs. l 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 of IEEE 802.1ag is used: l Hit: Indicates that the current device is the destination device. l FDB: Indicates that the forwarding device found the destination MAC address. l MPDB: Indicates that the destination MAC address is not found, or that the destination MAC address is found in the MEP or MIP database. When IEEE 802.1ag draft5.2 version is used: l Found: Indicates that the forwarding device found the destination MAC address in its MAC address table. l Unknown: Indicates that the forwarding device failed to find the destination MAC address in its MAC address table. l None: Indicates that it is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address. |
Syntax
display cfd linktrace-reply auto-detection [ size size-value ]
View
Any view
Default Level
2: System level
Parameters
size size-value: Specifies the times of recent auto-detections, ranging from 1 to 100.
Description
Use the display cfd linktrace-reply auto-detection command to display the content of the LTR messages received as responses to the automatically sent LTMs.
Note that:
l These LTR messages received as responses to the automatically sent LTMs are stored in the buffer after you executed the cfd linktrace auto-detection command.
l 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
The output information varies as different CFD protocol versions are used.
# Display the contents of the LTRs received as responses to the LTMs automatically sent when the standard version of IEEE 802.1ag 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 IEEE 802.1ag draft5.2 version 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
Table 1-5 display cfd linktrace-reply auto-detection command output description
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: l Yes means that the device has forwarded the LTMs. l 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 of IEEE 802.1ag is used: l Hit: Indicates that the current device is the destination device. l FDB: Indicates that the forwarding device found the destination MAC address. l MPDB: Indicates that the destination MAC address is not found, or that the destination MAC address is found in the MEP or MIP database. When IEEE 802.1ag draft5.2 version is used: l Found: Indicates that the forwarding device found the destination MAC address. l Unknown: Indicates that the forwarding device failed to find the destination MAC address. l None: Indicates that it is a MEP that responded to the LTM message. A MEP does not need to find the destination MAC address. |
Syntax
display cfd ma [ [ ma-name ] md md-name ]
View
Any view
Default Level
2: System level
Parameters
ma-name: Name of MA, ranging from 1 to 43 characters, composed of letters, numbers or underlines, but cannot start or end with an underline character.
md md-name: Specifies the name of an MD, ranging from 1 to 43 characters, composed of letters, numbers or underlines, but cannot start or end with an underline character.
Description
Use the display cfd ma command to display the configuration of a specified MA.
Note that:
l If MD is not specified, this command will display the MA configurations of all MDs on the device.
l If both MD and MA are specified, this command will display the specified MA configuration.
l If only MD is specified, this command will display the configurations of all MAs in that MD.
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 maintenance domain mdtest_5:
Maintenance association: matest_5
Service instance: 5 VLAN: 5 Level: 5
Maintenance domain: mdtest_6
2 maintenance association(s) belong(s) to maintenance domain mdtest_6:
Maintenance association: matest_6
Service instance: 6 VLAN: 6 Level: 6
Maintenance domain: mdtest_7
1 maintenance association(s) belong(s) to maintenance domain mdtest_7:
Maintenance association: matest_7
Service instance: 7 VLAN: 7 Level: 7
Table 1-6 display cfd ma command output description
Field |
Description |
3 maintenance domain(s) configured. |
Number of MDs configured |
Maintenance domain |
Name of the MD |
1 maintenance association(s) belong(s) to maintenance domain mdtest_5 |
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 |
Syntax
display cfd md
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the display cfd md command 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: mdtest_7
Table 1-7 display cfd md command output description
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 |
Syntax
display cfd mep mep-id service-instance instance-id
View
Any view
Default Level
2: System level
Parameters
mep mep-id: Specifies a MEP by its ID, ranging from 1 to 8191.
service-instance instance-id: Specifies a service instance by its ID, ranging from 1 to 32767.
Description
Use the display cfd mep command 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: GigabitEthernet1/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:mdtest1
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 1-8 display cfd mep command output description
Field |
Description |
Interface |
Interface that an MD belongs to |
Maintenance domain |
MD that a MEP belongs to |
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), which can be: l FNG_RESET l FNG_DEFECT l FNG_REPORT_DEFECT, l FNG_DEFECT_REPORTED l FNG_DEFECT_CLEARING |
CCM |
Information related to CCM |
Current state |
State of CCMs sent, which can be: l CCI_IDLE l CCI_WAITING |
Interval |
Interval to send CCM |
SendCCM |
Number of CCMs that have been sent by the MEPs |
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 CCM(s) is/are received.) |
Maintenance domain |
MD of the last error CCM message |
Maintenance association |
MA of the last error CCM message |
MEP |
ID of the MEP that sent the last error CCM message |
Sequence Number |
Sequence number of the last error CCM |
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 CCM(s) is/are received.) |
Some other MEPs are transmitting the RDI bit. |
CCMs with the RDI bits set are received from other MEPs. (This information is displayed only when this type of CCM(s) is/are received.) |
Syntax
display cfd meplist [ service-instance instance-id ]
View
Any view
Default Level
1: Monitor level
Parameters
service-instance instance-id: Specifies a service instance by its ID, ranging from 1 to 32767.
Description
Use the display cfd meplist command to display the MEP list in a service instance.
Note that, 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.
Syntax
display cfd mp [ interface interface-type interface-number ]
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.
Description
Use the display cfd mp command to display the MP information.
Note that:
l If no port is specified, this command displays the MP information on all ports.
l The command 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 GigabitEthernet1/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 GigabitEthernet1/0/4 VLAN 1
MEP ID: 9 Level: 6 Service instance: 6 Direction: Outbound
Maintenance domain: mdtest6
Maintenance association: matest6
Table 1-9 display cfd mp command output description
Field |
Description |
Interface GigabitEthernet1/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 |
Syntax
display cfd remote-mep service-instance instance-id mep mep-id
View
Any view
Default Level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID, ranging from 1 to 32767.
mep mep-id: Specifies the ID of a remote MEP, ranging from 1 to 8191.
Description
Use the display cfd remote-mep command 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 1-10 display cfd remote-mep command output description
Field |
Description |
MEP ID |
ID of the remote MED |
MAC Address |
MAC address of the remote MEP device |
State |
Running state of the remote MEP, which can be 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, which can be UP or DOWN |
Syntax
display cfd service-instance [ instance-id ]
View
Any view
Default Level
2: System level
Parameters
instance-id: Service instance ID, ranging from 1 to 32767.
Description
Use the display cfd service-instance command 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
<Sysname> display cfd service-instance 7
Service instance 7:
Maintenance domain: mdtest_7
Maintenance association: matest_7
Level: 7 VLAN: 7 MIP rule: None CCM interval: 1s
MEP ID: 731 Interface: GigabitEthernet1/0/1 Direction: Inbound
Table 1-11 display cfd service-instance command output description
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 |
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 |
Syntax
display cfd status
View
Any view
Default Level
2: System level
Parameters
None
Description
Use the display cfd status command to display the status of CFD (enabled or disabled).
Examples
# Display the status of CFD.
<Sysname> display cfd status
CFD is enabled.
Syntax
display cfd version
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display cfd version command to display the CFD protocol version.
Examples
# Display the CFD protocol version.
<Sysname> display cfd version
The current CFD version is draft5.
Table 1-12 display cfd version command output description
Field |
Description |
The current CFD version is draft5 |
Indicates that the current CFD protocol is IEEE 802.1ag draft5.2 version |
The current CFD version is standard |
Indicates that the current CFD protocol is IEEE 802.1ag |