32
Related commands
•
cfd
linktrace
•
display cfd linktrace-reply auto-detection
cfd loopback
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.
Syntax
cfd loopback service-instance
instance-id
mep
mep-id
{
target-mac
mac-address
|
target-mep
target-mep-id
} [
number
number
]
Default
LB is not enabled.
Views
Any view
Predefined user roles
network-admin
mdc-admin
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-mac
mac-address
: Specifies the destination MAC address of the MP, in the format of H-H-H.
target-mep
target-mep-id
: Specifies the ID of the target MEP, in the range of 1 to 8191.
number
number
: Specifies the number of the LBMs packets sent, in the range of 1 to 10. The default
is 5.
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
Loopback to 0000-fc00-6512 with the sequence number start from 1101-43404:
Send:5 Received:0 Lost:5