< Home

trace vpls mac vsi

Function

The trace vpls mac vsi command checks PE and P devices on the VPLS network which packets pass through from the source to the destination. This command is used to check the connectivity of Layer 2 forwarding links and locate faults on the network.

Format

trace vpls mac mac-address vsi vsi-name [ vlan vlan-id ] [ -t timeout | -f first-ttl | -m max-ttl | -exp exp | -r replymode ] *

Parameters

Parameter Description Value
mac mac-address Specifies the unicast destination MAC address of the VPLS MAC trace, expressed in the format of H-H-H. An H is a hexadecimal number of 1 to 4 bits, such as 00e0 and fc01. If you enter less than four digits, 0s are padded before the input digits. For example, if e0 is entered, 00e0 is displayed. The value cannot be a broadcast or multicast MAC address.
vsi vsi-name Specifies the name of a VSI. The value is an existing VSI.
vlan vlan-id Specifies the ID of a VLAN vlan-id specifies the VLAN ID, which is an integer that ranges from 1 to 4094.
-t timeout Specifies the timeout period for waiting for a Reply packet in response to a VPLS MAC Trace Request packet. The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 2000 ms.
-f first-ttl Specifies the initial TTL. The value is an integer that ranges from 1 to max-ttl. The default value is 1.
-m max-ttl Specifies the maximum TTL. The value is an integer that ranges from first-ttl to 255. The default value is 30.
-exp exp Specifies the priority. The value is an integer that ranges from 0 to 7. The default value is 0.
-r replymode Specifies the reply mode, that is, the Reply packet is sent from the control layer or the data layer.
  • 1: indicates that the peer end does not respond to MPLS MAC Trace Request packets.
  • 2: indicates that the peer end responds to MPLS MAC Trace Request packets with IPv4 or IPv6 UDP packets.
  • 3: indicates that the peer end responds to MPLS MAC Trace Request packets with IPv4 or IPv6 UDP packets containing the Router Alert TLV option.
  • 4: indicates that the peer end responds to MPLS MAC Trace Request packets through the control channel of the application program grade.
  • 5: indicates that the peer end responds to MPLS MAC Trace Request packets with VPLS IPv4 UDP packets.
Enumerated type. At present, only mode 1, 2, and 5 are supported. When mode 2 is adopted, reply packets are sent from the control layer; when mode 5 is adopted, reply packets are sent from the data layer. The default value is 5.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Using the trace vpls mac vsi command, you can check the connectivity of Layer 2 forwarding links on the VPLS network, analyze roles of devices, and locate faults on the network.

Prerequisites

Before running this command, ensure that a VSI is configured and the VSI is in the Up state.

Example

# On the VPLS network, trace the device with the MAC address 781d-ba56-355e.

<HUAWEI> trace vpls mac 781d-ba56-355e vsi a2
 Traceroute to mac 781d-ba56-355e vsi a2, 30 hops max, press CTRL_C to break
 TTL  Num     Replier          Time     Type     Downstream              Hit
              LSR-ID           Out Interface
 ---------------------------------------------------------------------------
 0    1                                 Ingress  10.1.1.1/[3 ]          N
              1.1.1.9          Vlanif1025
 1    1       10.1.1.1        8 ms     Egress                           Y
              3.3.3.9
Info: Succeed in tracing the destination address 781d-ba56-355e.
Table 1 Description of the tracert vpls multicast command output

Item

Description

TTL

Time to live.

Num

Sequence number of the packet sent at each hop.

Replier

IP address of the node sending MPLS Echo Reply packets.

Time

Time the packet is processed, that is, period from the time the Request packet is sent from the source node to the time a Reply packet is received by the source node.

Type

Type of the device that sends the Reply packet, which can be:
  • Ingress: indicates an ingress node.
  • Transit: indicates a transmit node.
  • Egress: indicates an egress node.

Downstream

Address and label of the next hop.

For example, 10.1.1.1/[3] indicates that the IP address of the next hop is 10.1.1.1 and the label allocated to the next hop is 3.

Hit

Whether the Request packet reaches the destination.
  • Y: The Request packet reaches the destination.
  • N: The Request packet does not reach the destination.

LSR-ID

ID of the LSR.

Out Interface

Outbound interface through which packets are forwarded.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >