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.
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
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 ?
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.
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.
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??
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