List Info

Thread: default route deleted incorrectly with dhclient




default route deleted incorrectly with dhclient
user name
2006-07-20 16:31:37
On Thu, 20 Jul 2006, Christos Zoulas wrote:
> I don't get it. Isn't the old code and the new code
equivalent?

There's a bug in route(8) such that "route delete
default $"
deletes the default route even if the gateway was not
$.  The
script under discussion seems to be an attempt to work
around the bug.

$ netstat -rn -f inet | grep default
default            10.64.64.64        UGS         -   ppp0
$ sudo route delete default 1.2.3.4
delete net default: gateway 1.2.3.4
$ netstat -rn -f inet | grep default
$ : see that default route has gone

--apb (Alan Barrett)

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )