From owner-freebsd-questions Thu Jan 2 9:46:24 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAE2D37B401 for ; Thu, 2 Jan 2003 09:46:22 -0800 (PST) Received: from isber.ucsb.edu (research.isber.ucsb.edu [128.111.147.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1550F43EC5 for ; Thu, 2 Jan 2003 09:46:22 -0800 (PST) (envelope-from randall@isber.ucsb.edu) Received: from localhost ([127.0.0.1] helo=research.isber.ucsb.edu) by isber.ucsb.edu with esmtp (Exim 3.36 #2) id 18U9Q7-0007XW-00; Thu, 02 Jan 2003 09:46:16 -0800 Date: Thu, 2 Jan 2003 09:46:15 -0800 (PST) From: randall ehren To: Dan Malaby Cc: Subject: Re: Is there a way to get a MAC address from an IP address In-Reply-To: <5.1.0.14.2.20030102093547.00a6a0b0@pop3.peritek.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanner: exiscan *18U9Q7-0007XW-00*/7Vk5iyfxtc* (ISBER - Institute for Social, Behavioral, and Economic Research) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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