03-31-2006 08:09 AM - edited 03-03-2019 02:35 AM
Does anyone know of a command or utility to extract the IP address of an end device on a particular port?
03-31-2006 08:16 AM
Hi Michael,
There's no command or utility to get this info. However, here is the general procedure.
1) Do a "show arp" on the router that is the default gateway for a given vlan.
2) Do a show "mac-address-table dynamic vlan x" on the switch you want to find said information on.
Cross reference the mac addresses and port numbers from the switch output with the mac address and IP associations from the show arp output.
IIRC there are some scripts on sourceforge or freshmeat that can help automate this.
HTH,
Bobby
*Please rate helpful posts
03-31-2006 08:20 AM
Hi Michael,
Its not a very easy task. If you know the port number on a switch on which end device is connected you can issue a command
"sh mac-address-table interface
and get the mac addres learned on that port and if at all you have a layer 3 device connected to the switch you can issue a command
"sh ip arp
and you will get an ip address binded with that mac address.
HTH, if yes please rate the post.
Ankur
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