LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-04-2005, 06:34 AM   #1
Blazarov
LQ Newbie
 
Registered: Jan 2005
Location: Munich
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
ipw2200 and dhcp


Hi folks,
I finally managed to get wireless working on my laptop with the ipw2200 driver, however it seems it can't get a network address via dhcp, so I have to set up the network manually... This works fine at home, where I know the addresses, but I also plan to use my laptop at other places, so it would be really nice to be able to dhcp... Anyone got an idea what I should do to fix this?
Thanks in advance!

Cheers,
Boyan
 
Old 10-04-2005, 07:29 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
How are you trying to use it and what errors are you seeing? We're going to need more details than what you've posted so far.
 
Old 10-04-2005, 12:59 PM   #3
Blazarov
LQ Newbie
 
Registered: Jan 2005
Location: Munich
Distribution: Slackware 10.2
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry, should have posted this in my previous post...
I'm just using the "dhcpcd -t 30 eth1" command. eth1 is my wireless interface. When I issue the command, however, nothing happens... It just waits for the 30 seconds or as long as I have set for timeout and gives up nothing. /var/log/dhcpcd.log shows nothing but a timeout error:

Oct 4 19:42:29 omega dhcpcd[3195]: timed out waiting for a valid DHCP server response

My mashine is a Fujitsu-Siemens Amilo M1425 Laptop, running Slackware 10.2 with 2.6.13 kernel

Please tell me if I need to post anything else.

Cheers,
Boyan

Last edited by Blazarov; 10-04-2005 at 01:01 PM.
 
Old 10-04-2005, 02:52 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
You're certainly using the right command to get an address. Just to rule out the brutally obvious, is your card configured correctly? The main reason I'm asking is that you're using a 2.6.13 kernel and that has a new version of wireless extensions that the wireless tools in Slackware 10.2 don't support.

If everything in iwconfig is good (and your being able to configure by hand suggests it probably is), then I'd try issuing the dhcpcd command a couple of times in a row. I know when I'm roaming sometimes it takes a couple of shots for the dhcp server to respond. I'd also throw in the -d flag as it causes dhcpcd to log stuff instead of being so quiet.
 
Old 10-04-2005, 04:16 PM   #5
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
I'm having a similar issue on a dell latitude d610 as well. slackware 10.2 with 2.6.13.2 kernel. using the ipw2200 drivers. I can use iwlist scan to see my ap, and I *think* I'm using iwconfig correctly to connect, but then I can't get an ip.

Is there a gui frontend to iwconfig that would simplify knowing if it's just me ?
 
Old 10-04-2005, 05:16 PM   #6
Blazarov
LQ Newbie
 
Registered: Jan 2005
Location: Munich
Distribution: Slackware 10.2
Posts: 6

Original Poster
Rep: Reputation: 0
Well, I'm pretty sure my card is working correctly, I'm writing this connected to the internet with it . I tried using dhcpc multiple times, still no result, however the signal in my room is not that good, cause I'm living in a sort of a basement (prety geeky, huh?) and i'm only getting something like 40-50% signal quality... Nevertheless, I have no trouble connecting to the internet via dhcp in windoze, or with manual configuration, so I don't think link quality is the issue here... I saw something on the net about ipw2200 not working with dhcpc, and some patch for fixing it was mentioned, however I wasn't able to find it... Well, I guess I'll keep trying/searching... Thanx anyway for the suggestions, if someone finds the solution I hope he'll be kind enough to share it

Cheers!
 
Old 10-04-2005, 07:15 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I suppose instead of dhcpcd you could try dhclient. I think is is part of a standard Slack install and in theory it does the same thing. I've never used it, but maybe it doesn't have the same issues as dhcpcd.

Quote:
Is there a gui frontend to iwconfig that would simplify knowing if it's just me ?
There is kwifimanager, but my opinion is that pretty much all the front ends do is make life more difficult by masking error messages. If you're not sure about how your using iwconfig, post what you're doing and I'm sure you'll get commentary
 
Old 10-06-2005, 07:33 PM   #8
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
ipw2200 does not have an issue with dhcpcd. I run an Acer laptop with the 2200 builtin and use dhcpcd to get IP addresses.

Just use ifconfig to up it before dhcpcd'ing
 
Old 10-07-2005, 04:16 AM   #9
Blazarov
LQ Newbie
 
