I have Cisco catalyst switch, with many VLANs and address ranges.
How do I find IP addresses connected to the switch that are not Cisco devices?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityI have Cisco catalyst switch, with many VLANs and address ranges.
How do I find IP addresses connected to the switch that are not Cisco devices?
Perform a show mac address-table interface <switchport>
on the switch that has the device(s) connected to it.
switch#show mac address-table int gi1/0/34
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
132 001b.78d5.a2d7 DYNAMIC Gi1/0/34
Then go to the router for the VLAN specified in the previous command and perform a show ip arp vlan <vlan#> | include <mac-address>
.
router#show ip arp vlan 132 | include 001b.78d5.a2d7
Internet 192.168.132.234 62 001b.78d5.a2d7 ARPA Vlan132
That will give you the IP address for the device.
If you do not have any Layer 3 interface on the actual VLAN, you won't really be able to see any IPs going on.
One way would be to do port miroring and sniff the packet to see what IP's going through, but it might not give you a complete picture either
Though this is not exactly a solution, you can try
show ip arp inspection log
which will output the contents of the log buffer before the buffer was flashed. If the end device triggered some sort of log event, for instance a DHCP reject, it will be identifiable by looking the log data since the output will display interface, MAC address, and IP address on the same output line.
Once again, this is not a real solution, so be mindful that it may as well not work at all.
edit: sample output from Cisco Catalyst command index pages:
`
Switch# show ip arp inspection log
Total Log Buffer Size : 32
Syslog rate : 10 entries per 300 seconds.
Interface Vlan Sender MAC Sender IP Num Pkts Reason Time
---------- ---- -------------- --------------- --------- ----------- ----
Gi1/0/1 5 0003.0000.d673 192.2.10.4 5 DHCP Deny 19:39:01 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.0000.d774 128.1.9.25 6 DHCP Deny 19:39:02 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.c940.1111 10.10.10.1 7 DHCP Deny 19:39:03 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.c940.1112 10.10.10.2 8 DHCP Deny 19:39:04 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.c940.1114 173.1.1.1 10 DHCP Deny 19:39:06 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.c940.1115 173.1.1.2 11 DHCP Deny 19:39:07 UTC Mon Mar 1 1993
Gi1/0/1 5 0001.c940.1116 173.1.1.3 12 DHCP Deny 19:39:08 UTC Mon Mar 1 1993
SHOW IP DHCP SNOOPING BINDING
. If DHCP Snooping is enabled (and it should be ;) it'll give you a list of clients that requested address from DHCP server. Caveat Emptor: this doesn't cover clients with static IP.
If port security is on you can do what David suggested and do show ip device tracking
but instead of all
, do mac xxxx.xxxx.xxxx
to get the ip of just that device
Show Lldp neighbors if you have lldp enable on both devices you should be able to enable that but usually a show cdp neoghbors shows more than only cisco devices
The IP Device tracking feature will enable your switch to snoop arp packets, once enabled the command:
show ip device tracking all
will contain a list of all learned devices and the associated IP addresses