On Sat, 2005-08-27 at 23:35 -0600, Joseph wrote: > On Sat, 2005-08-27 at 10:23 +0100, Neil Bothwick wrote: > > On Fri, 26 Aug 2005 17:20:12 -0600, Joseph wrote: > > > > > Is there a way to check what IP the device has on the network? > > > I know the device MAC address and when I plug it IN, it obtains one of > > > the IP via DHCP. With > > > arp -a IP > > > arp -e > > > I can only check the MAC address. Is there a way to other way around. > > > > Try arp -a > > Very closed. but better yet is: > Knowing MAC address but looking for IP > tcpdump -e -i eth0 |grep -i "00:09:45:52:04:da" > Since I know the MAC address, the above command will capture the IP > address of the device when plugged into the server. > > Knowing IP address but looking for MAC > ping IP > arp -e
of course arp will only work if the device has actually done anything on the network within arp's cache period. I just tried arp -a and found my wireless AP did not appear in the list, probably because I haven't used wireless for a few days. I pinged the (known) address and then tried again and it showed up. > > -- > #Joseph -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list