From owner-freebsd-net@FreeBSD.ORG Sun Nov 28 01:07:37 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F95F106566C for ; Sun, 28 Nov 2010 01:07:37 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 8CE138FC0A for ; Sun, 28 Nov 2010 01:07:36 +0000 (UTC) Received: (qmail 23238 invoked by uid 0); 28 Nov 2010 01:07:34 -0000 Received: from 79.107.35.215 by rms-eu011.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Sun, 28 Nov 2010 01:54:57 +0100 From: "Nikos Vassiliadis" Message-ID: <20101128010732.229640@gmx.com> MIME-Version: 1.0 To: "Tobias P. Santos" ,freebsd-net@freebsd.org X-Authenticated: #46156728 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: ZpLCdIFtMmA6V9Mnq2NnzTY5MjQ1Nx0Q Cc: Subject: Re: Remove route 0.0.0.0&0x1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2010 01:07:37 -0000 > ----- Original Message ----- > From: Tobias P. Santos > Sent: 11/26/10 03:07 PM > To: freebsd-net@freebsd.org > Subject: Remove route 0.0.0.0&0x1 > > Hello, > > I was adding a static route and "accidentally" put an extra number 1 > after the command, like this: > > route add -net 192.168.0.100 192.168.0.200 255.255.255.255 1 > > netstat -rn prints: > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > 0.0.0.0&0x1 192.168.0.200 UGS 0 0 bge0 > > I tried to remove this route without success, either with: > route delete -net 192.168.0.100 192.168.0.200 255.255.255.255 1 > or > route delete -net 192.168.0.100 192.168.0.200 255.255.255.255 > > I had to run route flush to get rid of it. Try: route delete 0.0.0.0 -netmask 0.0.0.1 > Anyone has any clues? And also, how come a route like this being > interpreted as the default route? A 0.0.0.0/0.0.0.1 route matches every IP with bit 0 clear and is half the size of a 0.0.0.0/0.0.0.0 route - which is pretty big. Something like: 0.0.0.0 0.0.0.2 0.0.0.4 ... 255.255.255.252 255.255.255.254 HTH, Nikos