LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Netgear wg311 v2 help (https://www.linuxquestions.org/questions/linux-wireless-networking-41/netgear-wg311-v2-help-201967/)

drowning 07-06-2004 08:56 PM

Netgear wg311 v2 help
 
I have just purchased an Netgear wg311 v2 and cannot find drivers that will work. My linux distro is Fedora Core 1.
[lspci] - displays the card as --
(00:0d.0 Network Controler: Texas Instruments: Unknown Device 9066).

I have since discovered that (as far as i understand) the madwifi driver does not work for v2. Is this true? And if so are any other drivers available for the wg311 v2.

Any help would be greatly apreciated. I am a newbi to linux and this has really lost me.

disq_maker 07-10-2004 04:01 PM

Hi,

I have it working _but_ I'm on SUSE 9.1 (kernel 2.6.5-7.95-default).

It's working using the SUSE ndiswrapper rpm (0.6-23)
around the Netgear Windows XP drivers from 22 June.
(ftp://downloads.netgear.com/files/wg...pa_1_0_1_7.zip)
The inf file is in Drivers/Windows\ XP\wg311v2.inf

I found information about its use in a thread on linuxquestions.
It's about a different adapter but in principle it's the same.
Read this:

http://www.linuxquestions.org/questi...hreadid=198339

However I've been unable to follow the standard config file. Instead I have
it loading it on startup in my /etc/init.d/boot.local file. This file is run during
startup before entering the runlevel.
The appropriate startup file for Fedora is different though and I know even
less about Fedora than I know about SUSE. I think it's in /etc/init.rd/ but
you'll have to ask another Fedorista.

# Load the ndiswrapper module because it's not loading at startup
# despite ndiswrapper -m telling me it's already created an alias
# apparently means it should be loading
modprobe ndiswrapper
# WLAN settings
iwconfig wlan0 essid "MYID"
iwconfig wlan0 key MYKEY
# These 3 other commands were added later
iwconfig wlan0 mode Managed
iwconfig wlan0 nick linux
# My wireless router uses channel 11
iwconfig wlan0 channel 11
# Start it and get address via DHCP
ifup-dhcp wlan0

It's working and it seems totally stable so far.
But I've just got going today so I can't say anything about
long term. It's talking to a Netgear 834G ADSL router with the
latest firmware (1.5) with WEP 128 bit encryption.

I hope this helps

makro2004 07-11-2004 05:46 AM

Hi disq_maker,

does it also work with WPA & TKIP?

That would be really interesting!

makro

disq_maker 07-11-2004 09:13 AM

I just don't know...
 
Well I'm no expert on this but I don't think that
ndiswrapper supports WPA.

Linuxant's drivers do, I believe.

Supposedly those updated Windows drivers add WPA
(hence the file name) support. But, I believe that the additional support in Windows XP relies on a Windows XP patch, or a
3rd party utility for earlier Windows versions.

If anyone can tell me otherwise please do because I too would
like to use it if I can.

drowning 07-11-2004 08:38 PM

Thanks disq_maker I installed the wg311v2 windows driver with ndiswrapper and it all seemed to go well. I can now see wlan0 in iwconfig.

Unfortunatly I now have another problem. When i try to set the essid (or anything for that matter) it will not work.

If I enter > iwconfig wlan0 essid MY_ESSID
I do not get any errors but when viewing the iwconfig details
it does not display any ssid.

I thought I would try setting the details in:
/etc/sysconfig/network-scripts/ifcfg-wlan0 as was mentioned in another forum however it doesn't exist. The only ifcfg-X in network-scripts/ is ifcfg-lo for the loop back. Is this correct?

Using iwconfig, I was able to change to Ad-Hoc mode. After doing this I was able to set the essid. For some reason when I try to change back to Managed mode it stays in Ad-Hoc mode.

I am still trying a few things but if you have any suggestions they would be much appreciated.

drowning 07-11-2004 10:14 PM

Ok I rebooted my machine and now iwconfig shows:
lo no wireless extensions.

wlan0 IEEE 802.11g ESSID:"NETGEAR"
Mode:Managed Frequency:2.462GHz Access Point: 00:06:5C:F7:29:N4
Bit Rate:54Mb/s Tx-Power:10 dBm Sensitivity=0/3
RTS thr:2347 B Fragment thr:2312 B
Encryption key:off
Power Management:off
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

I don't know what I did but the essid and channel are now set. I haven't
set WEP yet as I didn't want to confuse the issue.

I am still concerned about not ifcfg-wlan0 not existing in
/etc/sysconfig/network-scripts/. I have a feeling that this may have
something to do with the reason for my problem.

So anyway from here is enter

Code:

ifonfig wlan0 up
then

Code:

dhclient wlan0
to assign an IP address ( the router/modem is setup with dhcp )
At this point it just displays the following output:

/sbin/dhclient-script: configuration for wlan0 not found.
Listening on LPF/wlan0/00:09:5b:ba:75:8e
Sending on LPF/wlan0/00:09:5b:ba:75:8e
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
/sbin/dhclient-script: configuration for wlan0 not found.
DHCPDECLINE on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
/sbin/dhclient-script: configuration for wlan0 not found.
DHCPDECLINE on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
/sbin/dhclient-script: configuration for wlan0 not found.
DHCPDECLINE on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPOFFER from 192.168.0.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
/sbin/dhclient-script: configuration for wlan0 not found.

... and this continues unless you terminate the request.

From this info it seems that wlan0 has not been configured but I thought
I had done this.

I cannot ping the modem 192.168.0.1 What could I be doing wrong?
I currently have a machine running XP also on the network using the same wireless adaptor and this works fine. I know an enabled firewall could prevent me from pinging the modem but when I installed the linux disto I opted not to install a firewall as I have one on my modem/router.

Thanks in advance

disq_maker 07-12-2004 01:46 PM

Not much I can suggest...
 
Have you tried creating an ifcfg-wlan0 something like the one suggested in the thread whose link I gave?

Or even just an empty ifcfg-wlan0 file? Perhaps the missing script causes it to fail.

I'm sorry drowning but I don't really understand this stuff myself.

Colin

drowning 07-12-2004 09:40 PM

Whoohooo. Got it sorted

I added my AP's IP address to /etc/resolv.conf. and then it worked.

Thanks for your help


All times are GMT -5. The time now is 03:52 AM.