cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
868
Views
13
Helpful
9
Replies

How to see mac-ip correspondence

mirtenmous
Level 1
Level 1

I need to know what IP address have a pc knowing it MAC address.

I know in what switch it is in my net but I type sh arp but it doesn't appear this MAC and its associated IP address.

Can anybody say me how I can see it?.

It is a Cisco Catalyst 3750 with 12.2(25) IOS version.

Thanks.

9 Replies 9

show arp as well as show ip arp should give you this information. I have same version as your switch and it gives me "protocol, ip address, age(min), hardware address, type (L2 address protocol), and VLAN interface".

to get the IP addresses your switch should be running L3 routing as L2 switches like 2950's cannot give you this info....

show mac-address dynamic should give you VLAN, Mac-Address, Type and Port

HTH

Shaheen

With sh ip arp and sh arp output is the same so mac address that I am looking for doesn't appear yet.

Please check the following items...

is your C3750 running Vlans ?

is you PC connected to this 3750's switch port ?

is that pc connected above have an IP address from one of the VLAN you have SVI on this Switch ?

Regards

Shaheen

This pc is connected to this switch and I have three or four vlan I don't remember well.

I don't what is SVI

Kevin Dorrell
Level 10
Level 10

The answer is that you cannot do it on a switch that is operating at layer-2, unless the management of that switch is in the same VLAN as the PC you are interested in.

The best way to find out is to go to the router or layer-3 switch that is routing this VLAN. You should find the PC in the ARP cache there (provided the PC has sent any packets to outside its VLAN in the past 4 hours). OTOH, if the PC is not talking to anything outside its own VLAN, then you are out of luck.

Here is another trick: from the router, (or from the switch if it has management in the PC's VLAN) ping the subnet directed-broadcast address, e.g. 192.168.42.255. If the PC responds, then it will have been caught in the ARP cache of the route.

Kevin Dorrell

Luxembourg

This pc is not in the same VLAN that management VLAN so I must to investigate what router in my net is routing this VLAN because I don't know it now.

Thanks.

If you have access to that PC then do IPconfig/all and that shoud tell you the default gateway which will be the router/SVI interface??

HTH

Shaheen

hobbe
Level 7
Level 7

Well the real answer is basically you cant.

Not with 100% certainty

The reasons for this are as follows.

1) a mac-address doesnt need to have an ip

2) a mac-address can have several ip's.

In general what you can do to find out what it is is to follow the cabeling.

Find out wich port the mac address is attached to.

sh mac address | include the_mac_address

or if you have cdp on

traceroute mac macaddress_1 macaddress_2

and last but not least there are some nasty bugs in 12.2(25) it might be wise to upgrade

Good luck

I have the port that it is connected this pc.

I think I must will go to rack and see it.

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco