You are not logged in.

#1 2013-07-29 08:18:05

waseem
Member
Registered: 2013-07-29
Posts: 3

[SOLVED] Wireless interface wont come up

Hi,

I'm trying to configure wireless network on my laptop but I can't get the interface up. Here's what I'm doing.

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether f0:de:f1:bb:8b:ce brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    link/ether 10:0b:a9:53:d9:e4 brd ff:ff:ff:ff:ff:ff

Notice that the wireless interface i.e. wlp3s0 is DOWN. If I remove the ethernet connection i.e. enp0s25 and try to activate the wireless interface, it wont activate.

$ sudo ip link set wlp3s0 up

Above does not give any error messages and when I check the state of the wireless interface, it is still DOWN.

I followed https://wiki.archlinux.org/index.php/Wireless_Setup and made sure everything with my wireless controller is fine.

$ sudo lspci | grep -i net
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)

According to Intel's documentation iwlwifi driver should work for my wireless card. According to this I do not need to install this driver manually as it comes with linux-firmware package. I'm assuming that the fact that a wireless interface is available means I don't need to install a wireless driver separately.

I still installed and tested with ipw2100, ipw2200 and iwlegacy drivers by modprobing them one by one and trying to activate the interface. But none of them worked.

I also installed wicd on my machine. When I launch wicd-curses, it shows me available wireless networks but when I connect it with one -- whether unsecured or secured -- it does not go any further than "Putting interface up".

rfkill also seems okay on my machine.

$ rfkill list 
0: tpacpi_bluetooth_sw: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

I'm out of options and do not know how to proceed further. I'm using a Thinkpad T520 if that helps.

Last edited by waseem (2013-07-30 20:21:49)

Offline

#2 2013-07-29 17:17:31

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: [SOLVED] Wireless interface wont come up

Don't worry about that DOWN for wlp2s0 - it is misleading. The one relevant is inside the brackets.
Put the interface up/down like you tried and you will see "< ....,UP>" changes correspondingly. 

You can remove the ipw packages too, your card indeed works with iwlwifi out-of-the-box.

edit: I missed that you already scanned with wicd. I have never used that myself, but maybe journalctl gives hints.
Alternatively, you try the next steps after putting it up like described here: https://wiki.archlinux.org/index.php/Wi … nual_setup
and share where it fails. If you have an unsecured/wep to test, it's easier (otherwise you have to configure wpa_supplicant).

Last edited by Strike0 (2013-07-29 17:27:29)


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#3 2013-07-29 17:39:20

waseem
Member
Registered: 2013-07-29
Posts: 3

Re: [SOLVED] Wireless interface wont come up

Strike0,

You're right about the state in the angle brackets. It changes accordingly when I change the state of the interface. But if even if I ignore the value in the status string, I'm unable to scan any wireless networks and hence not able to connect with them manually.

$ ip link 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether f0:de:f1:bb:8b:ce brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    link/ether 10:0b:a9:53:d9:e4 brd ff:ff:ff:ff:ff:ff

$ iwlist wlp3s0 scanning 
wlp3s0    No scan results

One thing to notice here is that wicd scans correctly but I'm unable to connect with any wireless networks.

While writing this I tried something more. I ignored the fact that `iwlist wlp3s0 scanning` does not give me any results. Since I know the ESSID of the network I want to connect, I proceeded with connecting with it on CLI.

$ sudo iwconfig wlp3s0 essid "<ESSID>"
$ ip link 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether f0:de:f1:bb:8b:ce brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
    link/ether 10:0b:a9:53:d9:e4 brd ff:ff:ff:ff:ff:ff
$ sudo dhcpcd wlp3s0
dhcpcd[10076]: sending commands to master dhcpcd process

$ ping -c 3 google.com
PING google.com (74.125.239.135) 56(84) bytes of data.
64 bytes from nuq05s02-in-f7.1e100.net (74.125.239.135): icmp_seq=1 ttl=52 time=23.3 ms
64 bytes from nuq05s02-in-f7.1e100.net (74.125.239.135): icmp_seq=2 ttl=52 time=26.5 ms
64 bytes from nuq05s02-in-f7.1e100.net (74.125.239.135): icmp_seq=3 ttl=52 time=26.9 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 23.346/25.624/26.968/1.624 ms

It I'm able to connect with wireless. But my problem is still not solved. I want to be able to connect via wicd so that I don't have to do this unreliable dance.

Last edited by waseem (2013-07-29 17:40:05)

Offline

#4 2013-07-29 17:47:37

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,496

Re: [SOLVED] Wireless interface wont come up

Ok, good it works for starters ..
The reason you don't get scan results manually is that you have to scan with "sudo"/root. It is a bit misleading that the command does not error out without, yes.

As for your wicd, what does the log say?


The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.

Offline

#5 2013-07-30 18:52:25

waseem
Member
Registered: 2013-07-29
Posts: 3

Re: [SOLVED] Wireless interface wont come up

Strike0,

Yes, it gives me scan results when used with sudo. Here's what wicd logs say when I try to connect to a network:

