From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 19:59:37 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 D054E16A418 for ; Wed, 8 Aug 2007 19:59:37 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 91C7C13C46A for ; Wed, 8 Aug 2007 19:59:37 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id l77JrX5n046243; Tue, 7 Aug 2007 14:53:33 -0500 (CDT) (envelope-from dan) Date: Tue, 7 Aug 2007 14:53:32 -0500 From: Dan Nelson To: Modulok Message-ID: <20070807195332.GK77822@dan.emsphone.com> References: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com> X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) 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: Wed, 08 Aug 2007 19:59:37 -0000 In the last episode (Aug 07), Modulok said: > 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's in IPAddress&Netmask format. $ echo "ibase=16;C0;A8;01;32" | bc 192 168 1 50 Someone probably ran "ifcofig bge0 netmask 192.168.1.50" or some script did it to you. > 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 & is a shell metacharacter; try this: route delete "0&0xc0a80132" -- Dan Nelson dnelson@allantgroup.com