Registered: Jan 2005
Location: Munich
Distribution: Slackware 10.2
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by otchie1
ipw2200 does not have an issue with dhcpcd. I run an Acer laptop with the 2200 builtin and use dhcpcd to get IP addresses.

Just use ifconfig to up it before dhcpcd'ing
Thanx for the tip, but I've already tried it and it has no effect... I'll have some more time these days, so I'll go somewhere else on another wireless network to try it there to make sure that the problem is not ap-related in any way...
 
Old 10-08-2005, 10:38 AM   #10
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
Quote:
Originally posted by Hangdog42
I suppose instead of dhcpcd you could try dhclient. I think is is part of a standard Slack install and in theory it does the same thing. I've never used it, but maybe it doesn't have the same issues as dhcpcd.



There is kwifimanager, but my opinion is that pretty much all the front ends do is make life more difficult by masking error messages. If you're not sure about how your using iwconfig, post what you're doing and I'm sure you'll get commentary
yeah kwifimanager just confused me more, but here is what I'm using:

iwconfig eth1 ssid <ssid> txpower on
iwconfig key <key>
ifconfig eth1 up
dhcpcd -t 30 eth1

Even when I turn encryption off on the ap, it doesn't work. I can reboot into windows and connect just fine.
 
Old 10-08-2005, 10:53 AM   #11
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
I also noticed that eth1 doesn't stay in ifconfig, it goes away sometime after the iwconfig or dhcpcd is used.

two other things I noticed:

when I do ifconfig the Link encap: Ethernet is just like the nic.

when I do iwconfig, the first thing says unassociated like:

#iwconfig

eth1 unassociated ESSID= Nickname =
 
Old 10-08-2005, 11:44 AM   #12
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
iwconfig eth1 ssid <ssid> txpower on
iwconfig key <key>
ifconfig eth1 up
dhcpcd -t 30 eth1
That sequence looks fine, however on my rig I don't need to use txpower on and I run ifconfig up AFTER I've run dhcpcd. You also might add the -d flag to your dhcpcd command as it is supposed to log more information then. It might help.

I guess my first guess would be to ask if you check the wireless config after you've run the iwconfig commands to make sure the configuration took. If either the ssid or WEP key is borked, that could keep you from getting an IP address.

I've also noticed that if something goes really wrong, ifconfig seems to lose track of my wireless card. In every case though, ifconfig up brings it back.
 
Old 10-09-2005, 03:06 PM   #13
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
using the -d option on dhcpcd and monitoring the log, the only thing I see is

broadcasting DHCP_DISCOVER
timed out waiting for a valid DHCP server response


I'm thinking it has to be something with the iwconfig but I can't figure out what. everything looks good, I can see the essid and key in hex.
 
Old 10-10-2005, 07:11 AM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The problem is that this could be a number of things. Since you can get an IP from Windows, for the moment I'm going to assume that your router is configured correctly and isn't doing anything to block the card, like filtering on MAC addresses.

- Is there a firewall set up that could be blocking the packets? You could set up ethereal or tcpdump and see if you can follow what the packets are doing when you run dhcpcd

-You say that iwconfig shows both the ssid and WEP key. Does it also show a MAC address?

-Just to see if there is a fundamental problem, you could set a static IP address. Configure the card with iwconfig as you normally would. Then assign an IP address with ifconfig:

ifconfig wlan0 IPAddressHere

Then set the gateway to point to your router:

route add default gw RouterIPAddress

Finally, edit /etc/resolv.conf and add your ISP's name servers. For each name server add the line:

namserver NamserverIPAddress


Oh, and one last thing, you might try turning on the SSID broadcast on your router if you have turned it off. That does make a difference sometimes.

Last edited by Hangdog42; 10-10-2005 at 07:12 AM.
 
Old 10-10-2005, 11:44 AM   #15
sn9ke_eyes
Member
 
Registered: Feb 2003
Location: Texas
Distribution: slackware 11
Posts: 90

Rep: Reputation: 15
no firewalls that are blocking

yes iwconfig shows the correct MAC address

I set the static and added the default gw and everything connected and I now have net access via wireless.

It does appear to be something with the dhcp, but I'm not sure what.
 
  


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
ipw2200 with 2.6.14 carboncopy Linux - Wireless Networking 2 11-01-2005 10:44 AM
ipw2200 bird603568 Slackware 7 07-14-2005 10:07 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
ipw2200 jp_ Slackware 5 03-23-2005 05:41 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM


All times are GMT -5. The time now is 06:45 PM.

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