You are not logged in.

#1 2007-08-08 04:56:52

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

What's wrong with my iwconfig?

Hi,
Newbie needing help with wireless please.
Running wifi-radar as root tells me I'm connected to my Netgear router's ip but it seems that doesn't mean I'm connected to the net does it? When I go unwired I'm not connected.
Here is result of iwconfig.
Using a Thinkpad T61 with the 4965 AGN card

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"Netgear"
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Encryption key:6C61-6E61-32
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Thanks, wishing I had a bigger brain hmm


bebop lives

Offline

#2 2007-08-08 05:00:42

cycle
Member
From: Australia
Registered: 2007-01-21
Posts: 42

Re: What's wrong with my iwconfig?

try issuing a dhcp request and see if that works

Offline

#3 2007-08-08 05:11:59

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

Thanks cycle,Is this what you meant

# dhclient wlan0
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/wlan0/00:13:e8:21:fd:f1
Sending on   LPF/wlan0/00:13:e8:21:fd:f1
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
SIOCADDRT: File exists
bound to 192.168.0.11 -- renewal in 37957 seconds.


bebop lives

Offline

#4 2007-08-08 05:21:12

cycle
Member
From: Australia
Registered: 2007-01-21
Posts: 42

Re: What's wrong with my iwconfig?

well that will do wink

can you get to something outside your network now ?

Offline

#5 2007-08-08 05:53:16

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

cycle wrote "can you get to something outside your network now ?"

No, not if I remove the blue wire smile
Even though wifi-radar says i'm connected.

Thanks


bebop lives

Offline

#6 2007-08-08 06:05:24

cycle
Member
From: Australia
Registered: 2007-01-21
Posts: 42

Re: What's wrong with my iwconfig?

hrrmm, do you have a gateway set in your rc.conf ?

something like ...
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

and just to make sure, your essid and network key are right ? i just noticed something a little strange in your original post, see my iwconfig below shows link status (quality, sig level, noise level), the one you posted are all at 0.


          wlan0     IEEE 802.11b  ESSID:"home" 
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:02:6F:30:05:B2   
          Bit Rate=11 Mb/s   Tx-Power:0 dBm   Sensitivity=0/3 
          RTS thr:off   Fragment thr:off
          Encryption key:****-****-**[2]   Security mode:restricted
          Power Management:off
          Link Quality:54/100  Signal level:-61 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Last edited by cycle (2007-08-08 06:10:36)

Offline

#7 2007-08-08 06:08:07

veek
Member
Registered: 2006-03-10
Posts: 167

Re: What's wrong with my iwconfig?

What's the output from the "route" command?

if the "default" line shows eth0 (or whatever your wired interface was) in the Iface column, then arch
is still trying to send your packets through that interface even though you disconnected the wire.

from your output:
DHCPACK from 192.168.0.1
SIOCADDRT: File exists

That last line shows it probably tried to add an entry for the default gateway but failed because there
already is an entry for your wired connection


Try doing as root

route del default

and then rerunning dhclient for the wireless connection

Last edited by veek (2007-08-08 06:12:41)

Offline

#8 2007-08-08 06:37:55

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
I notice the exclamation point ! before gateway,  should it be there? I didn't put it there.

Route before 'route del default'

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
default         www.routerlogin 0.0.0.0         UG    0      0        0 eth0

Route after 'route del default'

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0# route

Then I lost wired connection so I did dhclient wlan0 and got it back.
Still no wireless.

smile











smile


bebop lives

Offline

#9 2007-08-08 08:24:18

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: What's wrong with my iwconfig?

Hi,

As root (and after configuring your wireless settings), try to:

ifconfig eth0 down
ifconfig wlan0 UNUSED_IP_FROM_NETWORK --> Ex: ifconfig wlan0 192.168.0.50
route add default gw ROUTER_IP --> Ex: route add default gw 192.168.0.1
ping ROUTER_IP --> Ex: ping 192.168.0.1

If the router responds, then you are connected to your home network.
Now:
vi /etc/resolv.conf --> Add your dns to it ("nameserver DNS_IP", or if your router as a dns server: "nameserver ROUTER_IP" --> Ex: nameserver 192.168.0.1)

Now try to:
ping 64.233.183.104
ping www.google.com

Hope it helps!

Last edited by DkSoul (2007-08-08 08:29:39)

Offline

#10 2007-08-08 09:05:21

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: What's wrong with my iwconfig?

Remove the exclamation mark in front of gateway.  It is there by default.

Offline

#11 2007-08-08 10:31:21

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

Thanks for all your help, I appreciate your time and expertise,
I did all you recommended but can still cannot get past the router with wireless.
nameserver 192.168.0.1 is in /etc/resolv.conf
I took out the ! in front of gateway in /etc/rc.conf

iwconfig now is this:

  # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"Netgear" 
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:18:4D:49:8C:20   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B e my head 
          Encryption key:off
          Link Quality=93/100  Signal level=-26 dBm  Noise level=-127 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon: 0

I'll leave it with you guys. It's all above my head but I think we/you are close smile


bebop lives

Offline

#12 2007-08-08 11:15:44

calef13
Member
Registered: 2007-06-10
Posts: 142

Re: What's wrong with my iwconfig?

I think DkSoul forgot to add that after you have followed his instructions you should do

ifconfig wifi0 up

else you card won't be switched back on.

Can you tell us your router's local/private IP?

Also I had a little trouble getting my card to connect to wireless routers, a result of ignorance, but the following works for my ipw3945:

iwconfig eth1 essid "MY_ESSID_HERE"
dhcpcd eth1

You could also try downloading and using KWirelessManager I think it's called which is supposed to be very good.

Calef13

Offline

#13 2007-08-08 11:42:59

mridc
Member
Registered: 2007-08-08
Posts: 21

Re: What's wrong with my iwconfig?

calef13 wrote:

*snip*
You could also try downloading and using KWirelessManager I think it's called which is supposed to be very good.

I'm using the iwlwifi set of drivers with the NetworkManager /knetworkmanager combo, though this is on a 3945ABG and not the 4965. Works like a charm for me.

Offline

#14 2007-08-08 11:59:56

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

Did all that thanks calef13.
No difference.
wlan0     IEEE 802.11g  ESSID:"Netgear" 
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:18:4D:49:8C:20   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Encryption key:off
          Link Quality=92/100  Signal level=-22 dBm  Noise level=-127 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

I've also tried KwifiManager. It scans but can't find the network.
-------------------------
mridc, how do I get the iwlwifi set of drivers? Are they very hard to install for a newbie?
Thanks
smile


bebop lives

Offline

#15 2007-08-08 12:13:03

mridc
Member
Registered: 2007-08-08
Posts: 21

Re: What's wrong with my iwconfig?

Well, depends. I still fail at installing the new 0.1.x ones (probably due to the way kernels are installed on Arch). the 1.0.1 drivers are available through pacman though. Just do a pacman -S iwlwifi and that should get you started.

I don't really have any experience with networkmanager in console mode (I just set up rc.conf, a network-profile and wpa_supplicant.conf to handle it until I had KDE up and running), but if you're already running KDE, it's just a matter of:
pacman -S networkmanager knetworkmanager

I'm not quite into Arch yet, so this is mostly from aimlessly toying with the rc.conf until everything worked...:
- Delete the network-profile again and the reference to it in rc.conf
- Tell rc.conf to not load the network, should look something like this

INTERFACES=(lo !eth0 !wlan0)
...
DAEMONS=( <your other daemons> !network dhcdbd networkmanager)

Make sure your user is in the network group, otherwise knetworkmanager will not connect to any network.

To make it autostart, simply do a:
ln -s /opt/share/kde/apps/knetworkmanager.desktop ~/.kde/autostart/knetworkmanager.desktop

Don't really know if this is correct, since I'm on a Windows machine at work right now. But it should all be there somewhere (hopefully big_smile )

Offline

#16 2007-08-08 13:09:27

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: What's wrong with my iwconfig?

drum,

Can you ping the router?
If not, do you have WEP/WPA/... enabled on the router? If so, have you configure it in linux?
Does your router have a MAC filter? Is it enabled? If so, did you give permission to your MAC address in the router?

Offline

#17 2007-08-08 13:24:19

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

Can you ping the router?  yes
WEP/WPA/ not enabled on router
Does your router have a MAC filter? No

Cheers DkSoul


bebop lives

Offline

#18 2007-08-08 13:29:51

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: What's wrong with my iwconfig?

when you are connected to wireless try `ifconfig eth0 down`

Offline

#19 2007-08-08 13:33:20

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

mridc
I'll check pacman -S iwlwifi tomorrow--need sleep.

Make sure your user is in the network group

Yes it is.

I'm not quite into Arch yet, so this is mostly from aimlessly toying with the rc.conf until everything worked...:
- Delete the network-profile again and the reference to it in rc.conf
- Tell rc.conf to not load the network, should look something like this

    INTERFACES=(lo !eth0 !wlan0)
    ...
    DAEMONS=( <your other daemons> !network dhcdbd networkmanager)

I did this but not sure how to delete the network-profile.
BTW I'm using Gnome.

ln -s /opt/share/kde/apps/knetworkmanager.desktop ~/.kde/autostart/knetworkmanager.desktop

didn't work for me.

Cheers:)


bebop lives

Offline

#20 2007-08-08 13:48:05

DkSoul
Member
Registered: 2005-11-24
Posts: 34

Re: What's wrong with my iwconfig?

If you can ping the router, try the following:
Make sure the router is the default gateway: route add default gw ROUTER_IP --> Ex: route add default gw 192.168.0.1
Trace the ping request to see where it stops: traceroute 64.233.183.104

Offline

#21 2007-08-08 14:22:34

mridc
Member
Registered: 2007-08-08
Posts: 21

Re: What's wrong with my iwconfig?

drum wrote:

I did this but not sure how to delete the network-profile.

If you haven't set one up, don't worry about this. I've just found it easier to reference a network profile (under /etc/network-profiles/) to manage eth0 and wlan0 connections.

BTW I'm using Gnome.

Oh, silly me. I've assumed you were on KDE. In order to get it working you'd "need" nm-applet instead of knetworkmanager. Knetworkmanager would probably work, but nm-applet is the "Gnome thing" I suppose.

From what I understand, it's important to make sure that the system doesn't fire up the network interfaces you want by itself, so the NetworkManager daemon can access them. So if you set INTERFACES=(lo !eth0 !wlan0) and DAEMONS=(... !network dhcbcd networkmanager...), you should get some results.

In Gnome, use the command "nm-applet --sm-disable" to start the NetworkManager frontend. You should have a little icon in your systray, usualy indicating that you don't have a wired connection. Right-click, choose your access point and enter your password.

Anyway, good night to you, and good luck tomorrow morning wink

Offline

#22 2007-08-09 07:25:44

drum
Member
From: Australia
Registered: 2007-04-06
Posts: 128

Re: What's wrong with my iwconfig?

Hi Guys,
I've had to hold off on the wireless setup because I'm getting lots of hard lockups and have to switch off every time.
I'm going to try reinstalling and start over again. Things were a lot easier on my old T30.  smile
Thanks for all your time and expertise.
I'll come back to your posts later
Regards
drum


bebop lives

Offline

Board footer

Powered by FluxBB