2013/07/31 00:03:04 :: ifconfig wlp3s0
2013/07/31 00:03:06 :: ifconfig enp0s25
2013/07/31 00:03:06 :: iwconfig wlp3s0
2013/07/31 00:03:06 :: ifconfig wlp3s0
2013/07/31 00:03:10 :: ifconfig enp0s25
2013/07/31 00:03:10 :: iwconfig wlp3s0
2013/07/31 00:03:10 :: ifconfig wlp3s0
2013/07/31 00:03:14 :: ifconfig enp0s25
2013/07/31 00:03:14 :: iwconfig wlp3s0
2013/07/31 00:03:14 :: ifconfig wlp3s0
2013/07/31 00:03:16 :: ifconfig enp0s25
2013/07/31 00:03:16 :: ifconfig wlp3s0
2013/07/31 00:03:18 :: iwconfig wlp3s0
2013/07/31 00:03:18 :: Connecting to wireless network sunsethills_2GEXT
2013/07/31 00:03:18 :: /usr/sbin/dhcpcd -k wlp3s0
dhcpcd[3245]: sending commands to master dhcpcd process
2013/07/31 00:03:18 :: ifconfig wlp3s0 0.0.0.0 
2013/07/31 00:03:18 :: /usr/sbin/ip route flush dev wlp3s0
2013/07/31 00:03:18 :: ifconfig wlp3s0 down
2013/07/31 00:03:18 :: ifconfig wlp3s0 up
2013/07/31 00:03:18 :: wpa_cli -i wlp3s0 terminate
Failed to connect to non-global ctrl_ifname: wlp3s0  error: No such file or directory
2013/07/31 00:03:18 :: /usr/sbin/dhcpcd -k enp0s25
dhcpcd[3281]: sending commands to master dhcpcd process
2013/07/31 00:03:18 :: ifconfig enp0s25 0.0.0.0 
2013/07/31 00:03:18 :: /usr/sbin/ip route flush dev enp0s25
2013/07/31 00:03:18 :: ifconfig enp0s25 down
2013/07/31 00:03:18 :: ifconfig enp0s25 up
2013/07/31 00:03:19 :: wpa_cli -i enp0s25 terminate
Failed to connect to non-global ctrl_ifname: enp0s25  error: No such file or directory
2013/07/31 00:03:19 :: Putting interface down
2013/07/31 00:03:19 :: ifconfig wlp3s0 down
2013/07/31 00:03:19 :: ifconfig wlp3s0
2013/07/31 00:03:19 :: Releasing DHCP leases...
2013/07/31 00:03:19 :: /usr/sbin/dhcpcd -k wlp3s0
dhcpcd[3428]: sending commands to master dhcpcd process
2013/07/31 00:03:19 :: Setting false IP...
2013/07/31 00:03:19 :: ifconfig wlp3s0 0.0.0.0 
2013/07/31 00:03:19 :: ifconfig enp0s25
2013/07/31 00:03:19 :: Stopping wpa_supplicant
2013/07/31 00:03:19 :: wpa_cli -i wlp3s0 terminate
2013/07/31 00:03:19 :: Reading wired profile wired-default
2013/07/31 00:03:19 :: found ip in configuration None
2013/07/31 00:03:19 :: found broadcast in configuration None
2013/07/31 00:03:19 :: found netmask in configuration None
2013/07/31 00:03:19 :: found gateway in configuration None
2013/07/31 00:03:19 :: found search_domain in configuration NoneFailed to connect to non-global ctrl_ifname: wlp3s0  error: No such file or directory

