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

Answered Question
May 14th, 2007

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?






Correct Answer by Jon Marshall about 9 years 9 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Jon Marshall Mon, 05/14/2007 - 10:40

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

Actions

This Discussion