It is quite common situation when you need to know ip address of some network device
(for example, you have forgotten ip address of IPMA interface of a running server or active switch ...).
Actually you can even don't know mac address(know nothing about connected device except that it is up and running).
You can do it with arping utility, which you can find in most unix/linux distributions.
So lets examine 2 cases:
1. You want to know ip and mac address of directly attached device(you don't have access to it's console...),then:
#arping -i interface_name ff:ff:ff:ff:ff:ff
You will see something like this.
60 bytes from 10.10.101.14 (00:22:ba:c7:c8:c0): icmp_seq=0 time=26.941 usec
2. You know mac address and want to know ip:
#arping -i interface_name "target mac address"
There are two different arping utilities. One is a part of iproute2 utils and is "Linux only". The second one is from
Thomas Habets <thomas@habets.pp.se>
It can be downloaded from ftp://ftp.habets.pp.se/pub/synscan/.
I have used the second one.
PS:These method don't give 100% guaranty, because some devices block ICMP broadcasts.
(for example, you have forgotten ip address of IPMA interface of a running server or active switch ...).
Actually you can even don't know mac address(know nothing about connected device except that it is up and running).
You can do it with arping utility, which you can find in most unix/linux distributions.
So lets examine 2 cases:
1. You want to know ip and mac address of directly attached device(you don't have access to it's console...),then:
#arping -i interface_name ff:ff:ff:ff:ff:ff
You will see something like this.
60 bytes from 10.10.101.14 (00:22:ba:c7:c8:c0): icmp_seq=0 time=26.941 usec
2. You know mac address and want to know ip:
#arping -i interface_name "target mac address"
There are two different arping utilities. One is a part of iproute2 utils and is "Linux only". The second one is from
Thomas Habets <thomas@habets.pp.se>
It can be downloaded from ftp://ftp.habets.pp.se/pub/synscan/.
I have used the second one.
PS:These method don't give 100% guaranty, because some devices block ICMP broadcasts.
Comments