Subject: Re: overwriting default route error
To: Cliff Wright <>
From: Arnaud Lacombe <>
List: tech-net
Date: 02/28/2007 17:15:53
On Wed, Feb 28, 2007 at 12:42:47PM -0800, Cliff Wright wrote:
> 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 (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:

I didn't get any reply after my last mail.

> 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