From owner-freebsd-net Wed May 30 1:23:23 2001 Delivered-To: freebsd-net@freebsd.org Received: from shadow.otel.net (JuDiCaToR.OTEL.net [212.36.9.113]) by hub.freebsd.org (Postfix) with ESMTP id 307CA37B42C for ; Wed, 30 May 2001 01:23:19 -0700 (PDT) (envelope-from tbyte@tbyte.org) Received: from localhost (localhost [127.0.0.1]) by shadow.otel.net (8.11.3/8.11.1) with ESMTP id f4U8N7033035; Wed, 30 May 2001 11:23:09 +0300 (EEST) (envelope-from tbyte@tbyte.org) Date: Wed, 30 May 2001 11:23:07 +0300 (EEST) From: Iasen Kostoff X-Sender: tbyte@shadow.otel.net To: Jesper Skriver Cc: freebsd-net@freebsd.org Subject: Re: routing socket and routes assignment In-Reply-To: <20010529220438.B49875@skriver.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Tue, 29 May 2001, Jesper Skriver wrote: > On Mon, May 28, 2001 at 02:28:51PM +0300, Iasen Kostoff wrote: > > Hi, > > I have a problem in assigning a default gateway from network that > > my computer's interfaces don't have IP from. > > All routes should have a next-hop on a directly connected > interface. > > /Jesper > > -- > Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 > Work: Network manager @ AS3292 (Tele Danmark DataNetworks) > Private: FreeBSD committer @ AS2109 (A much smaller network ;-) > > One Unix to rule them all, One Resolver to find them, > One IP to bring them all and in the zone to bind them. > The gateway is directly connected and I think this is obvious and should not even be discused. The IP address of the gateway is not from network that the computer is. But there is a route throu interface to it and the kernel still refuses to use that gateway with error ENETUNREACH. And I wrote a patch which allows kernel to set that route. It's kinda unfinished still but it works. Even now (without the patch) you can set this route but it's not straight forward and I don't think that's the right way to be done. Regards. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message