11-27-2015 04:54 AM
Dear All
Is there anyway to get IP address against the MAC address learnt by switch? Any protocol or any other stuff to be installed on switch to serve this purpose?
Regards
Jahanzeb
11-27-2015 06:01 AM
Hey to resolve a mac to an ip its arp so the devbice needs to be layer 3, layer 2 devices dont arp so you go to the device which is doing your routing on the network , that device will contain an arp table that maps to the ips, a ;layer 2 device cannot resolve an arp to mac
example to get ip from mac (has to be layer 3 capable device and routing enabled)
CORE#sh mac address-table address 001e.149c.92c1
Legend: * - primary entry
age - seconds since last seen
n/a - not available
S - secure entry
R - router's gateway mac address entry
D - Duplicate mac address entry
Displaying entries from standby supervisor:
vlan mac address type learn age ports
----+----+---------------+-------+-----+----------+-----------------------------
* 151 001e.149c.92c1 dynamic Yes 0 Po127
Displaying entries from active supervisor:
vlan mac address type learn age ports
----+----+---------------+-------+-----+----------+-----------------------------
* 151 001e.149c.92c1 dynamic Yes 0 Po127
CORE#sh ip arp 001e.149c.92c1
Protocol Address Age (min) Hardware Addr Type Interface
Internet 149.199.151.249 91 001e.149c.92c1 ARPA Vlan151
11-29-2015 09:03 PM
Hi Mark,
Where is the IP address in your given example? Cant get it
Will you please expalin in detail to me ? Will be thanful.
11-30-2015 12:18 AM
sorry im not sure i get you the ip is in the show ip arp output when you check the mac adfdress againt it , go to your layer 3 device and run that command with your mac address in its place an it will provide the ip address mapped against it
so below mac 001e.149c.92c1 is equal to ip address 149.199.151.249
CORE#sh ip arp 001e.149c.92c1
Protocol Address Age (min) Hardware Addr Type Interface
Internet 149.199.151.249 91 001e.149c.92c1 ARPA Vlan151
11-27-2015 07:02 AM
Mark explain it perfect.
You can also use 3rd party mac address discovery tools like Solarwinds to find the ip address.
11-29-2015 11:41 PM
Follow what Mark told and can get Mac to Ip details from Switch itself.
I am using angry Ip scanner for finding MAC to IP details within LAN.
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