Date: Sat, 16 Jun 2001 14:03:07 -0300 (ART) From: Fernando Gleiser <fgleiser@cactus.fi.uba.ar> To: "Matthew K. Cowger" <mcowger@bowdoin.edu> Cc: <questions@FreeBSD.ORG> Subject: RE: Usage of arp -s Message-ID: <20010616135218.C12367-100000@cactus.fi.uba.ar> In-Reply-To: <DBEDLOOHIDFHOMJIFMGMOEMOCBAA.mcowger@bowdoin.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010616135218.C12367-100000>