View previous topic :: View next topic |
Author |
Message |
zaphyr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1023022011436b958ca9064.png)
Joined: 07 Dec 2004 Posts: 312 Location: Copenhagen, Denmark
|
Posted: Sun Jul 30, 2006 9:58 pm Post subject: cannot get wireless LAN up [SOLVED] |
|
|
I have struggeled with this network for a while now, and have no clue what to do.
I have a Linksys WRT54GL router with DD/WRT firmware and a Linksys WPC54G PCMCIA card.
I just can not get connected, I can scan the network, and actually find 3 or 4 AP`s including my own, but can not connect.
This is my wpa_supplicant.conf
Quote: | ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
fast_reauth=1
network={
ssid="tuxwlan"
proto=WPA
psk="some-psk"
key_mgmt=WPA-PSK
pairwise=TKIP
scan_ssid=1
priority=1
} |
and my /etc/conf.d/net
Quote: | config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dndiswrapper"
config_wlan0=( "dhcp" )
dhcp_wlan0="nodns nontp nonis" |
_________________ emerge IQ
Last edited by zaphyr on Mon Jul 31, 2006 11:07 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
madams n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/24904450944ce337f8a73f.jpg)
Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 7:59 pm Post subject: |
|
|
I am using the same router/AP, but had no luck with the linksys wireless 'G" pcmcia cards
have you tried manually setting the values using 'iwconfig'? (this is part of the 'wireless-tools' package)
I would start by disabling all encryption/authenticaion on your access point (i.e. start simple) and seeing your results, if that works then you can get fancy...
I will tell you that the linksys cards can be a little difficult (at least they were in the past).
I ended using the Netgear WG511 802.11G card
Also have these running just fine:
Orinoco
Avaya
Lucent
Sorry wasn't more help. _________________ This post is worth exactly $0.02
/Always remember to 'pillage' before you 'plunder'/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zaphyr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1023022011436b958ca9064.png)
Joined: 07 Dec 2004 Posts: 312 Location: Copenhagen, Denmark
|
Posted: Mon Jul 31, 2006 8:00 pm Post subject: |
|
|
Please...help?
Should I drop wpa_supplicant and use wireless tools?...what impact would that have on my security?
Thanks _________________ emerge IQ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
madams n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/24904450944ce337f8a73f.jpg)
Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 8:11 pm Post subject: |
|
|
I am merely suggesting you drop the encryption and authenticaion stuff as a troubleshooting step not as the long term solution... i.e. if you get it working without, then you know the card is working and you have isolated the problem to your 'wpa' setup and config. _________________ This post is worth exactly $0.02
/Always remember to 'pillage' before you 'plunder'/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zaphyr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1023022011436b958ca9064.png)
Joined: 07 Dec 2004 Posts: 312 Location: Copenhagen, Denmark
|
Posted: Mon Jul 31, 2006 9:20 pm Post subject: |
|
|
I have tried without any security on the router, and configured wpa_supplicant with
Code: | network={
ssid="plaintext-test"
key_mgmt=NONE
} |
but no luck. The thing is that the card does scan the network and finds a few APs. It does not get any IP from the router though.
I dont know, but I have a feeling that there is something I have missed. I can find the router when scanning, but how do I connect to it....is there not a command or something I should type??
This is the result of a scan (tuxwlan is mine):
Code: | # iwlist wlan0 scanning
wlan0 Scan completed :
Cell 01 - Address: XX:XX:XX:XX:XX:XX
ESSID:"djurmo"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:0/100 Signal level:-91 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
Extra:atim=0
Cell 02 - Address: XX:XX:XX:XX:XX:XX
ESSID:"wireless_624"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:0/100 Signal level:-96 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0
Cell 03 - Address: XX:XX:XX:XX:XX:XX
ESSID:"tuxwlan"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-47 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
Extra:atim=0
Cell 04 - Address: XX:XX:XX:XX:XX:XX
ESSID:"default"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-84 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0
|
and here is my current /etc/conf.d/net
Code: | config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"
## This is for wireless tools
modules=( "iwconfig" )
config_wlan0=( "dhcp" )
key_tuxwlan="[1] s:XXXXXXXXXXXXXXXXXXXXXXX key [1] enc open"
|
_________________ emerge IQ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zaphyr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1023022011436b958ca9064.png)
Joined: 07 Dec 2004 Posts: 312 Location: Copenhagen, Denmark
|
Posted: Mon Jul 31, 2006 9:47 pm Post subject: |
|
|
oh yeah, I got it!
I used the command
Code: | iwconfig wlan0 essid tuxwlan key XXXXXXXXXXXXXXXXXXXXXXXXX |
and now iwconfig shows that I am connected
Code: | wlan0 IEEE 802.11g ESSID:"tuxwlan"
Mode:Managed Frequency:2.462 GHz Access Point: XX:XX:XX:XX:XX:XX
Bit Rate:54 Mb/s Tx-Power:25 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security mode:restricted
Power Management:off
Link Quality:100/100 Signal level:-51 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
I am still connected by wire on eth0 as well, so I have to disconnect it and see how this works. _________________ emerge IQ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
madams n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/24904450944ce337f8a73f.jpg)
Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 10:19 pm Post subject: |
|
|
as I said earlier, I have had no luck with the linksys wireless card.. That is why I bought the Netgear WG511to connect to my linysys router, Netgears are well supported. My linksys 802.11G card is gathering dust..
However the fact that you can scan indicates that at least you have the card working to a degree (i.e. you have eliminated pcmcia problems), so it looks like you have the 'wireless-tools' installed since I see you used 'iwlist', , with *all* encryption and auth turned off, put the AP into 'managed' mode (should have choices ad-hoc, managed, etc), make sure it has a unique 'essid' (i.e. don't leave it set to default of 'linksys')
at a root prompt type:
iwconfig wlan0 essid "essid_you_set_goes_here" mode managed # insert appropriate ethernet interface wlan0, eth0,eth1, etc.
rm -Rvf /var/lib/dhcpc # this will delete any old dhcp lease info, will speed up address assignement (i.e. dhcpcd will attempt to request its previously assigned address)
dhcpcd wlan0 # insert appropriate ethernet interface wlan0, eth0, eth1, etc
if you are using some other dhcp client (i.e. pump, etc), then adjust accordingly.
If you don't get an address, then I would attempt to verify the ability to connect to the AP/Router using another card that is known to work, or trying getting the card to work in a windows machine. i.e. just as an excercise to prove that the card and AP work at all.. nothing worse than chewing up a lot of time only to find out it was a hardware problem with the card or router.
just a little background on wireless networking, the process of scanning for available networks is quite different than initiating a session with the access point (i.e. attaching to the MAC layer, then initiating the DHCP process). Scanning is akin to putting the card in permisuous mode and just listening to see what AP's are in range (i.e. you are not attached to the network yet (i.e. OSI model layer 1 a.k.a MAC layer), you have to do that before you can start a layer 2/3 session a.k.a TCP/IP session (i.e. DHCP the address).
Personally, I don't use any of the wireless security (wep, wpa, etc), it is rather easy to hack (i.e. it only keeps honest people and rookies off your network). I limit access to my access points by explicitly listing the MAC addresses that are permitted to attach, and I VPN (blowfish cypto libs) all trafic traversing the wireless connection (much stronger encryption). While this is impractical to manage for a large wireless network, or a network that has lots of transient users on it, it serves my purposes well for home use.
Sorry I can't be more help.. There are lots of post on problems with Linksys wireless cards.. _________________ This post is worth exactly $0.02
/Always remember to 'pillage' before you 'plunder'/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
madams n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/24904450944ce337f8a73f.jpg)
Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 10:24 pm Post subject: |
|
|
w00t.. messages must have crossed while I was typing my response.. it looks like you are making progress..
I won't be able to help much with the wpa suplicant stuff, don't use it, but you seem to be on track.. at least you know the hardware is working... _________________ This post is worth exactly $0.02
/Always remember to 'pillage' before you 'plunder'/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zaphyr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1023022011436b958ca9064.png)
Joined: 07 Dec 2004 Posts: 312 Location: Copenhagen, Denmark
|
Posted: Mon Jul 31, 2006 11:03 pm Post subject: |
|
|
success!
everything is working with wireless tools now, so h... with wpa_supplicant
I am writing this post using the WLAN, created a small script that connects to the AP and fetches an IP from DHCP just to make things easier
Perhaps you should give your Linksys WLAN card another chance?
Thanks! _________________ emerge IQ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
madams n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/24904450944ce337f8a73f.jpg)
Joined: 31 Jul 2006 Posts: 30 Location: Charlotte, NC, USA
|
Posted: Mon Jul 31, 2006 11:27 pm Post subject: |
|
|
dusting the linksys card off right now
I've never bothered to automate bringing the wireless stuff online, I just do the same thing, put it all in a script and execute from there.. _________________ This post is worth exactly $0.02
/Always remember to 'pillage' before you 'plunder'/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|