LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   wireless won't connect to password-protected networks (http://www.linuxquestions.org/questions/linux-wireless-networking-41/wireless-wont-connect-to-password-protected-networks-752745/)

qianian 09-04-2009 03:15 PM

wireless won't connect to password-protected networks
 
I want to connect to a password-secured wireless network. I can connect to unsecured networks no problem.

I'm running Ubuntu Hardy 8.10 on a lenovo Thinkpad R91i.

In the notification area, it detects many wireless networks and shows that it has connected to the one I want (80-100% signal). I get no more prompts for the password after I enter it the first time. I've tried unchecking Wired under Network and both enable Roaming and specified the network I want to use under Wireless.

When I ping, though, I get no connection. I've pasted some details below. Fir iwconfig, I tried the s: prefix, which returned the command line but still didn't get me connected. The man page reads "Passphrase is currently not supported" so does that mean iwconfig is no help?

Please understand I'm relatively new and need some English thrown in to explain the commands. Thank you all!

root@Stonau:/home/qian# iwlist eth1 scanning
eth1 Scan completed :
Cell 01 - Address: 00:19:E3:32:79:09
ESSID:"Beautiful"
Mode:Master
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=49/100 Signal level=-79 dBm Noise level=-95 dBm
Encryption key:on
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=000000144e5b2d65
root@Stonau:/home/qian# iwconfig eth1 essid "Beautiful" key "fakepasscode"
Error for wireless request "Set Encode" (8B2A) :
invalid argument "fakepasscode".
qian@Stonau:~$ sudo lshw -C network
*-network
description: Wireless interface
product: PRO/Wireless 3945ABG Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wmaster0
version: 02
serial: 00:1b:77:b0:cd:f8
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list logical ethernet physical wireless
configuration: broadcast=yes driver=iwl3945 ip=10.0.1.4 latency=0 module=iwl3945 multicast=yes wireless=IEEE 802.11g
*-network
description: Ethernet interface
product: NetLink BCM5787M Gigabit Ethernet PCI Express
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 02
serial: 00:15:58:c8:c6:03
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.86 ip=10.0.1.3 latency=0 link=no module=tg3 multicast=yes port=twisted pair
qian@Stonau:~$ sudo lshw -C network
*-network
description: Wireless interface
product: PRO/Wireless 3945ABG Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wmaster0
version: 02
serial: 00:1b:77:b0:cd:f8
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list logical ethernet physical wireless
configuration: broadcast=yes driver=iwl3945 ip=10.0.1.4 latency=0 module=iwl3945 multicast=yes wireless=IEEE 802.11g
*-network
description: Ethernet interface
product: NetLink BCM5787M Gigabit Ethernet PCI Express
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: eth0
version: 02
serial: 00:15:58:c8:c6:03
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.86 ip=10.0.1.3 latency=0 link=no module=tg3 multicast=yes port=twisted pair
qian@Stonau:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

eth1 IEEE 802.11g ESSID:"Beautiful" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: 00:19:E3:32:79:09
Bit Rate=54 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Power Management:off
Link Quality=63/100 Signal level=-69 dBm Noise level=-91 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

qian@Stonau:~$ sudo dhclient eth1
There is already a pid file /var/run/dhclient.pid with pid 8077
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/eth1/00:1b:77:b0:cd:f8
Sending on LPF/eth1/00:1b:77:b0:cd:f8
Sending on Socket/fallback
DHCPREQUEST of 10.0.1.4 on eth1 to 255.255.255.255 port 67
DHCPACK of 10.0.1.4 from 10.0.1.1
bound to 10.0.1.4 -- renewal in 6859 seconds.
qian@Stonau:~$ ping google.com
ping: unknown host google.com
qian@Stonau:~$ ping 82.211.81.158
PING 82.211.81.158 (82.211.81.158) 56(84) bytes of data.
From 10.0.1.3 icmp_seq=1184 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1185 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1186 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1187 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1189 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1190 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1191 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1192 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1193 Destination Host Unreachable
From 10.0.1.3 icmp_seq=1194 Destination Host Unreachable

root@Stonau:/home/qian# lspci -v
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
Subsystem: Intel Corporation Unknown device 1010
Flags: bus master, fast devsel, latency 0, IRQ 217
Memory at df6ff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
Capabilities: [e0] Express Legacy Endpoint IRQ 0

estabroo 09-05-2009 07:54 AM

for an ascii password you need to put an s: in front of it

Quote:

root@Stonau:/home/qian# iwconfig eth1 essid "Beautiful" key "fakepasscode"
iwconfig eth1 essid "Beautiful" key "s:fakepasscode"

michaelk 09-05-2009 08:24 AM

It looks like you are using WPA encryption which iwconfig can only handle WEP keys. WPA requires wpa_supplicant.
What desktop are you running? Do you have network manager installed? It is a GUI wireless configuration tool.

qianian 09-10-2009 09:50 PM

I'm using the Network Administration Tool on Hardy.

I believe Gnome is the default, but how do I find out?

qianian 09-10-2009 09:51 PM

estabroo, I tried that and no beans. I'm sure it's a passcode I'm dealing with. Thanks anyway.

qianian 09-23-2009 05:43 PM

To follow up on this problem, I upgraded to Jaunty and have no problem connecting with WEP.

michaelk 09-23-2009 06:26 PM

Thanks for the update. Be sure to make this thread as solved.


All times are GMT -5. The time now is 06:22 AM.