[BusyBox] default config for ifup???
Uwe Beutin
uwe at imbrium.de
Thu Feb 6 04:20:05 UTC 2003
On Thu, 6 Feb 2003, Steven Scholz wrote:
> The above mentioned way reads the config from
> /etc/sysconfig/network-scripts/ifcfg-eth0 then tries to use udhcpc to get an IP
> and if that fails it uses values in /etc/sysconfig/network-scripts/ifcfg-eth0
> to configure the interface.
>
> Now, if I have an /etc/network/interfaces like
>
> iface eth0 inet dhcp
> address 10.0.9.153
> netmask 255.255.0.0
> network 10.0.0.0
> broadcast 10.0.255.255
>
> and use "sbin/ifup eth0" it will try to use dhcp and if it fails it just give up!
>
> So I am not sure what you meant.
Well, if you'd change your script and then get the failed exit code from
ifup you could just call "ifup eth1". But the way I see it, if dhcp
fails, eht0 gets initialized with the IP config that is stated in
ifcfg-eth0 anyway?!
Am I wrong?! Or didn't I correctly understand the problem? :)
Uwe
More information about the busybox
mailing list