You are not logged in.

#1 2012-04-25 04:05:11

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

[SOLVED] couldn't get an ip lease with dhcpcd

firstly, hello archlinux forums

i have an eee pc 701sd sitting at home, and since my family doesn't really use it, i installed in archlinux. i have little experience in linux distros, and decided on arch as my friend strongly suggested it.

i installed archlinux using the netinstall iso and everything went well. the first thing that needs to be up and running is obviously the wireless. i have searched through several wikis, not restricted to arch's only, and most of them suggest to install ndiswrapper with the wireless driver rtl8187se. below is the excerpt from arch wiki:

from https://wiki.archlinux.org/index.php/MSI_Wind_U100

Realtek

Since kernel 2.6.29 there's a working driver included in the staging line. The module is rtl8187se and should get loaded without intervention. This network adapter is known to be buggy, so it's unlikely that this driver will show significant progress over its current state. Using ndiswrapper in place of the in-kernel module is recommended because of this situation.

so i installed ndiswrapper without problems. loaded up the rtl8187se wireless driver for windows XP. i could run iwlist wlan0 scan perfectly well.

but running dhcpcd wlan0 caused some problems with the ipv6. i looked around and followed the instructions to disable ipv6.

even after that, dhcpcd fails to get a lease for ip.

dhcpcd[459]: version 5.5.6 starting
dhcpcd[459]: wlan0: broadcasting for a lease
dhcpcd[459]: timed out

can anyone help?

Last edited by altbdoor (2012-04-25 08:28:18)

Offline

#2 2012-04-25 05:25:02

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] couldn't get an ip lease with dhcpcd

Welcome to the forums.

Is your wlan0 interface actually associated with your AP/router? If not, then dhcpcd will always fail obviously. Have a look at this section of the Wireless Setup wiki page for instructions on how to test your wifi connection "manually".


Burninate!

Offline

#3 2012-04-25 05:35:36

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

Re: [SOLVED] couldn't get an ip lease with dhcpcd

Gcool wrote:

Is your wlan0 interface actually associated with your AP/router? If not, then dhcpcd will always fail obviously.

thanks for the quick reply. could you please explain how to check if the wlan0 is associated with the router? is it iwconfig?

i have followed the instructions in the link given. from ip link set wlan0 up all the way to dhcpcd wlan0. i have also tried to manually assign the IP addresses and default gateway, but no avail.

Offline

#4 2012-04-25 06:08:12

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] couldn't get an ip lease with dhcpcd

When you run iwconfig, in the output there'll be an entry called "ESSID". Does that contain the actual ESSID of your wireless network or does it say "not associated"? Also, which encryption (if any) are you using?

PS: since you're using ndiswrapper, also consider blacklisting the rtl8187 module (create /etc/modprobe.conf.d/blacklist.conf and add "blacklist rtl8187" to it).


Burninate!

Offline

#5 2012-04-25 07:44:01

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

Re: [SOLVED] couldn't get an ip lease with dhcpcd

Gcool wrote:

PS: since you're using ndiswrapper, also consider blacklisting the rtl8187 module (create /etc/modprobe.conf.d/blacklist.conf and add "blacklist rtl8187" to it).

thats it! this was the problem!

i looked around other forums and discovered the command lsmod, in which i found that r8187se was loaded instead of ndiswrapper. i rmmod-ed r8187se and modprobe ndiswrapper. tried connecting to my home network, ad-hoc, WEP. ran dhcpcd, and i was leased an IP address. tested with ping, and i'm online!

considering how lsmod says that r8187se was loaded, do i only blacklist r8187se in the blacklist.conf?

and of course, thanks a lot!

Offline

#6 2012-04-25 08:08:17

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] couldn't get an ip lease with dhcpcd

Glad to hear it's working. Just blacklisting r8187se should be sufficient in this case, yes.

PS: don't forget to mark your thread as [SOLVED].


Burninate!

Offline

#7 2012-04-25 08:29:03

altbdoor
Member
From: KL, Malaysia
Registered: 2012-04-25
Posts: 128

Re: [SOLVED] couldn't get an ip lease with dhcpcd

alright, thanks for all the help!

Offline

Board footer

Powered by FluxBB