From owner-freebsd-stable Thu Dec 13 6:17:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 9017B37B41A; Thu, 13 Dec 2001 06:17:15 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBDEGpw27653; Thu, 13 Dec 2001 16:16:51 +0200 (EET) (envelope-from ru) Date: Thu, 13 Dec 2001 16:16:51 +0200 From: Ruslan Ermilov To: qingli@speakeasy.net Cc: net@FreeBSD.org Subject: Re: route add - ?? Message-ID: <20011213161651.E19995@sunbay.com> References: <200112122351.fBCNpFq30812@spidey.speakeasy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200112122351.fBCNpFq30812@spidey.speakeasy.net> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Redirected to -net] On Wed, Dec 12, 2001 at 03:51:15PM -0800, qingli@speakeasy.net wrote: > > netstat -r > ============ > Destination Gateway Flags Refs Use Netif Expire > default gateway-38 UGSc 59 0 ep0 > localhost localhost UH 1 713 lo0 > 147.11.38/24 link#6 UC 1 0 ep0 > gateway-38 0:0:c:7:ac:26 UHLW 58 0 ep0 575 > > Now I do > ======== > route add -net 192.103.54.0 64.81.55.1 > > an entry of > ============ > 192.103.54 dsl081-055-001.sfo UGSc 0 2 ep0 > > is inserted. > > Why was I allowed to add such a route. The gateway > 64.81.55.1 is not even reachable. > It is actually reachable through the default route. You can verify this by: ``route get 64.81.55.1''. The other question is why FreeBSD allows the use of indirect gateways. Well, I've offered in the past to disable this feature, but some other -net geeks like this "policy routing" feature of BSD. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message