LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

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

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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 10.0.0.2, and I have a static IP of 10.0.0.8

From a cold boot, there is no wireless connection. Information follows:
Code:
root@vaio:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:16:6F:41:24:CE
          inet addr:10.0.0.8  Bcast:10.255.255.255  Mask:255.0.0.0
          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: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:721 (721.0 b)  TX bytes:721 (721.0 b)
It looks OK, but doesn't work. I can't even ping the router:
Code:
root@vaio:~# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
From 10.0.0.8 icmp_seq=3 Destination Host Unreachable
From 10.0.0.8 icmp_seq=4 Destination Host Unreachable

--- 10.0.0.2 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
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
default         10.0.0.2        0.0.0.0         UG    0      0        0 eth1
If I bring eth1 down then up again, either through the Network Settings GUI or like this, it works:
Code:
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/wpa_supplicant.eth1.pid -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 10.0.0.8 netmask 255.0.0.0 broadcast 10.255.255.255 up
 route add default gw 10.0.0.2  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
10.0.0.0        *               255.0.0.0       U     0      0        0 eth1
default         www.routerlogin 0.0.0.0         UG    0      0        0 eth1
root@vaio:~#  ping -c 1 google.co.uk
PING google.co.uk (72.14.221.104) 56(84) bytes of data.
64 bytes from fg-in-f104.google.com (72.14.221.104): icmp_seq=1 ttl=238 time=26.8 ms

--- google.co.uk 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
root@vaio:~#
My /etc/network/interfaces file:
Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

iface eth0 inet static
broadcast 10.255.255.255
address 10.0.0.8
netmask 255.0.0.0
gateway 10.0.0.2

auto eth1
iface eth1 inet static
broadcast 10.255.255.255
address 10.0.0.8
netmask 255.0.0.0
gateway 10.0.0.2
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?
 
  


Reply


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:28 AM.

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