udhcp and busybox
Rob Landley
rob at landley.net
Tue Mar 28 10:03:16 PST 2006
On Monday 27 March 2006 5:04 pm, Devin Bayer wrote:
> > Even the common case of a router wouldn't need this, because you only run
> > the dhcp _client_ on one interface.
>
> In the common case of a router, you do need this. If you have a running
> system with a gateway and then run udhcpc, it'll create two gateways and
> knock your system off all the networks.
>
> Well, that's all I have to say; I won't argue anymore.
It must remove the existing default gateway (if any) when adding a new default
gateway, yes. Since you can only have one default gateway (this would be
what "default" means), the route command should do this for a "route add
default gw" invocation.
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list