Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hotplug doesn't start dhcp when inserting WiFi card..???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
I1
n00b
n00b


Joined: 13 Sep 2004
Posts: 7

PostPosted: Sun Jun 19, 2005 11:16 am    Post subject: Hotplug doesn't start dhcp when inserting WiFi card..??? Reply with quote

Hi, I've recently installed baselayout 1.11.12-r4 on my laptop because of its better wifi support.

My laptop has two NICs: a built-in wired one which is configured as eth0 and a PCMCIA WiFi card configured as eth1. Both interfaces use DHCP to get their IP configuration from my router. The WiFi card has a CardBus interface and uses ndiswrapper as its driver.

Now here's my little annoyance: If I work without the wired connection and I insert the WiFi card, the card gets activated by hotplug (power and connection LEDs are activated/blinking), but DHCP doesn't kick in. I always have to restart it manually by doing

Code:
/etc/init.d/net.eth1 restart


as root. This shuts down and restarts the card, and this time DHCP does kick in (NIC is also correctly assigned an address).

When I look at the /etc/hotplug/net.agent script, it seems to call the exact same script, so I don't understand why DHCP doesn't get activated in that particular case.

Here's my /etc/conf.d/net:

Code:
iface_eth0="dhcp"
dhcpcd_eth0="-h ${HOSTNAME} -t 10"

modules=("wpa_supplicant")
wpa_supplicant_eth1="-Dndiswrapper"
wpa_timeout_eth1=60

iface_eth1="dhcp"
dhcpcd_eth1="-h ${HOSTNAME} -t 30"


As already said, my configuration works fine if I (re)start the WiFi NIC manually, but not when hotplug does it. Does anyone have an idea what is causing this and whether it is normal behaviour? (in other words: is it a bug or a feature? ;-)) I don't have enough bash scripting experience to be able to answer this myself...

Thanks in advance!

Iwan.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum