From owner-freebsd-questions Sun Apr 19 22:03:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA24086 for freebsd-questions-outgoing; Sun, 19 Apr 1998 22:03:42 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA23993 for ; Mon, 20 Apr 1998 05:03:29 GMT (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id WAA08769; Sun, 19 Apr 1998 22:03:22 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Sun, 19 Apr 1998 22:03:22 -0700 (PDT) From: Doug White Reply-To: Doug White To: Robert Turnwald cc: freebsd-questions@FreeBSD.ORG Subject: Re: arp -s only for one ed-interface In-Reply-To: <19980420002715.39343@orange.ma.choin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 20 Apr 1998, Robert Turnwald wrote: > Hi FreeBSD-people, > > on a Linux-system there is a -i option for the "arp"-command. With > this option I can specify an interface, e. g. > # arp -i eth0 pub > > How can I do this with FreeBSD? You shouldn't need to; the IP address will indicate the interface. Although this is ARP, it shouldn't matter what interface it's attached to. You shouldn't have to use arp, what do you need it for? > my problem: > I have to route a few IPs to an internal network. The router has to know > which packets he has to route, so I use the "arp" command. > 1. route add -host -interface ed1 > 2. # arp -s pub This is extraneous, the routing system will find it automatically. Especially the ether addr of the local interface! And why would you want to advertise one NIC's ether addr on a separate net? That would be seriously confusing to everyone. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message