From owner-freebsd-net@FreeBSD.ORG Fri Nov 26 13:24:44 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 A0125106564A for ; Fri, 26 Nov 2010 13:24:44 +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 63D998FC08 for ; Fri, 26 Nov 2010 13:24:43 +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 34BEC25886DC for ; Fri, 26 Nov 2010 11:07:42 -0200 (BRST) Message-ID: <4CEFB11D.8070806@ntelecom.com.br> Date: Fri, 26 Nov 2010 11:07:41 -0200 From: "Tobias P. Santos" User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: freebsd-net@freebsd.org 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 Subject: 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: Fri, 26 Nov 2010 13:24:44 -0000 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. Anyone has any clues? And also, how come a route like this being interpreted as the default route? This happened on a 7.3-RELEASE and I also tested on an old 6.2-RELEASE without being able to remove the route. The only difference is that it shows as 0.0.0.0&0x1 on 7.3 and as 0&0x1 on 6.2. Thank you in advance, Tobias.