cfd linktrace

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

Syntax

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

Views

Any view

Predefined user roles

network-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, in the format of H-H-H.

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

ttl ttl-value: Specifies the time to live value in the range of 1 to 255 and defaulting to 64.

hw-only: Sets the hw-only bits of the LTMs sent. If this keyword is specified, the MIP does not flood LTM messages that have an unknown destination MAC address.

Examples

# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1.

<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

Table 8: 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

TTL value when the LTM passes the device.

Last MAC

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

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:

  • Hit—The current device is the destination device.

  • FDB—The forwarding device found the destination MAC address.

  • MPDB—The destination MAC address is not found, or the destination MAC address is found in the MEP or MIP database.

Related commands