LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-02-2006, 09:33 PM   #1
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Rep: Reputation: 15
MadWiFi, getting Netgear WG311T to connect with dhclient/dhcpd (DHCP)


Hi. Not looking carefully, I did not see that there was a wireless networking section. I mentioned on the main Wireless Linux forum that I had problems trying to get my network to function using one of the most recent versions of MadWiFi (madwifi-ng). I am using the OpenSuSE 10.0 distribution. I've managed to go through the first-time guide on installing MadWiFi, and then I tried the last step:

Quote:
dhclient ath0
and

Quote:
dhcpd ath0
The first command would not do anything (it said that dhclient wasn't found or something), and the second one gave me some errors -- ending with

Quote:
Configuration errors encountered -- exiting
What is the deal, and what why am I getting these errors?
 
Old 02-03-2006, 07:32 AM   #2
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Mandriva 2008 One
Posts: 126

Rep: Reputation: 18
Hi. Just guessing here, but is dhclient installed for you? - I know that it's not installed by default in all distros. (And although >dhclient ath0 is correct, the package name is sometimes dhcpclient.)
 
Old 02-04-2006, 12:02 PM   #3
flying_pig
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
Hi, i have ubuntu server, and i (finally) connect to my AP, but i m not getting dhcp. When i connect (from other comp) to AP, i can see ubuntu server connected, mac, addr, but it want get dhcp.
 
Old 02-07-2006, 01:44 AM   #4
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Original Poster
Rep: Reputation: 15
Okay, this is what my dhcpd.conf contains

Code:
ddns-update-style none;
default-lease-time 14400;
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask {
  default-lease-time 14400;
  max-lease-time 172800;
}
subnet  netmask  {
  default-lease-time 14400;
  max-lease-time 172800;
}
I've done everything from the madwifi newbie guide, and the wpa_supplicant to get my Netgear WG311T (Atheros 5212 chip) to function, but it will not connect to the Internet. It appears that I do have the DHCP Client installed.
 
Old 02-07-2006, 05:59 AM   #5
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
Depending on what installation method you used, have you rebooted? Have you verified that the ath_pci module is loaded? Have you verified that the ath0 interface is up and that you are indeed connected to your Access Point, before you start the dhcp daemon?
 
Old 02-07-2006, 09:51 AM   #6
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Original Poster
Rep: Reputation: 15
I tried rebooting -- that didn't do any good. I believe I was able to see my AP when I performed a scan. However, I did not receive an IP address. Again, I have my wireless set up as WPA-PSK, I have a DSL connection, and my IP is set up dynamically. The KWiFiManager did not display an IP address, and there was no green bars indicated (or strength), but the status wasn't "X"'ed out in red, either.
 
Old 02-07-2006, 01:09 PM   #7
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
Please post the output of ifconfig and iwconfig.
 
Old 02-07-2006, 07:35 PM   #8
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Original Poster
Rep: Reputation: 15
ifconfig...

Code:
ath0      Link encap:Ethernet  HWaddr 00:09:5B:EB:B2:23
          inet6 addr: fe80::209:5bff:feeb:b223/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3293 (3.2 Kb)  TX bytes:3293 (3.2 Kb)

wifi0     Link encap:UNSPEC  HWaddr 00-09-5B-EB-B2-23-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:362 errors:0 dropped:0 overruns:0 frame:12
          TX packets:392 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:33870 (33.0 Kb)  TX bytes:18032 (17.6 Kb)
          Interrupt:10 Memory:e1560000-e1570000
iwconfig...

Code:
lo        no wireless extensions.

sit0      no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"ESSIDHERE"
          Mode:Managed  Frequency:2.442 GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:0 kb/s   Tx-Power:15 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
 
Old 02-07-2006, 10:55 PM   #9
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
I notice that your transmit rate is not set. Try in the following order.

wlanconfig ath0 scan
iwconfig ath0 essid <eessidhere>
iwconfig ath0 key <keyhere>
iwconfig ath0 channel <whatever is indicated by wlanconfig ath0 scan>
iwconfig ath0 rate 54M
at this point your should be connected but have no ip, see kwifimanager
dhcpcd ath0
 
Old 02-07-2006, 11:38 PM   #10
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Original Poster
Rep: Reputation: 15
Okay, when I did all except the final command, it appeared that things were looking up (it showed green bars indicating signal strength), then when I type dhcpcd ath0, it it took almost a minute until I was able to type in something again (no output). Then, the signal strength was no more. When I type dhcpd, however...

Code:
Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 3: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 7: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 11: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 15: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 19: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 23: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 27: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 31: expecting numeric value.
subnet  netmask
        ^
/etc/dhcpd.conf line 35: expecting numeric value.
subnet  netmask
        ^
Configuration file errors encountered -- exiting

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
Note: Why is it that when I reboot, the MAC address are all 0s (00:00....)? It does want the AP's address, right -- or the NIC's address?
 
Old 02-08-2006, 05:14 AM   #11
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
I'm afraid Mr_C was a bit optimistic. If you are using WPA, then WEP is not going to work. If you see only zeroes in the MAC address of the Access Point in the output of iwconfig, then you are not connected. Maybe you could temporarily disable WPA encryption on the AP, to see if encryption is the problem. Also, you can see a list of the available channels of your WG311T as well as the channel it is using right now, with the command "iwlist ath0 channel". Then make sure your your card is using the same channel the Access Point is using.
 
Old 02-08-2006, 05:36 AM   #12
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
The timing out happens to me as well, so I just rerun the ccmmands. Most times it works on the 2nd/3rd try.(They're in a script so its easy-I normally CTRL+C after 20secs and rerun if the card is not assigned an ip)

dhcpd is for setting up your own dhcp server. You don't want two dhcp servers on the same subnet.

Junctajuvant, are you sure about the mac having all zeros means it not connected? I've never seen that before; regardless if your connected or not my mac address remains the same...

Before I had started using ICS, I used static ips; the commands were the same; link quality was displayed and windows reported a sucessful connection. Of ocurse I could not ping before I set the ips on the linux side.

Just my 2cents.
 
Old 02-08-2006, 06:35 AM   #13
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
Quote:
Originally Posted by Mr_C
Junctajuvant, are you sure about the mac having all zeros means it not connected? I've never seen that before; regardless if your connected or not my mac address remains the same...
.
I'm not sure what you mean, but I was referring to the MAC address of the Access Point, not the wireless card. In "man iwconfig" I read that the default mode is to automatically try to find the best AP in range. If you are connected, you should then see the MAC address of the access point to which you are connected. If it shows all zeroes, I therefore conclude that you are not connected (no Access Point should have a MAC address like that). Of course if you manually force the use of a particular MAC address, you might think the conclusion is false. But Cb6000 posts show that his signal is low (zero), in which case iwconfig reverts back to the automatic mode anyway (according to man iwconfig). Or is there something I've overlooked?
 
Old 02-08-2006, 04:06 PM   #14
Cb6000
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSUSE 10.0
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JunctaJuvant
I'm afraid Mr_C was a bit optimistic. If you are using WPA, then WEP is not going to work. If you see only zeroes in the MAC address of the Access Point in the output of iwconfig, then you are not connected. Maybe you could temporarily disable WPA encryption on the AP, to see if encryption is the problem. Also, you can see a list of the available channels of your WG311T as well as the channel it is using right now, with the command "iwlist ath0 channel". Then make sure your your card is using the same channel the Access Point is using.
When rebooting, there was some signal strength. However, no IP address was obtained -- even without any encryption. So, it doesn't appear to be an encryption issue.
 
Old 02-08-2006, 06:00 PM   #15
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
I think you are confusing the dhcp client with connecting to an access point. These are two different things. First you connect to the AP, then worry about the rest later. Please turn of encryption on the Access Point and on your computer. Then post the output of iwconfig, unless it is the same as the output you posted earlier. I assume you are not running any kind of firewall. Also make sure you are using the right SSID, the right channel (between 1 and 11) and the correct protocol (b or g). These must all be the same on both the Access Point and in your configuration on the computer. Hope that helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Netgear WG311T, MadWiFi installation woes on OpenSuSE 10.0 Cb6000 Linux - Networking 3 02-02-2006 04:48 PM
MadWiFi for WG311T - RedHat 9 eSsence Linux - Wireless Networking 0 09-17-2005 06:58 PM
WG311T and Madwifi j_70 Linux - Wireless Networking 1 08-15-2005 08:17 AM
WG311T - Installing madwifi drivers - warning messages?? LChalupa Linux - Wireless Networking 1 04-08-2005 10:30 AM
SuSE and Netgear WG311T stan03 Linux - Hardware 1 05-14-2004 12:13 AM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration