From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 20:43:32 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C215816A420 for ; Tue, 7 Aug 2007 20:43:32 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id B5EF713C48A for ; Tue, 7 Aug 2007 20:43:32 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay5.apple.com (relay5.apple.com [17.128.113.35]) by mail-out3.apple.com (Postfix) with ESMTP id 6FEFFDCE06E; Tue, 7 Aug 2007 13:43:32 -0700 (PDT) Received: from relay5.apple.com (unknown [127.0.0.1]) by relay5.apple.com (Symantec Mail Security) with ESMTP id 5FEF729C002; Tue, 7 Aug 2007 13:43:32 -0700 (PDT) X-AuditID: 11807123-a6246bb000007d99-22-46b8d9743809 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay5.apple.com (Apple SCV relay) with ESMTP id 502D630400D; Tue, 7 Aug 2007 13:43:32 -0700 (PDT) In-Reply-To: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com> References: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 7 Aug 2007 13:43:31 -0700 To: Modulok X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: Bizzare routing table entry. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 20:43:32 -0000 On Aug 7, 2007, at 12:10 PM, Modulok wrote: > I have a bizarre entry in the routing table on one my machines. What > is it, and how do I delete it? The output of "netstat -rnf inet" is > shown below: > > Destination Gateway Flags Refs Use > Netif Expire > 0&0xc0a80132 link#1 UCS 0 0 bge0 > 127.0.0.1 127.0.0.1 UH 0 557 lo0 > ... > > QUESTIONS > 1. The first entry, it's not IPv4, IPv6 or a MAC address that I've > ever seen, what format is it? It looks a default IPv4 route using a non-contiguous netmask. It's almost certainly the result of running route with the wrong arguments, rather than something you would intend to do. > 2. How do I delete it? According to route(8) it is not a "valid > address" and when I attempt to delete it, route(8) gets very upset: > > root# route delete 0&0xc0a80132 > > [1] 37343 > route: writing to routing socket: No such process > delete net 0: not in table > 0xc0a80132: Command not found. > [1] + Exit 1 route delete 0 The "&" is confusing the shell; you can probably do a "route delete default" to nuke it. -- -Chuck