Wireless Network Adapter Active But No Internet

Issues related to configuring your network
Post Reply
zincoxide
Posts: 8
Joined: 2007/05/17 05:03:44

Wireless Network Adapter Active But No Internet

Post by zincoxide » 2007/05/22 04:26:23

I've finally (after a full week) gotten my wireless adapter in in the Network Configuration box. It shows as active (only after I set a static IP) however I can't get on the net.

I have tried to ping the Rounter but it doesn't work. It says "Host unreachable".

The only thing that I can think is the problem is the fact that I have my router is setup with WEP and a passphrase. Something I read said that passphases aren't supported by CentOS.

Can someone help me get this think working please?

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Wireless Network Adapter Active But No Internet

Post by Lenard » 2007/05/22 11:47:23

Verify you can get a working connection first by turning off WEP on the router.

Insure that your router and wireless device are using the same 64 or 128-bit encryption, Linux defaults to 128-bit encryption.

Verify that a /etc/sysconfig/network-scripts/key- file exists and exactly matches the hex key of the wireless router or the key is modified correctly to for the passphrase: KEY=s:mypassphrasehere

zincoxide
Posts: 8
Joined: 2007/05/17 05:03:44

Re: Wireless Network Adapter Active But No Internet

Post by zincoxide » 2007/05/22 21:47:13

How do I change the level of encryption in CentOS? (ie. 64 or 128)

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Wireless Network Adapter Active But No Internet

Post by Lenard » 2007/05/23 01:56:34

Review: man iwconfig
Please check first by:

iwlist scan
iwlist key

I forgot to answer you concern, yes Linux supports WEP encryption and passphrases.

[code]
$ iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:0A:E9:09:EC:60
ESSID:"MyRouter"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.422 GHz (Channel 3)
Quality:81/100 Signal level:-44 dBm Noise level:-96 dBm
Encryption key:on
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:bcn_int=1000
Extra:atim=0

$ sudo iwlist wlan0 key
wlan0 2 key sizes : 40, 104bits
4 keys available :
[1]: 455C-5F1F-694E-0921-FDD8-3067-35 (104 bits)
[2]: off
[3]: off
[4]: off
Current Transmit Key: [1]
Security mode:restricted
Authentication capabilities :
WPA
WPA2
CIPHER TKIP
CIPHER CCMP
Current key_mgmt:0x0
Current cipher_pairwise:0x0
Current cipher_group:0x0
[/code]

zincoxide
Posts: 8
Joined: 2007/05/17 05:03:44

Re: Wireless Network Adapter Active But No Internet

Post by zincoxide » 2007/05/23 14:24:37

I reviewed: man iwconfig

I can set the key s: using this command however, I couldn't find anything that said how to change from 128 to 40bit. Currently, my router is set to 40bit so I think that is the problem.

Is there a command to change to 40bit?

zincoxide
Posts: 8
Joined: 2007/05/17 05:03:44

Re: Wireless Network Adapter Active But No Internet

Post by zincoxide » 2007/05/23 16:48:21

Thanks for your help!!!

I figured out that my router is set to Channel 4 and my setup in CentOS was set to channel 11. After changing my setup to be the same as the router I got it working.

Question: During boot when it tries to configure eth1 it says "SET failed on device eth1: Invalid argument." But it still connects and gets me an IP address.

Does anyone know why this is?

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Wireless Network Adapter Active But No Internet

Post by Lenard » 2007/05/23 21:09:49

[quote]
zincoxide wrote:
Thanks for your help!!!

I figured out that my router is set to Channel 4 and my setup in CentOS was set to channel 11. After changing my setup to be the same as the router I got it working.
[/quote]

Good, I'm glad you figured it out.

[quote]
Question: During boot when it tries to configure eth1 it says "SET failed on device eth1: Invalid argument." But it still connects and gets me an IP address.

Does anyone know why this is?[/quote]

Known bug with the wireless-tools nothing to worry about. One can edit the /etc/sysconfig/network-scripts file if this bothers you, sample below;

TYPE=Wireless
DEVICE=eth1
HWADDR=
BOOTPROTO=
IPADDR=XXX.XXX.XXX.XX
NETMASK=255.255.255.0
GATEWAY=
DOMAIN=
ONBOOT=yes
ONHOTPLUG=yes
USERCTL=yes
IPV6INIT=no
PEERDNS=no
ESSID=
CHANNEL=4
MODE=
RATE=

Also you can check the /etc/sysconfig/network-scripts/keys-eth1 file for your passphrase;

KEY=s:my_pass_phrase_here

Post Reply