Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 19:11:40 +0100
From:      Guido van Rooij <guido@gvr.org>
To:        "J. W. Ballantine" <jwb@homer.att.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: route pointing to a gateway that's not on net
Message-ID:  <20030314181140.GA3323@gvr.gvr.org>
In-Reply-To: <200303141451.h2EEpkQ19585@akiva.homer.att.com>
References:  <20030314102431.GA97899@gvr.gvr.org> <200303141451.h2EEpkQ19585@akiva.homer.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030314181140.GA3323>