2-478
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco 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 traceroute mac command.
traceroute mac [interface interface-id] {source-mac-address} [interface interface-id]
{destination-mac-address} [vlan vlan-id] [detail]
Syntax Description
Defaults This command has no default settings.
Command Modes Privileged EXEC
Command History
Usage Guidelines Do not use leading zeros when entering a VLAN ID.
The Layer 2 traceroute feature is available on these switches:
• Catalyst 2950 switches running Release 12.1(12c)EA1 or later
• Catalyst 3550 switches running Release 12.1(12c)EA1 or later
• Catalyst4500 series switches running Catalyst operating system Release 6.2 or later for the
supervisor engine
• Catalyst4500 series switches running Release 12.1(15)EW or later
• Catalyst 5000 family switches running Catalyst operating system Release 6.1 or later for the
supervisor engine
• Catalyst 6500 series switches running Catalyst operating system Release 6.1 or later for the
supervisor engine
For Layer 2 traceroute to functional properly, Cisco Discovery 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 identified in the path is ten.
interface interface-id (Optional) Source or destination switch interface.
source-mac-address MAC address of the source switch in hexadecimal format.
destination-mac-address MAC address of the destination switch in hexadecimal format.
vlan vlan-id (Optional) 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.
Release Modification
12.1(15)EW Support for this command was introduced on the Catalyst 4500 series switch.