Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 02-24-2007, 02:51 AM   #1
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Wireless won't connect at boot

Kubuntu 6.06.1 on a sony laptop. Generally very satisfactory, but I'd like to have the wireless connection made at boot.

When I had it set up with a cabled connection, all was well, but now I have gone wireless.

My chipset uses ipw2200, and works fine (even with WPA!).

Originally, I thought it was going wrong because eth0 (wired) was also being "brought up", but it was not physically connected. So I disabled eth0 at boot.

My modem/router/switch is at, and I have a static IP of

From a cold boot, there is no wireless connection. Information follows:
root@vaio:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:16:6F:41:24:CE
          inet addr:  Bcast:  Mask:
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1538 errors:0 dropped:0 overruns:0 frame:0
          TX packets:462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:217 Base address:0x6000 Memory:b0006000-b0006fff

lo        Link encap:Local Loopback
          inet addr:  Mask:
          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:721 (721.0 b)  TX bytes:721 (721.0 b)
It looks OK, but doesn't work. I can't even ping the router:
root@vaio:~# ping
PING ( 56(84) bytes of data.
From icmp_seq=3 Destination Host Unreachable
From icmp_seq=4 Destination Host Unreachable

--- ping statistics ---
5 packets transmitted, 0 received, +2 errors, 100% packet loss, time 4003ms, pipe 2

root@vaio:~# route
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *            U     0      0        0 eth1
default         UG    0      0        0 eth1
If I bring eth1 down then up again, either through the Network Settings GUI or like this, it works:
root@vaio:~# ifdown eth1
root@vaio:~# ifup -v eth1
Configuring interface eth1=eth1 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: ctrl_interface=/var/run/wpa_supplicant
wpa_supplicant: guessing wpa-driver type of "wext" for eth1
wpa_supplicant: /sbin/wpa_supplicant -B -P /var/run/ -i eth1 -C /var/run/wpa_supplicant -D wext
Starting /sbin/wpa_supplicant...
wpa_supplicant: ctrl_interface socket located at /var/run/wpa_supplicant/eth1
wpa_supplicant: configuring new network block "0"wpa_supplicant: wpa-ssid : OK
wpa_supplicant: wpa-passphrase : OK
wpa_supplicant: enabling network 0 : OK

ifconfig eth1 netmask broadcast up
 route add default gw  eth1
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
root@vaio:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface        *            U     0      0        0 eth1
default         www.routerlogin         UG    0      0        0 eth1
root@vaio:~#  ping -c 1
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=238 time=26.8 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 26.843/26.843/26.843/0.000 ms
My /etc/network/interfaces file:
auto lo
iface lo inet loopback

iface eth0 inet static

auto eth1
iface eth1 inet static
wpa-passphrase issecret
wpa-ssid Routerssid
wireless-channel 11

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp

What am I doing wrong? Why won't eth1 come up at boot?
And where did "www.routerlogin" in the route table come from?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question. How to connect to wireless on boot? Devileyezz *BSD 9 01-06-2007 12:43 AM
Can only connect to internet if 1st boot into XP then restart & boot into Suse 10.1 axarq Linux - Networking 6 08-03-2006 08:33 PM
I can't connect to my wireless AP in FC5, why am I unable to activate my wireless. ruggersway Linux - Wireless Networking 1 05-09-2006 03:58 PM
Wireless On Boot Connect aeuzent Ubuntu 1 09-11-2005 11:00 AM

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration