Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

identifying where a IP is attached.

Status
Not open for further replies.

youcandoit

Technical User
Feb 14, 2005
159
US
can anyone help me to ID where an IP is attached?

thanks
 
You weren't very explicit in your question. So assuming you only have one switch, these commands should work for you.

Find a port based on IP address
• Telnet to switch.
• Ping IP address.
• sh arp – This will return the mac address.
• sh mac-address address mac address - This will return the card/port the computer is plugged into.
 
On the 12th of April 2005 11:52 a TechnicalUser named youcandoit asked the following question:
identifying which mac is on which a specific port.
Was that you?
It was probably the follow-up of the question on 25 Feb 2005 13:45 about "Identifying mac to which port it's attached".

I replied with a method how to determine all MAC addresses including IP addresses per port on a switch. And with a simple batch file you can query all your switches.
Why not give it a try?
Cammer is free after all.
 
If this is a Cisco device try using the Show CDP neighbor command.
 
Alternatively, you will need to look at the MAC table and maybe even the arp cache.

Reamin positive. The affect on those around you will amaze.
 
The cammer script queries the switch and collects the MAC addresses. It then queries the router to resolve the MAC addresses to IP addresses.
Now Cammer can give you the complete list of all ports with MAC and IP address of the whole switch.

perl cammer public@myswitch_ip public@myrouter_ip >result.txt

(Be amazed, the effect on those around you will remain positive ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top