802.1ag MAC trace monitors the connectivity between MEPs or between MEPs and MIPs within an MA and provides information used to locate faults.
Similar to traceroute or tracert, 802.1ag MAC trace tests the path between the local device and a destination device or locates failure points by sending test packets and receiving reply packets.
Before performing 802.1ag MAC trace, ensure that 802.1ag has been configured. For more information, see Configuring Basic Ethernet CFM Functions.
In the MA view:
The system view is displayed.
The portid-tlv type for trace packets is set.
The MD view is displayed.
The MA view is displayed.
Run the trace mac-8021ag command without md md-name ma ma-name in the MA view to monitor a forwarding path or locate a failure point in the current MA.
Run the trace mac-8021ag md md-name ma ma-name command in the MA view to monitor a forwarding path or locate a failure point in the specified MA.
An example is as follows:
<HUAWEI> system-view [~HUAWEI] cfm enable [*HUAWEI] cfm md md1 [*HUAWEI-md-md1] ma ma1 [*HUAWEI-md-md1-ma-ma1] trace mac-8021ag mep mep-id 1 md md1 ma ma1 remote-mep mep-id 8 Tracing the route to 00e0-fc12-3458 over a maximum of 64 hops: Hops Ingress Mac Ingress Port Ingress Action Relay Action Egress Mac Egress Port Egress Action Ismep 1 00e0-fc23-3459 GigabitEthernet0/1/1 IngOK RlyFDB 00e0-fc22-3459 GigabitEthernet0/1/2 EgrOK NoMep 2 -- -- -- RlyHit 00e0-fc12-3458 GigabitEthernet0/1/3 EgrOK IsMep Info: Succeeded in tracing the destination address 00e0-fc12-3458.
In all views except the MA view:
The portid-tlv type for trace packets is set.
The connectivity fault between the local and the remote devices is located.
When implementing 802.1ag MAC trace, ensure that:
The MEP is configured in the MA.
If the outbound interface is specified, no inward-facing MEP is configured on it. The interface must be added to the VLAN associated with the MA.
If the destination node is an RMEP, either mac mac-address or remote-mep mep-id mep-id can be selected. If remote-mep mep-id mep-id is selected, the RMEP must already be created using the remote-mep command.
If the destination node is a MIP, select mac mac-address.
If the forwarding entry of the destination node does not exist in the MAC address table, interface interface-type interface-number must be specified.
802.1ag protocol packet statistics are displayed.
If the test using the trace mac-8021ag command fails, you can run this command to check whether a link fault or a device fault occurs.
The 802.1ag protocol packet statistics are displayed.