Remove route 0.0.0.0&0x1

Tobias P. Santos tobias at ntelecom.com.br
Fri Nov 26 13:24:44 UTC 2010


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.



More information about the freebsd-net mailing list