You are not logged in.

#1 2008-12-26 21:41:19

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Wireless Help; dhcpcd & dhclient fail.

I'm trying to set up my wireless connection according to the Arch Wiki, section "Wireless Quickstart". Everything seems to work fine until the step

# dhcpcd wlan0

. When I input that, my terminal outputs this:

[root@oxygen ~]# dhcpcd wlan0
wlan0: dhcpcd 4.0.7 starting
wlan0: broadcasting for a lease
wlan0: carrier lost
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: carrier lost
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: carrier lost
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: carrier lost
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: carrier lost
wlan0: carrier acquired
wlan0: broadcasting for a lease
wlan0: timed out

I've been trying to figure it out for about 4 hours now, and multiple google searches haven't yeilded anything. Any suggestions?

Last edited by soupcan (2008-12-26 23:42:25)

Offline

#2 2008-12-26 21:45:51

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Wireless Help; dhcpcd & dhclient fail.

do a iwlist scan

and see if you can see your network.  If it does then you have a problem with your key  what wireless card do you have?

Offline

#3 2008-12-26 21:58:05

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

viga wrote:

do a iwlist scan

and see if you can see your network.  If it does then you have a problem with your key  what wireless card do you have?

Output of iwlist wlan0 scan:

[root@oxygen ~]# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:16:01:D6:EF:65
                    ESSID:"Buffalo"
                    Mode:Master
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=94/100  Signal level:-35 dBm  Noise level=-127 dBm
                    Encryption key:on
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=0000000082212553
                    Extra: Last beacon: 1513ms ago

I believe that this is my card:

[root@oxygen ~]# lspci | grep -i net
02:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)

Offline

#4 2008-12-26 22:24:20

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless Help; dhcpcd & dhclient fail.

try using dhclient. There are some quirks to use with dhcpcd

Offline

#5 2008-12-26 22:28:29

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Wireless Help; dhcpcd & dhclient fail.

Your card is working.  Use netcfg to connect to the wireless network.   Follow this link

http://wiki.archlinux.org/index.php/Network_Profiles

Offline

#6 2008-12-26 22:50:41

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

viga wrote:

Your card is working.  Use netcfg to connect to the wireless network.   Follow this link

http://wiki.archlinux.org/index.php/Network_Profiles

Where do I put the file so netcfg can find it?
EDIT: Nevermind. I just saw that it goes in /etc/network.d.

Last edited by soupcan (2008-12-26 22:52:06)

Offline

#7 2008-12-26 22:54:29

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

This is the output of netcgf wirelesstest:

[root@oxygen ~]# netcfg wirelesstest
:: wirelesstest up  - DHCP IP lease attempt failed                       [FAIL]

Offline

#8 2008-12-26 22:56:17

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless Help; dhcpcd & dhclient fail.

Please see my post 3 post up.

Offline

#9 2008-12-26 23:17:50

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

archlinuxsagi wrote:

Please see my post 3 post up.

Sorry, same thing. Output of dhclient wlan0:

[root@oxygen ~]# dhclient wlan0
There is already a pid file /var/run/dhclient.pid with pid 5745
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:21:5c:12:72:df
Sending on   LPF/wlan0/00:21:5c:12:72:df
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Offline

#10 2008-12-26 23:28:46

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless Help; dhcpcd & dhclient fail.

Mmm. Try to restart your router..

Offline

#11 2008-12-26 23:41:19

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

archlinuxsagi wrote:

Mmm. Try to restart your router..

Same thing, with both dhcpcd and dhclient.

Offline

#12 2008-12-27 00:02:43

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless Help; dhcpcd & dhclient fail.

mmm. There are some quirks for your wireless card out there. More experience arch users can help you here. I can suggest using wicd-client but to me netcfg2 should work too.

Offline

#13 2008-12-27 00:30:54

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

I'm thinking that I might have a problem with the router itself. I have a Wii, should I try to connect to the internet with that and see what happens? I'd assume that this would reveal whether the problem was with my card or my router.

Offline

#14 2008-12-27 00:37:14

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless Help; dhcpcd & dhclient fail.

DHCP request will fail if authentication was not done successfully...  Are you sure that your computer identifies itself correctly to the router?  Post all relevant info -- what's in your wpa_supplicant.conf or however it is that you have your wifi configured.  My guess is that dhcpcd/dhclient failure is a consequence of something that's misconfigured elsewhere.

Offline

#15 2008-12-27 01:32:54

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

fwojciec wrote:

DHCP request will fail if authentication was not done successfully...  Are you sure that your computer identifies itself correctly to the router?  Post all relevant info -- what's in your wpa_supplicant.conf or however it is that you have your wifi configured.  My guess is that dhcpcd/dhclient failure is a consequence of something that's misconfigured elsewhere.

