cancel
Showing results for 
Search instead for 
Did you mean: 

Finding IP addresses on a switch

Finding IP addresses on a switch

Ryan_Johnson
New Contributor
Hello,

Does anyone know of way to find the IP addresses and the port that IP address is connected on a switch? Using either CLI or EMC? I know the MACs but don't really want to sit there and try to find what MAC goes with what IP, if not I think I would just use compass. Any ideas? And thank you guys for the help!!
6 REPLIES 6

Erik_Auerswald
Contributor II
Hi Ryan,

EMC compass is a good choice if available, because it queries all switches and thus allows to easily correlate the info. EAC (formerly NAC) is a better solution for this.

A pure layer 2 switch may just know the MAC address, but not the IP address of a connected end system. The MAC address may even have timed out. Thus it is not always possible to provide the information you seek.

EOS switches (and EXOS 22.2) provide the so called "Node Alias Table," which saves information about packets seen on switch ports. This can show you which ports an IP address was seen on.

DHCP snooping builds a database of IP to MAC bindings and can be used to connect an IP address to a port on a layer 2 switch.

A layer 3 switch will build an ARP cache. Entries in this cache can time out, just like MAC addresses in the FDB. EXOS will build an ARP cache if it has an IP interface in the VLAN, even if forwarding is not enabled. If the end system is directly connected to the layer 3 switch, the "show arp" output on EXOS and EOS shows the port as well as the ARP information.

In general, you would ping the device (to refresh ARP and MAC tables), query the layer 3 switch for the MAC address, then follow the FDB entries for the MAC address just found out to the access switch the end system is connected to. That works for every vendor, but requires that the end system is currently connected correctly and responding to pings.

Thanks,
Erik

Ronald_Dvorak
Honored Contributor
In case it's an XOS here a example....

e46ff01f88dd4377a74a412173304493_RackMultipart20170802-90835-el35vb-XOS_show_iparp_inline.png



Thanks, this helped out to me 🙂 

Ryan_Johnson
New Contributor
The switch has an ip on a vlan and I want the ip addresses to that switch from that vlan
GTM-P2G8KFN