2013/07/31 00:03:19 :: Flushing the routing table...
2013/07/31 00:03:19 :: /usr/sbin/ip route flush dev wlp3s0
2013/07/31 00:03:19 :: found dns_domain in configuration None
2013/07/31 00:03:19 :: found dns1 in configuration None
2013/07/31 00:03:19 :: found dns2 in configuration None
2013/07/31 00:03:19 :: found dns3 in configuration None
2013/07/31 00:03:19 :: found beforescript in configuration None
2013/07/31 00:03:19 :: found afterscript in configuration None
2013/07/31 00:03:19 :: found predisconnectscript in configuration None
2013/07/31 00:03:19 :: found postdisconnectscript in configuration None
2013/07/31 00:03:19 :: found encryption_enabled in configuration None
2013/07/31 00:03:19 :: found default in configuration True
2013/07/31 00:03:19 :: found dhcphostname in configuration goodlove
2013/07/31 00:03:19 :: found lastused in configuration True
2013/07/31 00:03:19 :: iwconfig wlp3s0 mode managed
2013/07/31 00:03:19 :: Putting interface up...
2013/07/31 00:03:19 :: ifconfig wlp3s0 up
2013/07/31 00:03:20 :: iwconfig wlp3s0
2013/07/31 00:03:21 :: enctype is None
2013/07/31 00:03:21 :: ['iwconfig', 'wlp3s0', 'essid', '--', 'sunsethills_2GEXT']
2013/07/31 00:03:21 :: iwconfig wlp3s0 channel 6
2013/07/31 00:03:21 :: iwconfig wlp3s0 ap 9C:D3:6D:9D:ED:DD
2013/07/31 00:03:21 :: Running DHCP with hostname goodlove
2013/07/31 00:03:21 :: /usr/sbin/dhcpcd -h goodlove --noipv4ll wlp3s0 
2013/07/31 00:03:21 :: dhcpcd[3523]: sending commands to master dhcpcd process
2013/07/31 00:03:21 :: 
2013/07/31 00:03:21 :: 
2013/07/31 00:03:21 :: DHCP connection successful
2013/07/31 00:03:21 :: not verifying
2013/07/31 00:03:21 :: Connecting thread exiting.
2013/07/31 00:03:21 :: ifconfig wlp3s0
2013/07/31 00:03:21 :: IP Address is: None
2013/07/31 00:03:22 :: ifconfig enp0s25
2013/07/31 00:03:24 :: ifconfig enp0s25
2013/07/31 00:03:24 :: iwconfig wlp3s0
2013/07/31 00:03:24 :: ifconfig wlp3s0
2013/07/31 00:03:24 :: Sending connection attempt result success
2013/07/31 00:03:24 :: Forced disconnect on
2013/07/31 00:03:24 :: /usr/sbin/dhcpcd -k wlp3s0
dhcpcd[3557]: sending commands to master dhcpcd process
2013/07/31 00:03:24 :: ifconfig wlp3s0 0.0.0.0 
2013/07/31 00:03:24 :: /usr/sbin/ip route flush dev wlp3s0
2013/07/31 00:03:24 :: ifconfig wlp3s0 down
2013/07/31 00:03:24 :: ifconfig wlp3s0 up
2013/07/31 00:03:24 :: wpa_cli -i wlp3s0 terminate
Failed to connect to non-global ctrl_ifname: wlp3s0  error: No such file or directory
2013/07/31 00:03:24 :: /usr/sbin/dhcpcd -k enp0s25
dhcpcd[3594]: sending commands to master dhcpcd process
2013/07/31 00:03:24 :: ifconfig enp0s25 0.0.0.0 
2013/07/31 00:03:24 :: /usr/sbin/ip route flush dev enp0s25
2013/07/31 00:03:24 :: ifconfig enp0s25 down
2013/07/31 00:03:24 :: ifconfig enp0s25 up
2013/07/31 00:03:25 :: wpa_cli -i enp0s25 terminate
Failed to connect to non-global ctrl_ifname: enp0s25  error: No such file or directory
2013/07/31 00:03:25 :: Reading wired profile wired-default
2013/07/31 00:03:25 :: found ip in configuration None
2013/07/31 00:03:25 :: found broadcast in configuration None
2013/07/31 00:03:25 :: found netmask in configuration None
2013/07/31 00:03:25 :: found gateway in configuration None
2013/07/31 00:03:25 :: found search_domain in configuration None
2013/07/31 00:03:25 :: found dns_domain in configuration None
2013/07/31 00:03:25 :: found dns1 in configuration None
2013/07/31 00:03:25 :: found dns2 in configuration None
2013/07/31 00:03:25 :: found dns3 in configuration None
2013/07/31 00:03:25 :: found beforescript in configuration None
2013/07/31 00:03:25 :: found afterscript in configuration None
2013/07/31 00:03:25 :: found predisconnectscript in configuration None
2013/07/31 00:03:25 :: found postdisconnectscript in configuration None
2013/07/31 00:03:25 :: found encryption_enabled in configuration None
2013/07/31 00:03:25 :: found default in configuration True
2013/07/31 00:03:25 :: found dhcphostname in configuration goodlove
2013/07/31 00:03:25 :: found lastused in configuration True
2013/07/31 00:03:28 :: ifconfig enp0s25
2013/07/31 00:03:28 :: iwconfig wlp3s0
2013/07/31 00:03:28 :: ifconfig wlp3s0
2013/07/31 00:03:30 :: ifconfig enp0s25
2013/07/31 00:03:30 :: iwconfig wlp3s0
2013/07/31 00:03:30 :: ifconfig wlp3s0
2013/07/31 00:03:32 :: ifconfig enp0s25
2013/07/31 00:03:32 :: iwconfig wlp3s0
2013/07/31 00:03:32 :: ifconfig wlp3s0

I googled the error message and found out this thread https://bbs.archlinux.org/viewtopic.php?pid=1286226. It seems I need to disable dhcpcd.service to make wicd work correctly.

Offline

#6 2013-07-30 19:21:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Wireless interface wont come up

You should definitely not have more than one thing trying to handle your network.  So yes, you do indeed need to disable the dhcpcd.service as well as any other service that might be trying to handle your network.  So if you have also tried to configure networkmanager, or netctl, or netcfg, or wpa_supplicant.service, or whatever, those all need to be stopped and disabled if you now want to use wicd.

Offline

Board footer

Powered by FluxBB