Date: Sat, 16 Jun 2001 13:42:14 -0400 From: "Matthew K. Cowger" <mcowger@bowdoin.edu> To: "Joe Clarke" <marcus@marcuscom.com> Cc: <questions@FreeBSD.ORG> Subject: RE: Usage of arp -s Message-ID: <DBEDLOOHIDFHOMJIFMGMCENBCBAA.mcowger@bowdoin.edu> In-Reply-To: <20010616132320.W4205-100000@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Joe, et al, yeah, i thought of that, and actually tried it, but there are 2 problems with that. We don't spearate machines by subnet here (only by VLAN), so my subnet is an entire /16. Additionally, this remote machine is a windows box, and doesn't follow the RFC, and doesn't respond to broadcast pings. SO that wont work. If what Mr. Gleiser said is correct, I am out of luck. THough I am going to send a pr to the docs peope about the confusion regarding that flag, because it says to use hostname, not IP address. Thanx for the help, Matt -----Original Message----- From: Joe Clarke [mailto:marcus@marcuscom.com] Sent: Saturday, June 16, 2001 1:26 PM To: Matthew K. Cowger Cc: questions@FreeBSD.ORG Subject: Re: Usage of arp -s I assume the host is in your subnet else you wouldn't be trying to setup a static ARP for it. You can always do a broadcast ping of the subnet to populate your ARP table. You should see the hosts MAC in the tab;e next to its IP address. For example, if your subnet is 192.168.1.0/24, then do: ping 192.168.1.255 Let it run for a bit, then do an arp -a. See what pops up. Joe Clarke 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBEDLOOHIDFHOMJIFMGMCENBCBAA.mcowger>