cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
54665
Views
0
Helpful
6
Replies

traceroute mac command example

sarahr202
Level 5
Level 5

Hi everybody

I am reading about the command " traceroute mac SRC-MAC-ADD  DESTI-MAC-ADDRESS ". Unfortunately, my book did not give any example and google search did not yield any good example.

I will appreciate if someone could give me an example.

thanks and have a nice weekend.

4 Accepted Solutions

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

singhaam007
Level 3
Level 3

hello Sarah,

you can use # traceroute mac 0001.0000.0204 0001.0000.0304 detail

# traceroute mac 0000.0011.1111 0000.0201.0201 (not able to find the address)

Error:Source Mac address not found.

Layer2 trace aborted.

please check this link for detail information.

http://www.ciscozine.com/2011/01/12/how-to-trace-mac-address/

hope this will help.

thanks

View solution in original post


Find the corresponding Mac address of the host for which you are trying to locate
==================================================================================

Core#ping 10.242.3.18

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.242.3.18, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Core#show arp | include 10.242.3.18
Internet  10.242.3.18             9   0001.6c4d.c0f7  ARPA   Vlan3


Please find the example which you have requested.
==================================================

Core#traceroute mac 0001.6c4d.c0f7 0001.6c4d.c0f7 vlan 3
Source 0001.6c4d.c0f7 found on Accessswitch

Accessswitch(10.242.0.6) : Fa3/58 => Fa3/58
Destination 0001.6c4d.c0f7 found on Accessswitch

Layer 2 trace completed

View solution in original post

Hi Sarah,

you can use detail keyword for more information,

Switch# traceroute mac 0000.0201.0501 0000.0201.0201 detail

Source not directly connected, tracing source .....

Source 0000.0201.0501 found on con5[WS-C2960-12T] (2.2.5.5)

con5 / WS-C2960-12T / 2.2.5.5 :

        Gi0/1 [auto, auto] => Gi0/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.


thanks

View solution in original post

6 Replies 6

cadet alain
VIP Alumni
VIP Alumni

Hi,

http://www.cisco.com/en/US/docs/switches/lan/catalyst3550/software/release/12.1_13_ea1/command/reference/cli3.pdf

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

singhaam007
Level 3
Level 3

hello Sarah,

you can use # traceroute mac 0001.0000.0204 0001.0000.0304 detail

# traceroute mac 0000.0011.1111 0000.0201.0201 (not able to find the address)

Error:Source Mac address not found.

Layer2 trace aborted.

please check this link for detail information.

http://www.ciscozine.com/2011/01/12/how-to-trace-mac-address/

hope this will help.

thanks

Please consider the followingt example:

h1------f1/1----sw1--trunk---f1/2-Sw2--trunk--f1/3-Sw3--f1/4---h2

                                                                    |

                                                                   trunk

                                                                    |

                                                                   f1/4

                                                                   sw4

h1--> mac1

h2--->mac2

We issue the command at sw4 as shown below:

traceroute mac  MAC1 MAC2

what would be the output?

Will we get:

mac1 is found on sw1

sw1(1.1.1.1) f1/1

sw2(2.2.2.2) f1/2

sw3(3.3.3.3) f1/3

sw4(4.4.4.4) f1/4

destination mac2 found on sw3

Or will we get:

mac1 is found on sw1

sw1(1.1.1.1) f1/1

sw2(2.2.2.2) f1/2

sw3(3.3.3.3) f1/3

destination mac2 found on sw3.


thanks and have a great day.

Hi Sarah,

you can use detail keyword for more information,

Switch# traceroute mac 0000.0201.0501 0000.0201.0201 detail

Source not directly connected, tracing source .....

Source 0000.0201.0501 found on con5[WS-C2960-12T] (2.2.5.5)

con5 / WS-C2960-12T / 2.2.5.5 :

        Gi0/1 [auto, auto] => Gi0/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.


thanks


Find the corresponding Mac address of the host for which you are trying to locate
==================================================================================

Core#ping 10.242.3.18

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.242.3.18, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Core#show arp | include 10.242.3.18
Internet  10.242.3.18             9   0001.6c4d.c0f7  ARPA   Vlan3


Please find the example which you have requested.
==================================================

Core#traceroute mac 0001.6c4d.c0f7 0001.6c4d.c0f7 vlan 3
Source 0001.6c4d.c0f7 found on Accessswitch

Accessswitch(10.242.0.6) : Fa3/58 => Fa3/58
Destination 0001.6c4d.c0f7 found on Accessswitch

Layer 2 trace completed

sarahr202
Level 5
Level 5

Thanks Singh.

Review Cisco Networking for a $25 gift card