LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-30-2006, 01:16 PM   #16
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15

o.k. I got WEP up and running, so I now have at least a little bit of protection.

Here again some outputs:

lspci -vv

0000:06:00.0 Network controller: Intersil Corporation Intersil ISL3890 [Prism GT /Prism Duette] (rev 01)
Subsystem: Netgear WG511 Wireless Adapter
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step ping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort - <MAbort- >SERR- <PERR-
Latency: 56 (2500ns min, 7000ns max), Cache Line Size: 0x03 (12 bytes)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 26000000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot +,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

dmesg

[ 5946.581210] NET: Registered protocol family 17
[ 5950.023442] ndiswrapper version 1.8 loaded (preempt=yes,smp=no)
[ 5950.118451] ndiswrapper: driver 2802w (SMC,04/29/2004, 3.0.11.1) loaded
[ 5950.119032] PCI: Enabling device 0000:06:00.0 (0000 -> 0002)
[ 5950.119158] PCI: Setting latency timer of device 0000:06:00.0 to 64
[ 5950.121005] ndiswrapper: using irq 11
[ 5952.333241] wlan0: vendor: 'SMC2802W 2.4GHz 54 Mbps Wireless PCI Adapter'
[ 5952.333262] wlan0: ndiswrapper ethernet device 00:0f:b5:27:cb:9f using driver 2802w, 1260:3890.5.conf
[ 5952.333363] wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA


iwconfig wlan0

ken@kenslaptop:~$ iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"privatnetz"
Mode:Managed Frequency:2.452 GHz Access Point: 00:12:17D:C8:E7
Bit Rate:54 Mb/s Tx-Power:32 dBm
RTS thr:2347 B Fragment thr:2346 B
Power Managementff
Link Quality:100/100 Signal level:-41 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


Now we just need to get WPA up and running.

What do we do?

Ken
 
Old 08-30-2006, 01:16 PM   #17
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
As the others have mentioned you should be good to go - once you configure your router and get passkey go to system/administration/networking and set up properties. Main thing to watch is key type - plain or hex , just make sure all settings match exactly. You may have to deactivate interface first and reboot but that's about it. Obviously little more work required for wpa but wep is a start.

Edit: Oops too late
 
Old 08-30-2006, 02:20 PM   #18
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
o.k. but is there any known tutorial for setting up the wg511 v3 made in china on ubuntu drapper, soI know what to put in the wpa_supplicant.conf and in /etc/network/interface ?

I would hate to put the wrong stuff in there and then have to reinstall again to have a clean system.

Thank`s a lot
Ken
 
Old 08-30-2006, 03:25 PM   #19
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
Try this - https://help.ubuntu.com/community/WifiDocs/WPAHowTo although can't vouch for it's effectiveness as haven't tried it myself. As an aside what I do now, after many broken systems, is use a rescue cd with partimage to backup my working distros onto free partition and dvd. Then if things go haywire I just restore the image and I'm left with a working system again.
 
Old 08-30-2006, 04:50 PM   #20
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
o.k. we are a bit further yet again.
after running this command
wpa_passphrase ESSID NetworkKey >> /etc/wpa_supplicant.conf
and this command
wpa_supplicant -Dprism54 -iwlan0 -c /etc/wpa_supplicant.conf -dd

I got a connection with wpa.
But as soon as I close the terminal, the connection is terminated.

I just had to change the drinver, since mine is ndiswrapper and the directory the wpa_supplicant.conf is at.
But it worked.

So, what do I do now?

The tutorial you linked, dosn`t really help, since ubuntu drapper ist really mentioned in terms of configuration.

Ken
 
Old 08-30-2006, 05:10 PM   #21
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
Have you tried the wpa_supplicant programme yet? (Substitute the prism part for ndiswrapper).

Then run the dhclient wlan0

See what happens...

Richard
 
Old 08-30-2006, 06:16 PM   #22
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
Again not having dabbled in it myself can only point to this http://packages.ubuntu.com/dapper/net/wpagui and rely on the blurb "A Qt-based application is available that might make configuration easier" being true!
 
Old 08-30-2006, 08:22 PM   #23
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by kdog
o.k. we are a bit further yet again.
after running this command
wpa_passphrase ESSID NetworkKey >> /etc/wpa_supplicant.conf
and this command
wpa_supplicant -Dprism54 -iwlan0 -c /etc/wpa_supplicant.conf -dd

I got a connection with wpa.
But as soon as I close the terminal, the connection is terminated.

I just had to change the drinver, since mine is ndiswrapper and the directory the wpa_supplicant.conf is at.
But it worked.
Excellent, you are almost there then. If you run the same wpa_supplicant command with -B instead of -dd, it will background the process.

You should also look at networkmanager (It is in the repository). This should allow you to attach automatically. I can't remember though in Ubuntu if you have to comment out the interfaces within /etc/network/interfaces in order for network manager to take control from ifup/ifdown.


I hope this helps

Richard
 
Old 08-31-2006, 01:08 AM   #24
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
o.k. but could you give me an example, on how to enter it into wich scripts?

