LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   NetGear WG111v2 does not Get IP From Wlan Router (https://www.linuxquestions.org/questions/linux-wireless-networking-41/netgear-wg111v2-does-not-get-ip-from-wlan-router-483710/)

NeroZero2 09-15-2006 06:29 AM

NetGear WG111v2 does not Get IP From Wlan Router
 
deleted by owner ...............

Hangdog42 09-17-2006 08:35 AM

From the looks of it, ndiswrapper is working correctly, but the card's configuration isn't being set. If you are using WPA for security, you need to use wpa_supplicant to configure the card and the WPA key. Have you installed wpa_supplicant? If not, there are instructions on how to compile it from source on my help site (link in my signature). Otherwise, check your distro and see if they have a package for it.

NeroZero2 09-17-2006 03:01 PM

deleted by owner ...............

Hangdog42 09-18-2006 07:04 AM

Quote:

do i have to use wpa-supplicant -Dndiswarpper -iwlan0 -c/mywpa1.conf once to have it linked or each time I start my PC?!
The short answer is yes, you do need to run that command each time you start your PC. However, you may need to add a couple more options to your command. Here is how I start wpa_supplicant on my laptop:

wpa_supplicant -Bw -Dndiswrapper -c/etc/wpa_supplicant.conf -iwlan0

One thing you could do is set up that command to run every time you boot, but since you don't mention what distro you're using, I'm not sure where you would do that.

NeroZero2 09-18-2006 10:07 AM

deleted by owner ...............

Hangdog42 09-18-2006 10:24 AM

That wpa_supplicant.conf file looks a touch dodgy to me. Here is mine:

Code:

network={
ssid="HomeSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP104
wep_key0=HexWEPKey
wep_tx_keyidx=0
priority=5
}
network={
ssid="AnotherSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP40
wep_key0="WEPHexKEy"
wep_tx_keyidx=0
priority=4
}
network={
ssid="AThirdSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP40
wep_key0=WEPHexKey
wep_tx_keyidx=0
priority=1
}
network={
ssid="WPA_NETOWRK_SSID"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="WPA_Passphrase"
priority=1
}

I don't have any of that header stuff that is in yours. The reason I'm suggesting you simplfy yours (make a backup copy first) is this message in your logs:

Quote:

Line 22: failed to parse network block.
Failed to read read or parse configuration '/etc/wpa_supplicant.conf'.
That suggests to me that it is tripping over your conf file. Is your config file actually /etc/wpa_supplicant.conf? I'm asking because in a previous post it isn't, and if you are not pointing to your config file, that command isn't going to work.

Finally, you have two psk= statements in your config file. I'm not sure if that is going to work.

NeroZero2 09-18-2006 10:38 AM

deleted by owner ...............

NeroZero2 09-18-2006 11:56 AM

deleted by owner ...............

Hangdog42 09-18-2006 01:03 PM

It looks to me like wpa_supplicant isn't finding the wireless card. Are you sure ndiswrapper was loaded and it showed up in iwconfig before you ran wpa_supplicant?

Also, if you go the static IP route, you need to do three things:

1) set the IP address (I use ifconfig to do this, but I suppose Yast will do)
2) Set the gateway to your router's IP address (I use the route command, but again, maybe Yast has a way to do this.
3) You need to enter your ISP's DNS servers into /etc/resolv.conf. Each DNS has to have its own line like this:

nameserver xxx.xxx.xxx.xxx Where xxx is the IP address.


DHCP does all three of those things automatically, but if you forget to do one with a static IP, the system probably won't work.

PTrenholme 09-18-2006 02:21 PM

Perhaps this is irrelavent for your problem, but I use ndiswrapper with wpa_supplicant on my Fedora 5 system, and I colud not get WPA or WPA2 to work untill I replaced the -Dndiswrapper option with a -Dwext one in the wpa_supplicant command line.

NeroZero2 09-18-2006 03:50 PM

deleted by owner ...............

NeroZero2 09-19-2006 01:42 AM

deleted by owner ...............

NeroZero2 09-19-2006 01:46 AM

deleted by owner ...............

Hangdog42 09-19-2006 07:04 AM

Quote:

BTW i "love" posting here for myself in a supposedly outreaching community.. I cannot spend my entire life on this
Well, in that case stop posting and figure it out for yourself. The people on this forum volunteer their time and the least you can do is show a little appreciation rather than bitching and moaning.

NeroZero2 09-19-2006 10:01 AM

Heh mate,

I do not see what you feel addressed at all :) I mean in a PUBLIC forum to have one or two seeking to actively help you is a shame of any linux xommunity and reminds me rather of windows mentality, than understanding the concept of having to stick together in order to make Linux in general more attractive to the masses which will benefit the nerds as well by better programming :)

You have just shown your inability to see the person behind the PC, I mean if you need to resolve something on your own which I have already basically been doing then this BBS is all but for showing off instead of contemporary user progress within Linux!!!!

No, I am not to leave, you better do, since you bully ppl if they want to get solutions for the real world, where you cannot play around on your PC forever :) Now, back to the problem, THX


All times are GMT -5. The time now is 11:47 PM.