No WLAN after boot of 6.10, works with manual ifup/ifdown

Bug #69839 reported by Einar M Råberg Rosenvinge
10
Affects Status Importance Assigned to Milestone
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

Just installed Ubuntu Server 6.10 (Edgy) on a Pentium 4 computer here, with a Atheros AR5212 PCI NIC.

I set up /etc/network/interfaces as per the instructions in /usr/share/doc/wpasupplicant/README.modes.

After a fresh boot, I get no network, but if I manually restart networking, it works fine.

ifconfig after fresh boot:
ath0 Link encap:Ethernet HWaddr 00:13:F7:40:25:D5
          inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
          inet6 addr: fe80::213:f7ff:fe40:25d5/64 Scope:Link
          UP BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:816 (816.0 b) TX bytes:816 (816.0 b)

wifi0 Link encap:UNSPEC HWaddr 00-13-F7-40-25-D5-00-00-00-00-00-00-00-00-00 -00
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:150 errors:0 dropped:0 overruns:0 frame:15
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:13754 (13.4 KiB) TX bytes:838 (838.0 b)
          Interrupt:177 Memory:f8b80000-f8b90000

route -n after fresh boot:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 ath0

I.e. everything seems OK, but I cannot ping my router (10.0.0.1).

If I manually restart networking, i.e.
    /etc/init.d/networking restart

Everything seems to work just fine.

I have added VERBOSITY=1 to the beginning of /etc/wpa_supplicant/ifupdown.sh. Restarting networking then tells me that everything works well with wpa_supplicant. However, redirecting the output to a file doesn't work (not even when grabbing both stdout and stderr), so I can't post the output here.

/etc/network/interfaces:
    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto ath0
    iface ath0 inet static
            wpa-driver wext
            wpa-ssid mynetwork
            wpa-passphrase verysecret
            wpa-key-mgmt WPA-PSK
            wpa-pairwise TKIP CCMP
            wpa-group TKIP CCMP
            wpa-proto WPA RSN
            address 10.0.0.3
            netmask 255.255.255.0
            gateway 10.0.0.1
            dns-nameservers 10.0.0.1

I'm stuck here... How do I debug and diagnose wpa_supplicant problems during boot??

Also, here is iwconfig output:

iwconfig after fresh boot:
ath0 IEEE 802.11g ESSID:""
          Mode:Managed Channel:0 Access Point: Not-Associated
          Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=0/3
          Retry:off RTS thr:off Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
          Rx invalid nwid:21 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

iwconfig after /etc/init.d/networking restart:
ath0 IEEE 802.11g ESSID:"mynetwork"
          Mode:Managed Frequency:2.412 GHz Access Point: 00:18:39:C0:20:35
          Bit Rate:48 Mb/s Tx-Power:18 dBm Sensitivity=0/3
          Retry:off RTS thr:off Fragment thr:off
          Encryption key:SO-VERY-SECRET Security mode:restricted
          Power Management:off
          Link Quality=57/94 Signal level=-38 dBm Noise level=-95 dBm
          Rx invalid nwid:62 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I can see in 'ps' that wpa_supplicant is running after boot.

BTW, access point is a Linksys WRT54GL running OpenWRT RC5, which works perfectly with other computers (Linux and Windows).

Revision history for this message
Einar M Råberg Rosenvinge (einarmr) wrote :

This issue has also been confirmed by other users, see
http://www.ubuntuforums.org/showpost.php?p=1351902&postcount=2

The user in this forum post created a trivial script that simply restarts networking during boot.

Revision history for this message
Einar M Råberg Rosenvinge (einarmr) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

I can confirm this as well.

Revision history for this message
kelmo (kelrin) wrote :

Another similar report[1] is not specific to wpasupplicant/ifupdown integration, but seems more like a subtle breakage in the way networking is started on edgy.

[1] https://launchpad.net/distros/ubuntu/+bug/50099

Revision history for this message
rysiek (mikiwoz) wrote :

The problem here is that - as it seems - some Access Points, routers, etc., seem to give incorrect DNS-server IPs to non-windows clients (i.e. under windows DHCP is working fine, the lease is acquired and the DNS nameserver IPs are gotten - and they actually work, under linux - on the very same machine - DHCP leases are acquired, DNS nameserver IPs are gotten, but they *don't* work: one can ping 195.114.161.61, but not www.google.pl).

I would like to suggest a work-around for this:
check this page out - http://www.opendns.com/, especially thsi sub-page:
http://www.opendns.com/start/

Why not add to the default /etc/dhcp3/dhclient.conf file a single line:
prepend domain-name-servers 208.67.220.220, 208.67.222.222;

(it has to be prepend, not append, as the DNS server IP gotten through DHCP sometimes works, but returns invalid IPs for some hosts, like en.archive.ubuntu.com)

This way, even if DNS nameservers supplied by DHCP server are bogus, there will always be two working DNS nameservers available.

It definetely solved the problem for me and my friend.

Revision history for this message
Olivier Mengué (dolmen) wrote :

This seems to be a duplicate of bug #50099.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.