Ummm.. could you be a little more specific? I haven't done anything but what's outlined in the Wireless Article and Beginners Guide, and what's been posted in this thread. I'm not really sure what files I need to post. I can boot into Ubuntu where I'm not having problems with wireless. Are there any settings I can post from there that would help?

Offline

#16 2008-12-27 01:45:34

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless Help; dhcpcd & dhclient fail.

The "Wireless Quickstart" you referred to in the first post describes the procedure for a WEP protected network, your network is using WPA encryption, from what I can tell, so those instructions are not what should be used in your case.

The problem is that other than dhcpcd/dhclient command you didn't tell us what it is that you do in order to connect to the wifi network.  Are you using wpa_supplicant, netcfg -- what are the steps that you do before issuing the dhcpcd/dhclient command?

Last edited by fwojciec (2008-12-27 01:46:46)

Offline

#17 2008-12-27 01:53:33

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

fwojciec wrote:

The "Wireless Quickstart" you referred to in the first post describes the procedure for a WEP protected network, your network is using WPA encryption, from what I can tell, so those instructions are not what should be used in your case.

The problem is that other than dhcpcd/dhclient command you didn't tell us what it is that you do in order to connect to the wifi network.  Are you using wpa_supplicant, netcfg -- what are the steps that you do before issuing the dhcpcd/dhclient command?

Oh, ok. I was using the steps in the Wireless Quickstart guide. Like this:

# lspci | grep -i net
# iwconfig
# ifconfig wlan0 up
# iwlist wlan0 scan
# iwconfig wlan0 essid "Buffalo" key blahblahblah
# dhcpcd wlan0 or #dhclient wlan0

Is that why I was having problems? How should I set up my network then?

Offline

#18 2008-12-27 02:08:19

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless Help; dhcpcd & dhclient fail.

Right, these instructions would work for a WEP encrypted network, but the wifi network you're trying to connect to uses WPA encryption.

The generic procedure for WPA networks is to use wpa_supplicant to negotiate the encryption and then dhcpcd/dhclient to obtain an ip address.  Wiki page for wpa_supplicant is here: http://wiki.archlinux.org/index.php/Wpa_supplicant

The best bet for you is to use something like netcfg to semi-automate the configuration -- that way you won't have to configure wpa_supplicant.conf manually/directly (though configuring it directly can be advantageous is many ways).  You'd need to customize the wpa.example file from /etc/network.d/examples.  Netcfg wiki is here: http://wiki.archlinux.org/index.php/Netcfg

Last edited by fwojciec (2008-12-27 02:08:44)

Offline

#19 2008-12-27 02:31:00

soupcan
Member
From: ?
Registered: 2008-10-25
Posts: 268

Re: Wireless Help; dhcpcd & dhclient fail.

fwojciec wrote:

Right, these instructions would work for a WEP encrypted network, but the wifi network you're trying to connect to uses WPA encryption.

The generic procedure for WPA networks is to use wpa_supplicant to negotiate the encryption and then dhcpcd/dhclient to obtain an ip address.  Wiki page for wpa_supplicant is here: http://wiki.archlinux.org/index.php/Wpa_supplicant

The best bet for you is to use something like netcfg to semi-automate the configuration -- that way you won't have to configure wpa_supplicant.conf manually/directly (though configuring it directly can be advantageous is many ways).  You'd need to customize the wpa.example file from /etc/network.d/examples.  Netcfg wiki is here: http://wiki.archlinux.org/index.php/Netcfg

Okay, my wireless is now working though wpa_supplicant. Thank you so much.:) I've spent the entire day trying to get a wireless connection.
Anyway, I see that the netcfg wiki has a "Start On Boot" section, but I don't really understand what I have to do to get my wireless to work every time I boot up.

Last edited by soupcan (2008-12-27 02:31:53)

Offline

#20 2008-12-27 02:37:48

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless Help; dhcpcd & dhclient fail.

If I remember correctly...  you need something like
NETWORKS=(auto-wireless wlan0)
in rc.conf and then "net-auto" deamon specified in the daemons array in rc.conf.

Offline

#21 2008-12-27 03:45:58

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless Help; dhcpcd & dhclient fail.

Good for you that you have resolve the wireless issue. I forget that if there is no DHCP offer, it might be due to authentication failure.

Offline

#22 2008-12-27 15:18:45

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Wireless Help; dhcpcd & dhclient fail.

soupcan

to start your wireless you type sudo netcfg "wirelesstest"   the name of the file you placed in /etc/netconf.d  Also look at the /etc/netconf.d/examples

Offline

#23 2008-12-27 15:45:08

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Wireless Help; dhcpcd & dhclient fail.

I would recommend using wicd unless you really want/need to use cli apps. wicd does the trick for me and also helped other people that asked for help here on the forum.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB