Discussion:
overwriting default route error
(too old to reply)
Cliff Wright
2007-02-28 20:42:47 UTC
Permalink
On my laptop I use both the bce, and ath network interfaces with
dhcp enabled. This causes the /sbin/dhcp-script to run, first setting
a default route from the bce interface, then from the ath interface.
The script does not delete the first default route before setting
the next one. this causes a problem. If I do a get route xxx,
the local address is set to default, and indeed if I do a ping to
xxx the source address is set to 0.0.0.0 (which results in a failed
ping). As a work around I modified the script to first delete a
default route before setting a new one. However I am thinking this
could be a kernel bug. Should the kernel really expect a user space
program/script to delete the default route before setting a new one?
Cliff

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Arnaud Lacombe
2007-02-28 22:15:53 UTC
Permalink
Post by Cliff Wright
On my laptop I use both the bce, and ath network interfaces with
dhcp enabled. This causes the /sbin/dhcp-script to run, first setting
a default route from the bce interface, then from the ath interface.
The script does not delete the first default route before setting
the next one. this causes a problem. If I do a get route xxx,
the local address is set to default, and indeed if I do a ping to
xxx the source address is set to 0.0.0.0 (which results in a failed
ping). As a work around I modified the script to first delete a
default route before setting a new one.
IIUC, this is PR/22418 .

More discussion followed on tech-userlevel on October 2006:
http://mail-index.netbsd.org/tech-userlevel/2006/10/06/0010.html

I didn't get any reply after my last mail.
Post by Cliff Wright
However I am thinking this
could be a kernel bug. Should the kernel really expect a user space
program/script to delete the default route before setting a new one?
you could tell the kernel to change the default route: `route change
default ...' but you can't *add* a default route if one already exist.

- Arnaud


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...