Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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

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
Hall of Fame Super Blue

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

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

2 REPLIES
Hall of Fame Super Blue

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

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

New Member

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

That did it!

264
Views
0
Helpful
2
Replies