View previous topic :: View next topic |
Author |
Message |
Sprotte Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 Oct 2004 Posts: 217 Location: Kiel, Germany
|
Posted: Thu May 22, 2008 6:13 pm Post subject: xp laptop doesn't want to join wlan [solved/XP problem] |
|
|
Hey guys/gals,
I have a little home router running Gentoo. It runs dnsmasq and iptables to provide a gateway, dhcp and dns for one cable and one wireless LAN.
Cable lan and dsl work perfectly.
Wlan works on my side (card recognized, wlan0 is up, and has an ip address.)
My sister's winXP laptop connects on a hardware level (connects to the wireless interface and displays the correct ssid, using ad-hoc / peer to peer mode.) It fails getting an ip address/gateway/dns servers via dhcp though.
What happens when I attach my laptop (via cable):
Quote: | dnsmasq[5103]: DHCPDISCOVER(eth0) 00:03:2f:37:93:3b
dnsmasq[5103]: DHCPOFFER(eth0) 192.168.0.3 00:03:2f:37:93:3b
dnsmasq[5103]: DHCPREQUEST(eth0) 192.168.0.3 00:03:2f:37:93:3b
dnsmasq[5103]: DHCPACK(eth0) 192.168.0.3 00:03:2f:37:93:3b voyager |
Comparison, when my sister's laptop is switched on:
Quote: |
dnsmasq[25780]: DHCPDISCOVER(wlan0) 169.254.147.30 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPOFFER(wlan0) 192.168.1.2 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPDISCOVER(wlan0) 169.254.147.30 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPOFFER(wlan0) 192.168.1.2 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPDISCOVER(wlan0) 169.254.147.30 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPOFFER(wlan0) 192.168.1.2 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPDISCOVER(wlan0) 169.254.147.30 00:16:cf:3a:92:5f
dnsmasq[25780]: DHCPOFFER(wlan0) 192.168.1.2 00:16:cf:3a:92:5f |
This keeps going on forever then.
dnsmasq is set to authoritative mode. As you can see, wlan0 works correctly and dnsmasq is listening on it, and makes a correct offer from the range of available addresses (my two networks use 192.168.0.* and 192.168.1.* - I hope this is right.)
The router's ifconfig:
Quote: |
eth0 Protokoll:Ethernet Hardware Adresse 00:18:E7:16:05:9D
inet Adresse:192.168.0.1 Bcast:192.168.0.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1397 errors:0 dropped:0 overruns:0 frame:0
TX packets:1293 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:130108 (127.0 Kb) TX bytes:578236 (564.6 Kb)
Interrupt:9
eth1 Protokoll:Ethernet Hardware Adresse 00:10:A7:19:A2:4D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:428 errors:0 dropped:0 overruns:0 frame:0
TX packets:329 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:249987 (244.1 Kb) TX bytes:31436 (30.6 Kb)
Interrupt:10 Basisadresse:0x6200
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ppp0 Protokoll:Punkt-zu-Punkt Verbindung
inet Adresse:xx.xx.xxx.xx P-z-P x.xx.xxx.xx Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:261 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:3
RX bytes:234151 (228.6 Kb) TX bytes:22801 (22.2 Kb)
wlan0 Protokoll:Ethernet Hardware Adresse 00:1C:F0:CA:7D:3E
inet Adresse:192.168.1.1 Bcast:192.168.1.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:12
|
iwconfig:
Quote: |
wlan0 RT61 Wireless ESSID:"blah" Nickname:""
Mode:Ad-Hoc Frequency:2.422 GHz Cell: 4E:C2:77:18:2B:14
Bit Rate=11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-84 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
|
When she switches on her laptop, link quality goes to 100, and her Windows shows the correct ESSID. However, XP insists on using its own IP, although we made sure that it's set to "receive IP address automatically." I think that's probably an IP from her previous network. I've posted the excerpt from syslog above.
Both of us don't know Windows very well. What do we do? Is there a way to let WinXP "reset" dhcp info? Apparently it never sends a dhcp request.
By the way, I have put wlan0's IP in my /etc/hosts like this:
Quote: | 127.0.0.1 pathfinder localhost
192.168.0.1 pathfinder.xxxxxx.de pathfinder
192.168.1.1 pathfinder
|
is that even needed?
Last edited by Sprotte on Mon May 26, 2008 5:33 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cyrillic Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/8174739453e52fd5e9aef6.jpg)
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Thu May 22, 2008 9:45 pm Post subject: Re: win xp laptop doesn't want to join my wlan (dhcp) |
|
|
Sprotte wrote: | Both of us don't know Windows very well. What do we do? Is there a way to let WinXP "reset" dhcp info? Apparently it never sends a dhcp request. |
I am not an expert when it comes to wireless, but I thought Ad-Hoc mode was for networking when a router is not present.
Since you do have a router / DHCP server, you probably want to set the Windows wireless settings to Managed mode, and that may fix the DHCP problem you are having. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sprotte Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 Oct 2004 Posts: 217 Location: Kiel, Germany
|
Posted: Mon May 26, 2008 12:20 am Post subject: |
|
|
Thanks. The problem is that XP is like a black box and does most of these things automatically. I have no idea where to switch a wifi interface to Managed under XP
Anyway...
I have identified this as a Windows XP problem. The DHCP protocol follows the DORA pattern:
Discover
Offer
Request
Ack
and as we can see in the logs, XP sends a Discover, promptly answered by Gentoo's Offer, and then XP fails to send a Request.
Perhaps this is a firewall problem on XP's part. I will have to investigate this. DHCP Offers are sent to UDP port 68, which may be blocked ... perhaps XP is stupid enough to block DHCP Offers. ^^
If all else fails, I'll have to manually configure our little problem child
The seemingly random 169.xxx.xxx.xxx IP that XP insists on is apparently an APIPA address; automatic private IP assignment or something. Bleh.
So, since this isn't really a Gentoo problem, I'll soon close the thread. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sprotte Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 18 Oct 2004 Posts: 217 Location: Kiel, Germany
|
Posted: Mon May 26, 2008 5:30 pm Post subject: |
|
|
It magically works now (with the XP firewall deactivated.)
:-/ I'll close this (not a Gentoo problem.) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|