From owner-freebsd-net Fri Mar 14 10:11:45 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84F6937B401 for ; Fri, 14 Mar 2003 10:11:44 -0800 (PST) Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7F8B43FA3 for ; Fri, 14 Mar 2003 10:11:42 -0800 (PST) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id 019071A; Fri, 14 Mar 2003 19:11:40 +0100 (CET) Date: Fri, 14 Mar 2003 19:11:40 +0100 From: Guido van Rooij To: "J. W. Ballantine" Cc: freebsd-net@FreeBSD.ORG Subject: Re: route pointing to a gateway that's not on net Message-ID: <20030314181140.GA3323@gvr.gvr.org> References: <20030314102431.GA97899@gvr.gvr.org> <200303141451.h2EEpkQ19585@akiva.homer.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303141451.h2EEpkQ19585@akiva.homer.att.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Mar 14, 2003 at 09:51:46AM -0500, J. W. Ballantine wrote: > So what you are saying is that with the: > route add -net default -iface -interface xl0 > command the system thinks there is a direct connect. Doesn't this > then send all packets out, since there is no address supplied with > the route command, or is this a function the the 10.*.*.* addresses > are private network addresses. In order to send packets out directly they need to be directly connected, i.e. respond to arp requests whihc is only done on the same LAN. I hope you understand that this will not work with a default route. > > If it sends all packets out, I would expect the 10.17.47.37 to receive it > and forward it, since it is the gateway/modem. And how do you think the packets arive at 10.17.47.37? Suppose you want to send a packet to 1.2.3.4 with the above mentioned route. Then the system will arp for 1.2.3.4. Clearly noone will answer so this will fail. > > Having taken a quick look at the arp man page, it seems that one needs to > arp each address/host rather than globally. > > Again, what I'm trying to do is get the system to pass all packets to > the gateway/modem for forwarding over the net. Why dont you actually try what I advised you to do? Sorry to be blunt, but with the comments you make it is very clear that you have no clue on how IP traffic interacts with link level traffic. So either read a book or just try what people tell you. -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message