From owner-freebsd-questions Sat Jun 16 10:40:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kineo.bowdoin.edu (kineo.bowdoin.edu [139.140.14.35]) by hub.freebsd.org (Postfix) with ESMTP id 154FF37B403 for ; Sat, 16 Jun 2001 10:40:52 -0700 (PDT) (envelope-from mcowger@bowdoin.edu) Received: from mcfly ([139.140.133.82]) by kineo.bowdoin.edu (Netscape Messaging Server 4.15) with SMTP id GF1AG300.O3Z; Sat, 16 Jun 2001 13:40:51 -0400 From: "Matthew K. Cowger" To: "Joe Clarke" Cc: Subject: RE: Usage of arp -s Date: Sat, 16 Jun 2001 13:42:14 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20010616132320.W4205-100000@shumai.marcuscom.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 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 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