Re: How to force ifup to wait for dhcp?

2008-07-25 Thread Michelle Konzack
Am 2008-07-21 10:28:27, schrieb Andrei Popescu: This sounds like a bug in ifupdown, as I thing DHCP should not be started before the interface signals it has link up. Not only this, because /etc/network/if-up.d/ should not be executed, before DHCP has gotten its IP. IF_ADDR is always

Re: How to force ifup to wait for dhcp?

2008-07-25 Thread Michelle Konzack
Am 2008-07-21 11:32:45, schrieb Shachar Or: The ifup wlan0 command brings up that interface. Only after it is 'up', it launches the dhcp client for that interface. How can you want have the ifup command run after the dhcp client? NO, not right. /etc/network/if-up.d/ is NORMALY executed

Re: How to force ifup to wait for dhcp?

2008-07-25 Thread Michelle Konzack
Hello Mike, Am 2008-07-21 00:43:51, schrieb Mike Bird: DHCP does retry. It's not optimal but it kinda works. Sometime after AP authentication we eventually get DHCP from one of the retries. The problem is that I've not found a way to make startup wait for DHCP before plowing ahead and

Re: How to force ifup to wait for dhcp?

2008-07-23 Thread Osamu Aoki
On Sun, Jul 20, 2008 at 11:24:23PM -0700, Mike Bird wrote: How does one force ifup to wait for dhcp? The Lenny laptops here start wlan0. AP authentication and DHCP both occur independently in the background. Up to half a minute elapses before AP authentication has occured, DHCP has

How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
How does one force ifup to wait for dhcp? The Lenny laptops here start wlan0. AP authentication and DHCP both occur independently in the background. Up to half a minute elapses before AP authentication has occured, DHCP has retried, and DHCP has succeeded. By then, openvpn has gotten very

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Andrei Popescu
On Sun,20.Jul.08, 23:24:23, Mike Bird wrote: How does one force ifup to wait for dhcp? The Lenny laptops here start wlan0. AP authentication and DHCP both occur independently in the background. Up to half a minute elapses before AP authentication has occured, DHCP has retried, and DHCP has

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
On Sun July 20 2008 23:44:55 Andrei Popescu wrote: I think I'm missing something obvious, but how can DHCP succeed before the AP authentication? You're right, it can't. But if there's a way to make DHCP wait for AP authentication I haven't found it. Fortunately, DHCP retries a few times.

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
On Monday 21 July 2008 09:24, Mike Bird wrote: How does one force ifup to wait for dhcp? The Lenny laptops here start wlan0. AP authentication and DHCP both occur independently in the background. Up to half a minute elapses before AP authentication has occured, DHCP has retried, and DHCP

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
On Mon July 21 2008 00:08:48 Shachar Or wrote: Can you please attach your /etc/network/interfaces file? Appended below. --Mike Bird # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Andrei Popescu
On Sun,20.Jul.08, 23:51:56, Mike Bird wrote: On Sun July 20 2008 23:44:55 Andrei Popescu wrote: I think I'm missing something obvious, but how can DHCP succeed before the AP authentication? You're right, it can't. But if there's a way to make DHCP wait for AP authentication I haven't

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
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

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
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

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
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

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
On Mon July 21 2008 00:50:39 Shachar Or wrote: On Monday 21 July 2008 10:43, Mike Bird wrote: 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

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
On Monday 21 July 2008 11:07, Mike Bird wrote: On Mon July 21 2008 00:50:39 Shachar Or wrote: On Monday 21 July 2008 10:43, Mike Bird wrote: 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

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
On Mon July 21 2008 01:15:43 Shachar Or wrote: On Monday 21 July 2008 11:07, Mike Bird wrote: The question is how to make ifup wait for DHCP on wlan0, so that the default route is available when openvpn starts, as we need openvpn to create a route with a next hop of net_gateway. Which

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
On Monday 21 July 2008 11:21, Mike Bird wrote: On Mon July 21 2008 01:15:43 Shachar Or wrote: On Monday 21 July 2008 11:07, Mike Bird wrote: The question is how to make ifup wait for DHCP on wlan0, so that the default route is available when openvpn starts, as we need openvpn to create

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Mike Bird
On Mon July 21 2008 01:32:45 Shachar Or wrote: On Monday 21 July 2008 11:21, Mike Bird wrote: On Mon July 21 2008 01:15:43 Shachar Or wrote: On Monday 21 July 2008 11:07, Mike Bird wrote: The question is how to make ifup wait for DHCP on wlan0, so that the default route is available

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Andrei Popescu
On Mon,21.Jul.08, 10:28:27, Andrei Popescu wrote: On Sun,20.Jul.08, 23:51:56, Mike Bird wrote: On Sun July 20 2008 23:44:55 Andrei Popescu wrote: I think I'm missing something obvious, but how can DHCP succeed before the AP authentication? You're right, it can't. But if there's a

Re: How to force ifup to wait for dhcp?

2008-07-21 Thread Shachar Or
On Monday 21 July 2008 11:46, Mike Bird wrote: On Mon July 21 2008 01:32:45 Shachar Or wrote: On Monday 21 July 2008 11:21, Mike Bird wrote: On Mon July 21 2008 01:15:43 Shachar Or wrote: On Monday 21 July 2008 11:07, Mike Bird wrote: The question is how to make ifup wait for DHCP