LinuxQuestions.org
Visit Jeremy's Blog.
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-30-2005, 02:45 AM   #1
emarks
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Can't get DHCP - iwlist scan shows networks


I am currently trying to set up wireless internet with a DLINK DWL-520 rev e on Mandrake LE 2005. I am linux newbie so please keep that in mind when posting replies.

The DWL-520 e doesn't have permanent firmware so I have to use the hostap driver and load the firmware after each boot. I am currently doing this:

modprobe hostap_pci
hostap_fw_load wlan1
iwconfig wlan1 mode Managed key {my key here} essid "Wireless"

At this point I have a connection to my network and iwlist scan shows two available networks.

However, when I try dhclient to get an ip address I have no luck - dhcpcd also failed.

I was previously using Fedora 4 and was able to get on the internet using this same method but I would have to dhclient -r and dhclient again every few minutes - also sometimes when booting it would fail to load the firmware. I was hoping that I would have better luck with another distro but now I can't get an ip address.

Any ideas would be welcomed.
 
Old 07-31-2005, 01:03 PM   #2
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Fedora (KDE spin)
Posts: 224

Rep: Reputation: 70
emarks,
I had a similar problem (and solved it just yesterday) with the DWL-G510 card. I too couldn't get dhclient or dhcpcd to make an association, using a freshly installed LE2005.
In my case, the output from dhclient said that the router returned an IP, but dhcp rejected it.

The problem was that I hadn't used Harddrake to set up the LAN. I was so busy questioning stuff in the wireless part of Harddrake, I hadn't thought to set up the LAN part, and DHCP needs that information to make the association. The information you'll need is minimal (and you probably have it already) - You'll get to choose the wireless device (I think, since you've already done the modprobe, it'll be the wlan1 choice for you), the essid as assigned by the router, the channel it's using, the WEP (if you're using it - I suggest turning that off in the router and by using iwconfig, if you can, until everything is working), and a hostname, if one is assigned (I suspect that the hostname is quite optional). There's a checkbox there in the harddrake LAN setup wizzard to bring up dhcp on-boot that you'll probably want to check. Worked like a champ after that.
Hope I didn't miss anything for you.
Good Luck
J
 
  


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
Iwlist scan y00b Linux - Wireless Networking 17 11-15-2006 08:38 PM
iwlist scan not supported mcd Linux - Wireless Networking 14 02-09-2006 07:42 PM
cannot see any AP using iwlist wlan0 scan dpowers Linux - Wireless Networking 5 08-28-2005 09:36 AM
iwlist and active scan hjd17 Linux - Software 1 04-12-2005 09:37 AM
iwlist wlan0 scan lockup smithc2005 Linux - Wireless Networking 1 03-03-2005 05:44 AM

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

All times are GMT -5. The time now is 10:49 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