Re: Is there a way to get a MAC address from an IP address

2003-01-03 Thread Fernando Gleiser
On Thu, 2 Jan 2003, Dan Malaby wrote:

 Is there a way if given an IP address to get the MAC address. The problem I
 am having is that there are two nic's that are using the same IP address on
 my network, but the error message my FBSD box gives me is only the MAC
 address for the offending card. I belive that the offending card does have
 another ligit IP address. I do have a map of all IP that respond on my
 network, but do not have a way of knowing which IP goes with which MAC address.

arp -an | grep MAC

replace MAC with the MAC addr you have.




Fer


 Any help would be appreciated.


 Daniel Malaby   voice:(510) 531-6500
 Peritek Corp.   fax:   (510) 530-8563
 5550 Redwood Road   email: [EMAIL PROTECTED]
 Oakland, CA 94619


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Is there a way to get a MAC address from an IP address

2003-01-02 Thread randall ehren
 Is there a way if given an IP address to get the MAC address. The problem I
 am having is that there are two nic's that are using the same IP address on
 my network, but the error message my FBSD box gives me is only the MAC
 address for the offending card. I belive that the offending card does have
 another ligit IP address. I do have a map of all IP that respond on my
 network, but do not have a way of knowing which IP goes with which MAC address.

display all entries in current arp cache:

% arp -a

get the MAC for a specific IP:

% arp IP

from % man arp:

DESCRIPTION
 The arp program displays and modifies the Internet-to-Ethernet address
 translation tables used by the address resolution protocol (arp(4)).
 With no flags, the program displays the current ARP entry for hostname.
 The host may be specified by name or by number, using Internet dot nota-
 tion.

--
:// randall s. ehren :// voice 805.893.5632
:// systems administrator:// isber|survey|avss.ucsb.edu
:// institute for social, behavioral, and economic research


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message