From owner-freebsd-net@FreeBSD.ORG Mon Nov 29 17:52:04 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 0CD1E1065670 for ; Mon, 29 Nov 2010 17:52:04 +0000 (UTC) (envelope-from tobias@ntelecom.com.br) Received: from mail.ntelecom.com.br (mail.ntelecom.com.br [189.1.176.244]) by mx1.freebsd.org (Postfix) with ESMTP id 951068FC18 for ; Mon, 29 Nov 2010 17:52:03 +0000 (UTC) Received: from [172.16.16.100] (gw01.ntelecom.com.br [189.1.176.250]) by mail.ntelecom.com.br (Postfix) with ESMTPA id ED9A0258889C; Mon, 29 Nov 2010 15:51:47 -0200 (BRST) Message-ID: <4CF3E833.5040507@ntelecom.com.br> Date: Mon, 29 Nov 2010 15:51:47 -0200 From: "Tobias P. Santos" User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Nikos Vassiliadis References: <20101128010732.229640@gmx.com> In-Reply-To: <20101128010732.229640@gmx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.96.4 at mail.ntelecom.com.br X-Virus-Status: Clean Cc: freebsd-net@freebsd.org 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: Mon, 29 Nov 2010 17:52:04 -0000 >> [...] >> >> route add -net 192.168.0.100 192.168.0.200 255.255.255.255 1 >> >> Destination Gateway Flags Refs Use Netif Expire >> 0.0.0.0&0x1 192.168.0.200 UGS 0 0 bge > Try: > route delete 0.0.0.0 -netmask 0.0.0.1 > It worked! > [...] > 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 > I agree. What I don't understand is how the command I typed could become 0.0.0.0/0.0.0.1 in the routing table. Thank you, Tobias.