cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
475
Views
0
Helpful
2
Replies

6509:How can I find out which port ping is going thru

news2010a
Level 3
Level 3

I am trying to find out on which port <targetIP> is connected to. I know there may be a hub between the switch port and the <targetIP>.

From my Telnet-session-6509, I do:

traceroute <targetIP>

and also

ping <targetIP>

I got responses OK for both, traceroute shows only 1 line, which is the <targetIP>. That means there is no router on the way.

Then I do:

#show mac-address-table | include <targetIP>

I've got no output.

Can someone tell me what I am missing? I see that the show mac-address-table | include <targetIP> doesn't show a mac address entry associated with this(in which table I could use to see the respective switch port traffic is flowing). I thought that when getting the ICMP replies from <targetIP> the switch would record the MAC address in the CAM table.

Can you please let me know how I can find out in which switch port this respective -> Possible Hub--> <targetIP> is plugged into?

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Hi

The switch should record the mac-address in the CAM table. Is this the command you used

#show mac-address-table | include

because the mac-address table does not include IP addresses.

You need to do this

1) ping

2) sh arp | include

From the above command you should be able to get the mac-address

3) sh mac-address-table address "mac-address"

HTH

Jon

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

Hi

The switch should record the mac-address in the CAM table. Is this the command you used

#show mac-address-table | include

because the mac-address table does not include IP addresses.

You need to do this

1) ping

2) sh arp | include

From the above command you should be able to get the mac-address

3) sh mac-address-table address "mac-address"

HTH

Jon

That did it!

Review Cisco Networking products for a $25 gift card