Update: 2005-01-01. I don't use anymore waproamd. I use instead wpa_supplicant
Problem: I installed hotplug , ifplugd and waproamd. I want to find a configuration for my ethernet and wireless interfaces that permits to obtain an address via DHCP only when the interfaces are connected, and not to wait for
timeout when the interfaces are unplugged.
Answer:
- I configure hotplug to start all the interfaces marked as auto in
/etc/network/interface, setting NET_AGENT_POLICY=auto in /etc/default/hotplug;
- I configure ifplugd to run for every interface marked as auto during
the start-up, and to run for all interfaces when invoked by hotplug, setting
both INTERFACES="auto" and HOTPLUG_INTERFACES="all" in /etc/default/ifplugd;
- I configure waproamd to run only for my wireless interface, setting both
INTERFACES="wlan0" and HOTPLUG_INTERFACES="wlan0" in /etc/default/waproamd;
- Eventually, I don't mark any interface as auto in /etc/network/interfaces.
So, at the start-up the networking script doesn't try to configure any interface, since no interfaces are marked as auto. The same apply for ifplugd,
since again I set its policy to run at the boot for
the interfaces marked as auto. In this way, every interface is managed by hotplug, and if no interfaces are plugged nobody tries to obtain an address
via DHCP, slowing the boot process.
If I plug the eth0 interface, then hotplug starts ifplugd for that interface
with the scripts in /etc/hotplug.d/net; then ifplugd configure the interface
with the settings in /etc/network/interfaces (in my case, iface eth0 inet dhcp).
The same apply for wlan0 and waproamd, the only difference being that for me plugging and unplugging the interface is given by the loading and unloading of the interface kernel module.
Write me marco+site@equars.com if you
have any hint/correction.
Last edit: 2004-12-06