Specifications
2-884
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
traceroute mac
traceroute mac
To display the Layer 2 path taken by the packets from the specified source MAC address to the specified
destination MAC address, use the tracerou te mac command.
traceroute mac [interface interface-id] {source-mac-add ress} [in ter face interface-id]
{destination-mac-ad dress} [vlan vlan-id] [detail]
Syntax Description
Defaults T his command has no default settings.
Command Modes Privileged EXE C mode
Usage Guidelines D o not use leading zeros when entering a VLAN ID.
For Layer 2 traceroute to functio nal properly, Cisco Discove ry Protocol (CDP) must be enabled on all
of the switches in the network. Do not disable CDP.
When the switch detects a device in the Layer 2 path that does not support Layer 2 traceroute, the switch
continues to send Layer 2 trace queries and lets them time out.
The maximum number of hops identi fied in the path is ten.
Layer 2 traceroute supports only unicast traffic. If you specify a multicast source or destination MAC
address, the physical path is not identified, and a message appears.
The traceroute mac command output shows the Layer 2 path when the specified source and destination
addresses belong to the same VLAN. If you specify source and destination addresses that belong to
different VLANs, the Layer 2 path is not identified, and a message appears.
If the source or destination MAC address belongs to multiple VLANs, you must specify the VLAN to
which both the source and destina tion M AC address es belong. If the VLAN is not specified, the pat h is
not identified, and a message appears.
Layer 2 traceroute is not suppo rted when multiple devices are attached to one port through hubs (for
example, multiple CDP neighbors are detected on a port). When more than one CDP neighbor is detected
on a port, the Layer 2 path is not identified, and a message appears.
This feature is not su pported in Toke n Ring V LANs.
interface interface-id (Optional) Specifies the source or destination switch interface.
source-mac-address MAC address of the source switch in hexadecimal f ormat.
destination-mac-ad dress MAC address of the destination switch in hexadec imal format.
vlan vlan-id ( Optional) Specifies the VLAN on which to trace the Layer 2 path that the
packets take from the source switch to the destination switch; valid VLAN
IDs are from 1 to 4094. Do not enter leading zeros.
detail (Optional) Displays detail information.