LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-26-2005, 12:19 PM   #1
AM1SHFURN1TURE
Member
 
Registered: Sep 2004
Location: US
Distribution: Debian
Posts: 56

Rep: Reputation: 15
dhclient wont set wlan0


Hey, iwlist wlan0 scan shows an access point but dhclient wlan0 will just try DHCPDISCOVER a few times. This is on a debian machine using ndiswrapper - when i tried in MEPIS dhcp was configured just fine. Any help,thanks.
 
Old 07-26-2005, 01:14 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Did you check the output of 'iwconfig wlan0' to make sure the essid, AP, mode, wep etc are input correctly?
 
Old 07-26-2005, 01:39 PM   #3
AM1SHFURN1TURE
Member
 
Registered: Sep 2004
Location: US
Distribution: Debian
Posts: 56

Original Poster
Rep: Reputation: 15
There is no WEP or ESSID or any settings that aren't default (insecure I know, but hey I guess my school doesn't care) and a distro like MEPIS which set up ndiswrapper automatically for me and has:

auto wlan0
iface wlan0 inet dhcp


in /etc/network/interfaces, will get me connected without me having to do anything.
Should I be using something other than DHCLIENT to get an ip address for this wireless interface?

Last edited by AM1SHFURN1TURE; 07-26-2005 at 01:41 PM.
 
Old 07-26-2005, 01:51 PM   #4
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
I have always used dhcpcd, it's default for Slackware.
 
Old 07-26-2005, 01:55 PM   #5
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
ok, so you're using a debian (-based) distro now and not Mepis, so the wireless interface is not automatically set for you? This means that you probably have to manually configure the parameters for wlan0 with iwconfig. Since the essid and wep are default, you could try to input the correct AP and mode (obtained from the iwlist scan) via iwconfig.

# iwconfig wlan0 ap xx:xx:xx:xx:xx

or

# iwconfig wlan0 ap auto

# iwconfig wlan0 mode <whatever it is>

then try dhclient again

# dhclient wlan0
 
Old 07-26-2005, 03:08 PM   #6
AM1SHFURN1TURE
Member
 
Registered: Sep 2004
Location: US
Distribution: Debian
Posts: 56

Original Poster
Rep: Reputation: 15
Yup.....I am using debian on my laptop, setting the AP to auto or to the ap's hardware address does sound like it should let wlan0 know where to go in order to send the dhcp request that dhclient does. I can't try it out right now because I am not at school and have no other wireless networks to use right now, but will try that once I get back there tomorrow, thanks for your replies.

EDIT: the odd thing is, MEPIS has essid set to 'any', ap set to auto and mode set to auto, yet it can still get an ip adress from dhcp just fine. Whereas in Debian, I have the exact same settings (I just double checked) and iwlist will show me an access point, but when I run dhclient to get an address for my wireless interface, I get nothing. The only difference I see in settings between MEPIS and Debian is that MEPIS has wlan0 autoconfigured for dhcp in /etc/network/interfaces, but in Debian I am using dhclient. I am still going to specify the exact details in iwconfig using what I get from iwlist, and if no luck with that , will try to add wlan0 to /etc/network/interfaces. I will see how things go.

Last edited by AM1SHFURN1TURE; 07-26-2005 at 08:12 PM.
 
  


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
dhclient shows IP, but internet including ping wont work mjkelly93 Linux - Networking 1 10-09-2005 07:46 AM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
Wireless Linksys -G type loading with dhclient wlan0 after ndiswrapper is loaded but Wireless-G-DSL Linux - Hardware 1 04-01-2005 09:45 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM
Set environment variables, why it wont work? yalanop Linux - Newbie 4 01-27-2003 05:27 PM

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

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

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