what I have tried before, that didn`t work is the following:

I will leave away the parts about ndiswrappeiong and blacklisting, since we know, the card works.

according to this turtorial (it is in german), I modified some scripts as followed:
http://wiki.ubuntuusers.de/WLAN/Konfiguration


/etc/networking/interface

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
post_up wpa_supplicant -Dwext -iwlan0 -c/etc/wpasupplicant/wpa_supplicant.conf -Bw
#post-up sleep 5
post-down killall wpa_supplicant
post-down rm -r /var/run/wpa_supplicant/


and /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

network={
ssid="privatnetz"
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
#psk="xxxxxxxx" (den sag ich nicht)
psk=f2b60a50a6e157a1d09a4d51ff6dbb96089efedd18cc2a870e915068f07c6283
}


At the moment, these files on the newly installed system look as followed:

/etc/networkiing/interface

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wireless-essid privatnetz
wireless-key B719A7B92CEC5EE66FFAC5669B


auto eth1

and /etc/wpa_supplicant/wpa_supplicant.conf

network={
ssid="privatnetz
psk="xxxxxxx" (my key)
priority=5
}


so, regarding to the commands we entered yesterday night, what would I have to include or change in the two scrips?

What I have just done, but I can first check if it works this evenning, when I get back home, I changed the interface sript from dhcp to static as followed:

auto wlan0
iface wlan0 inet static
adress 192.168.253.102
netmask 255.255.255.0
gateway 192.168.253.1
wpa_supplicant -Dndiswrapper -iwlan0 -c /etc/wpa_supplicnat/wpa_supplicant.conf -B
wireless-essid privatnetz
wireless-key B719A7B92CEC5EE66FFAC5669B


and I added the line: ctrl_interface=/var/run/wpa_supplicant to /etc/wpa_supplicant/wpa_supplicant.conf

Would this be about the right way to do it?


Thanks
Ken

Last edited by kdog; 08-31-2006 at 05:46 AM.
 
Old 08-31-2006, 07:15 AM   #25
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
In the wpa_supplicant --help and in the wpa_supplicant man pages, they mention the wpi_cli.
But when I run the command wpa_cli command, I only get told: Could not connect to wpa_supplicant - re-trying

Can it be, that the wpa_supplicant is not running?

I don`t understand that.

Ken
 
Old 08-31-2006, 07:45 AM   #26
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
I think you have to have wpa_supplicant running as stated before, and then run wpa_cli -i wlan0

I do know that it doesn't work unless you have specified;

ctrl_interface=/var/run/wpa_supplicant

in your /etc/wpa_supplicant.conf file.

As for your scripts. All I did was to install networkmanager and comment out any reference to a lan connection in /etc/network/interfaces

I'm not sure what the other stuff is. I don't think you need to specify it.

Richard
 
Old 08-31-2006, 08:00 AM   #27
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
hi,

I have ctrl_interface=/var/run/wpa_supplicant im m y/etc/network/interfaces , but I still get that message from wpa_cli.

When I ran the command:
wpa_passphrase ESSID NetworkKey >> /etc/wpa_supplicant.conf

the key was, as it seems, entered in the conf file, as you can see in the output.

When I ran this command:
wpa_supplicant -Dprism54 -iwlan0 -c /etc/wpa_supplicant.conf -dd

WPA came up and it worked, but I didn`t any prompt in the terminal window.
First after ctrl+V I got my prompt back, but the network connection was terminated.

What exactly should I do now?

At the moment, my scripts are as followed:

wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

network={
ssid="privatnetz
psk="xxxxxxx" (my key)
priority=5
}

and /etc/network/interfaces

auto wlan0
iface wlan0 inet static
adress 192.168.253.102
netmask 255.255.255.0
gateway 192.168.253.1
wpa_supplicant -Dndiswrapper -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
wireless-essid privatnetz
wireless-key B719A7B92CEC5EE66FFAC5669B


I`m sorry to ask so much, but I am not really understanding, why all the tutorials wont work.

Ken

Last edited by kdog; 08-31-2006 at 08:02 AM.
 
Old 08-31-2006, 08:08 AM   #28
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
No worries,

I'll go through the steps that got mine working.

1) WPA_PASSPHRASE ESSID NetworkKey >> /etc/wpa_supplicant.conf
2) Install networkmanager (There may also be gnome-networkmanager i think)
3) Comment out all entries relating to wlan0 from your /etc/network/interfaces. You have put static entries in. Remove them.
Reboot.

Should be all there is to it.
 
Old 08-31-2006, 08:14 AM   #29
kdog
LQ Newbie
 
Registered: Aug 2006
Posts: 22

Original Poster
Rep: Reputation: 15
It`ll be a few hours, uuntill I can do it, since I`m still in the office.

But yesterday, when retried
WPA_PASSPHRASE ESSID NetworkKey >> /etc/wpa_supplicant.conf

I get an access denied

I would like to have it up and running during boot, so I don`t have to enter any commands after starting up the system.

What do you mean with "comment out all entries with wlan0 in interfaces"?

Ken

Last edited by kdog; 08-31-2006 at 08:15 AM.
 
Old 08-31-2006, 08:37 AM   #30
youngri
Member
 
Registered: Jun 2003
Location: Sydney Australia
Distribution: SUSE / PCLinuxOS / MEPIS
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by kdog
But yesterday, when retried
WPA_PASSPHRASE ESSID NetworkKey >> /etc/wpa_supplicant.conf

I get an access denied
You are not doing it as root.

Quote:
I would like to have it up and running during boot, so I don`t have to enter any commands after starting up the system.
Thats the point of network manager.

Quote:
What do you mean with "comment out all entries with wlan0 in interfaces"?
Try just renaming it to something else for now.
 
  


Reply



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
Fedora Core 5 and Netgear WG511 v3 Made in China kdog Linux - Hardware 1 08-25-2006 08:19 AM
Netgear wg511 Made in China v3 wireless card r_f_k_c Linux - Wireless Networking 4 02-12-2006 05:19 PM
wg511Tv2 (made in China) on ubuntu linux cxy0481 Linux - Wireless Networking 1 10-29-2005 05:29 PM
Powerbook G3 + Netgear WG511 on Ubuntu jarnold_lq Linux - Laptop and Netbook 0 09-07-2005 12:04 AM
wg511 (china) ndiswrapper el_pajaro! Linux - Wireless Networking 5 05-16-2005 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration