Date: Tue, 7 Aug 2007 13:43:31 -0700 From: Chuck Swiger <cswiger@mac.com> To: Modulok <modulok@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Bizzare routing table entry. Message-ID: <CBF69A4E-5229-4225-B402-C02535669F8C@mac.com> In-Reply-To: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com> References: <64c038660708071210w1950ccccwda1bb8464587d1de@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CBF69A4E-5229-4225-B402-C02535669F8C>