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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find a specify IP on what switch

Status
Not open for further replies.

kcbell

IS-IT--Management
Dec 27, 2001
275
My company has about (75) Cisco 1924 switches. Are there any way to do like a trace route to find out a specify IP is connected to which switch and which port? The distribution layer has two 5500 switches with no core switch. All IP are stub IP.
 
From the 5500 type

CAT5500(enable)show cdp neigh detail

This wil give you all connected layer 2 and 3 Cisco devices and their relevant hostnames and IP addresses and what port it is connected to. You can do this from any of the Cisco devices.

Daniel
 
Daniel,

The "sh cdp neigh detail" on the 5500 will not give me the host IP that are connected to 1900. I need the same command for the 1900, if there is any. Please let me know. I don't want to go thru 75 command to find (1) specify IP.

Thanks
 
Ping the target address.. then use arp -a to get the mac.. search for the mac on the switch... if it's not local to the switch, it will tell you which port the switch thinks it's on.. follow the chain till you get to the switch that gives you the port ID that the lac is actually on.. unless you have a hub attached to it.. then you are screwed as a hub does not maintain CAM tables.

Another place to get the IP or the MAC from is the default gateway(router)

MikeS
Find me at
"The trouble with giving up civil rights is that you never get them back"
 
I have similar situation in my office to trace down the particular machine.
Here is what I did on 35xx XL switch(IOS base). Just to get idea.
At the router which is gateway of that machine, look up the mac address of machine( In cisco router "sh arp" or newer ios version support "|" output modifier so you can use "sh arp | include x.x.x.x"
In the switch(first link to router),&quot; sh mac-address-table | inc <mac address>&quot;
if it show Fastethernet port, make sure that port is not trank port by doublechecking &quot;sh mac-address-table | inc <fastethernet x/x>. You should only see one address from access port. If it is Gbit port or FA trunk port, follow the next switch. Of course, you have to know which switch link to which.
I think 19xx switch has different command set.
I never use 1900 series so I can't really say which command.
 
KSM,

Thanks for the information. I think you are right the 1900 is older switch and the command is not the same as 35XX series. I tried snmp and still could not find a way to find a specify IP in the network. Any body has any idea?

Kcbell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top