[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to force ifup to wait for dhcp?



On Monday 21 July 2008 10:43, Mike Bird wrote:
> On Mon July 21 2008 00:36:28 Shachar Or wrote:
> > It would be more intelligent behaviour for the ifup script to wait with
> > dhcp for AP association. If it does not do this, as you say, please
> > report a bug against the ifupdown package.
> >
> > Perhaps the file /etc/dhcp3/dhclient.conf can help you. In particular,
> > the 'retry' statement. Check the dhclient.conf(5) manual for that.
>
> DHCP does retry.  It's not optimal but it kinda works.  Sometime after
> AP authentication we eventually get DHCP from one of the retries.

I am suggesting that you set the retry to a lower value so that it will retry 
every minute or so, for example.
>
> The problem is that I've not found a way to make startup wait for DHCP
> before plowing ahead and making a mess of openvpn, which then messes up
> the routing in quagga.

Once dhcp fails/times-out the openvpn setup gets busted?

If this s true, then perhaps look at 'timeout' statement.

If non of this works, perhaps you can use a static address instead of dhcp?
>
> --Mike Bird

-- 
Shachar Or | שחר אור
http://ox.freeallweb.org/


Reply to: