cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3172
Views
0
Helpful
5
Replies

Mac to IP recognition in Cisco Switch

jahanzeb.feroze
Level 1
Level 1

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

5 Replies 5

Mark Malone
VIP Alumni
VIP Alumni

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

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.

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

Metin Ozturk
Level 5
Level 5

Mark explain it perfect. 

You can also use 3rd party mac address discovery tools like Solarwinds to find the ip address.  

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Switch products supported in this community
Cisco Business Product Family
  • CBS110
  • CBS220
  • CBS250
  • CBS350
Cisco Switching Product Family
  • 110
  • 200
  • 220
  • 250
  • 300
  • 350
  • 350X
  • 550X