From owner-freebsd-net Wed May 30 15: 9:49 2001 Delivered-To: freebsd-net@freebsd.org Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by hub.freebsd.org (Postfix) with ESMTP id 00FD537B424 for ; Wed, 30 May 2001 15:09:46 -0700 (PDT) (envelope-from hroi@asdf.dk) Received: from usr00.cybercity.dk (usr00.cybercity.dk [212.242.40.34]) by cicero1.cybercity.dk (Postfix) with ESMTP id 04C8B15FCBA; Thu, 31 May 2001 00:09:40 +0200 (CEST) Received: from asdf.dk (port18.ds1-noe.adsl.cybercity.dk [212.242.52.19]) by usr00.cybercity.dk (8.11.2/8.11.0) with ESMTP id f4UM9Xb31984; Thu, 31 May 2001 00:09:34 +0200 (CEST) (envelope-from hroi@asdf.dk) Message-ID: <3B157021.8DF52B75@asdf.dk> Date: Thu, 31 May 2001 00:11:45 +0200 From: Hroi Sigurdsson Organization: Expert Knob Twiddlers X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Iasen Kostoff Cc: freebsd-net@freebsd.org Subject: Re: routing socket and routes assignment References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Iasen Kostoff wrote: > 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. That is just broken IMHO. You will also need to disable any e/ingress-filtering that may be on the gateway. The right thing to do would be to assign an address on that net to your interface which will allow you to point your default gateway at an address on that net. -- Hroi Sigurdsson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message