2-738
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
traceroute mac
Examples
This example shows how to display the Layer 2 path by specifying the source and destination MAC
addresses:
Switch#
traceroute mac 0000.0201.0601 0000.0201.0201
Source 0000.0201.0601 found on con6[ME-C3750-12TE] (2.2.6.6)
con6 (2.2.6.6) :Fa1/0/2 => Gi1/0/2
con5 (2.2.5.5 ) : Gi1/0/2 => Fa1/0/2
con1 (2.2.1.1 ) : Fa1/0/3 => Gi1/0/2
con2 (2.2.2.2 ) : Fa1/0/2 => Fa0/0/3
Destination 0000.0201.0201 found on con2[ME-C3550-24TE] (2.2.2.2)
Layer 2 trace completed
This example shows how to display the Layer 2 path by using the
detail
keyword:
Switch#
traceroute mac 0002.b3d3.bb29 0005.5d10.51d4 detail
Source 0002.b3d3.bb29 found on ip28-3750a[ME-C3750-24TE] (172.18.18.2)
1 ip28-3750a / ME-C3750-24TE / 172.18.18.2 :
Gi1/1/1 [auto, 1000M] => Fa1/0/2 [auto, auto]
Destination 0005.5d10.51d4 found on ip28-3750a[ME-C3750-24TE] (172.18.18.2)
Layer2 trace completed.
This example shows how to display the Layer 2 path by specifying the interfaces on the source and
destination switches:
Switch#
traceroute mac interface fastethernet1/0/1 0000.0201.0601 interface
fastethernet1/0/3 0000.0201.0201
Source 0000.0201.0601 found on con6[ME-C3750-12TE] (2.2.6.6)
con6 (2.2.6.6) :Gi1/0/1 => Gi0/0/2
con5 (2.2.5.5 ) : Gi1/0/2 => Gi0/0/1
con1 (2.2.1.1 ) : Gi1/0/1 => Gi1/0/2
con2 (2.2.2.2 ) : Gi1/0/2 => Gi1/0/1
Destination 0000.0201.0201 found on con2[WS-C3550-24] (2.2.2.2)
Layer 2 trace completed
This example shows the Layer 2 path when the switch is not connected to the source switch:
Switch#
traceroute mac 0000.0201.0501 0000.0201.0201 detail
Source not directly connected, tracing source .....
Source 0000.0201.0501 found on con5[ME-C3750-12TE] (2.2.5.5)
con5 / WS-C3750-12T / 2.2.5.5 :
Gi1/0/1 [auto, auto] => Gi1/0/3 [auto, auto]
con1 / WS-C3550-12G / 2.2.1.1 :
Gi0/1 [auto, auto] => Gi0/2 [auto, auto]
con2 / WS-C3550-24 / 2.2.2.2 :
Gi0/2 [auto, auto] => Fa0/1 [auto, auto]
Destination 0000.0201.0201 found on con2[WS-C3550-24] (2.2.2.2)
Layer 2 trace completed.
This example shows the Layer 2 path when the switch cannot find the destination port for the source
MAC address:
Switch#
traceroute mac 0000.0011.1111 0000.0201.0201
Error:Source Mac address not found.
Layer2 trace aborted.
This example shows the Layer 2 path when the source and destination devices are in different VLANs:
Switch#
traceroute mac 0000.0201.0601 0000.0301.0201
Error:Source and destination macs are on different vlans.
Layer2 trace aborted.
This example shows the Layer 2 path when the destination MAC address is a multicast address:
Switch#
traceroute mac 0000.0201.0601 0100.0201.0201
Invalid destination mac address