07-07-2009 12:32 PM - edited 03-06-2019 06:37 AM
What is the IOS command to find the IP address of a switchport? I have a device connected to a switchport on a known vlan but cannot find the command to show the IP of the device connected to the port. Please help!
07-07-2009 12:41 PM
Hello Kimble,
you need to use two commands
sh mac-address-table interface typex/y
where typex/y is the switchport
then on the L3 device that acts as the default gateway for that vlan/IP subnet
sh ip arp | include
where the MAC is the one listed in first show output
Hope to help
Giuseppe
07-07-2009 12:44 PM
Ok, I tried that and get the following:
flapk001-r02#sh mac-address-table interface fastEthernet 8/6
Legend: * - primary entry
age - seconds since last seen
n/a - not available
vlan mac address type learn age ports
------+----------------+--------+-----+----------+--------------------------
No entries present.
07-07-2009 01:02 PM
Hello Kimble,
the CAM entry lasts for 300 seconds this means the device hasn't spoken in the last 300 seconds.
you should do some action for making the device to talk again.
one possible option is to ping the directed broadcast from the default gateway of the vlan.
Clearly you don't control it so the last option (if the ping to directed broadcast doesn't work) is to shut and then unshut the port or better before doing this trying to contact the server administrator
Hope to help
Giuseppe
07-07-2009 01:32 PM
Disregard, I had the wrong information.
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