05-14-2007 08:52 AM - edited 03-05-2019 04:03 PM
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?
Solved! Go to Solution.
05-14-2007 10:40 AM
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
05-14-2007 10:40 AM
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
05-14-2007 11:13 AM
That did it!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide