Remove route 0.0.0.0&0x1
Nikos Vassiliadis
nvass9573 at gmx.com
Sun Nov 28 01:07:37 UTC 2010
> ----- Original Message -----
> From: Tobias P. Santos
> Sent: 11/26/10 03:07 PM
> To: freebsd-net at freebsd.org
> Subject: Remove route 0.0.0.0&0x1
>
> 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.
Try:
route delete 0.0.0.0 -netmask 0.0.0.1
> Anyone has any clues? And also, how come a route like this being
> interpreted as the default route?
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
More information about the freebsd-net
mailing list