04-01-2006 12:57 AM - edited 03-03-2019 02:35 AM
hello,
I need to know which IP/device is connecetd to a cisco Switch port.
I can get the mac-address of that switch port using sh mac-add command, but with the mac address how can i find that which ip belongs to this mac.
is there way i can do this, i know i can do the other way meaning with IP i can find to which port its connected ,but dont know how to find this MAC to IP with switch without the need for additional tools
12-01-2015 10:19 AM
Hello
i use the folowing two TCL file
the arp example answers your query. the other is also very usefull
reanme to .TCL and tftp to the flash drive on the router or switch
create an alias, see the file comment for an example
NOTE, i did not create them. If you share them , please keep the orginal creator details in the file
if you like these , please vote and rate my comments
router#arp
IP address MAC address Physical intf Logical intf
========== ============== ==================== ===========
10.0.27.2 c464.13dc.faa0 GigabitEthernet0/3/0
10.0.27.7 001d.e622.0a38 GigabitEthernet0/3/0
10.0.112.1 f0f7.550f.0c60 GigabitEthernet0/0
10.0.112.2 c464.13dc.fa80 GigabitEthernet0/0
10.0.123.2 c464.13dc.fa81 GigabitEthernet0/1
10.0.123.3 f0f7.5523.b5f1 GigabitEthernet0/1
10.1.20.1 c464.13dc.fa83 Vlan120
router#ipconfig
Interface IP Address MTU State
==============================================================
Embedded-Service-Engine0/0 no address admin down
GigabitEthernet0/0 10.0.112.2/24 1500 up
GigabitEthernet0/1 10.0.123.2/24 1500 up
GigabitEthernet0/2 10.0.24.2/24 1500 admin down
GigabitEthernet0/3/0 10.0.27.2/24 1500 up
GigabitEthernet0/1/0 no address down
12-01-2015 10:26 AM
http://packetpros.com/find-a-device-in-the-network/
06-26-2014 07:06 AM
have you tried to configured the dhcp snooping?
that would work and you can find the ip with the mac-add
look on cisco how to configure the dhcp snooping
sh ip dhcp snooping binding interface
12-31-2015 12:59 AM
Hello all.
Just resolved such an issue.
Go to L3 device where Interface Vlan is configured and do "debug arp".
All correctly configured devices usualy send ARP requests to discover IP-gateway. So this ARP-request should be seen in debug like this:
11:38:45: IP ARP req filtered src 10.154.39.12 f081.af80.31e8, dst 10.154.39.9 0000.0000.0000 wrong cable, interface Vlan2
"10.154.39.12" is what I was looking for.
01-04-2016 06:58 AM
Hi everyone,
I just found a different way to get the information.
This assumes that you have IP tracking on and a switch that supports it. The 3850 does!
Enter: show ip device tracking interface g1/0/4
Result:
--------------------------------------------
Interface GigabitEthernet1/0/4 is: STAND ALONE
IP Device Tracking = Enabled
IP Device Tracking Probe Count = 3
IP Device Tracking Probe Interval = 30
IPv6 Device Tracking Client Registered Handle: 5
IP Device Tracking Enabled Features:
HOST_TRACK_CLIENT_SM
--------------------------------------------
10.2xx.2xx.xxx 20bb.c092.xxxx 524 GigabitEthernet1/0/4 30 ACTIVE ARP
02-13-2020 07:02 AM
sh ip device tracking all
09-05-2020 08:06 AM
Try this command
Sh ip dhcp sn b | inc xx/x/xx(your intrefast)
01-26-2023 12:48 AM
Hello,
to answer your question look the command below;
'sh ip dhcp snooping binding' ....this will show the ip bind to the certain port
'sh ip device tracking all' ... this also can get you the IP and mac address bind to the port number.
try this 2 should answer the question
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