From owner-freebsd-questions Sat Jun 16 10: 3: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 323F537B401 for ; Sat, 16 Jun 2001 10:02:58 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f5GH37713494; Sat, 16 Jun 2001 14:03:07 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sat, 16 Jun 2001 14:03:07 -0300 (ART) From: Fernando Gleiser To: "Matthew K. Cowger" Cc: Subject: RE: Usage of arp -s In-Reply-To: Message-ID: <20010616135218.C12367-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 16 Jun 2001, Matthew K. Cowger wrote: > Thats the issue. I do not HAVE the ip address of the host. Only the MAC > address. Let me see: 1) you know the mac address of the remote host 2) you don't know th IP adress. If that is the case, you are out of luck. arp -s does not solve the case. ARP maps IP addresses to MAC addresses. if you say, for example: arp -s 192.168.1.20 91:02:64:de:58:8f you are saying : "the MAC if the host 192.168.1.20 is 91:02:64:de:58:8f" then if you ping 192.168.1.20, your host sends a datagram to the box whose MAC is 91:02:64:de:58:8f . But if 192.168.1.20 is not the IP of the destination box it will drop the packet in a silent way. That's why you can't ping the host. Fer > > I tried: > arp -s XXX.XXX.XXX.XXX 91:02:64:de:58:8f > and the command completeed successfully but I cannot ping the host, and I > know that it is up and DOES respnd to pings.... > > .matt > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Fernando > Gleiser > Sent: Saturday, June 16, 2001 12:39 PM > To: Matthew K. Cowger > Cc: questions@FreeBSD.ORG > Subject: Re: Usage of arp -s > > > > Try using the IP address instead of the host name. > > > Fer > > > On Sat, 16 Jun 2001, Matthew K. Cowger wrote: > > > Hi > > > > I am try to use ARP (specifically the -s flag) to map a MAC address t oa > > host name. > > After reading the man page, i tried: > > > > blondie# uname -a > > FreeBSD blondie.bowdoin.edu 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Wed May 2 > > 22:11:53 EDT 2001 > > mcowger@diablo.bowdoin.edu:/usr/obj/usr/src/sys/BLONDIE i386 > > blondie# arp -s mytest 91:02:64:de:58:8f > > arp: mytest: Unknown host > > blondie# > > > > So....what am I doing wrong? (Note that I dont want to do this via DNS or > > /etc/hosts for other reasons) > > > > Thanx > > > > > > Matt > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message