2-464
Catalyst 2350 Switch Command Reference
OL-19055-01
Chapter 2 Catalyst 2350 Cisco IOS Commands
traceroute mac ip
traceroute mac ip
Use the
traceroute mac ip
privileged EXEC command to display the Layer 2 path taken by the packets
from the specified source IP address or hostname to the specified destination IP address or hostname.
traceroute mac ip
{
source-ip-address
|
source-hostname
} {
destination-ip-address
|
destination-hostname
} [
detail
]
Syntax Description
Defaults
There is no default.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
For Layer 2 traceroute to function properly, Cisco Discovery Protocol (CDP) must be enabled on all the
switches in the network. Do not disable CDP.
When the switch detects an 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.
The
traceroute mac ip
command output shows the Layer 2 path when the specified source and
destination IP addresses are in the same subnet. When you specify the IP addresses, the switch uses
Address Resolution Protocol (ARP) to associate the IP addresses with the corresponding MAC addresses
and the VLAN IDs.
•
If an ARP entry exists for the specified IP address, the switch uses the associated MAC address and
identifies the physical path.
•
If an ARP entry does not exist, the switch sends an ARP query and tries to resolve the IP address.
The IP addresses must be in the same subnet. If the IP address is not resolved, the path is not
identified, and an error message appears.
source-ip-address
Specify the IP address of the source switch as a 32-bit quantity in
dotted-decimal format.
destination-ip-address
Specify the IP address of the destination switch as a 32-bit quantity in
dotted-decimal format.
source-hostname
Specify the IP hostname of the source switch.
destination-hostname
Specify the IP hostname of the destination switch.
detail
(Optional) Specify that detailed information appears.
Release
Modification
12.2(46)EY
This command was introduced.