Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 09:46:15 -0800 (PST)
From:      randall ehren <randall@ucsb.edu>
To:        Dan Malaby <dan@peritek.com>
Cc:        <questions@freebsd.org>
Subject:   Re: Is there a way to get a MAC address from an IP address
Message-ID:  <Pine.BSF.4.33.0301020944440.28883-100000@isber.ucsb.edu>
In-Reply-To: <5.1.0.14.2.20030102093547.00a6a0b0@pop3.peritek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0301020944440.28883-100000>