PDA

View Full Version : DHCP Assigning wrong IP?



jmh90
10-13-2004, 05:49 AM
I've got Knoppix 3.6 running on a Dell C600 laptop with a Netgear WG511 wireless card and a Dlink Wireless/Broadband router. The wireless card appears to have solid contact with the router (as monitored with wavemon and iwconfig). The router reports it assigned 192.168.0.3 to the Knoppix machine however Knoppix reports its IP (through ifconfig) as 192.168.1.14. Knoppix has the MAC address of the router correct (verified in iwconfig) and the router shows the MAC address of the laptop correctly. Obviously I can't connect to the other machines on the router or the internet. When I do route -n I see that the routing table is messed up. The table should show the gateway as 192.168.0.1 but instead shows 192.168.1.1

It appears Knoppix is interpreting the DHCP stuff incorrectly from the router, but why?

Note: another linux (SuSE) and windows 2k/XP boxes use the same router wirelessly and wired without trouble

Harry Kuhman
10-13-2004, 06:56 AM
.... however Knoppix reports its IP (through ifconfig) as 192.168.1.14. ......

Are you living in a location where you might be seeing other wireless routers? When your Knoppix system is assigned 192.168.1.14 can it ping 192.168.1.1 and get a response? Have you used any "site survey" software (either something that came with the card or Netstumbler) to see all of the available access points in range? Boy, what a strange problem!

jmh90
10-14-2004, 02:56 AM
Yes, I can see between 1 and 3 other wireless routers from my house. After doing some "investigative work" if found the ESSID of a router we'll call "MR. X". When I reconfigure my wlan card using wlcardconfig and specify "MR. X" instead of my ESSID, then do a "pump -R", voila, I'm surfing the web as 192.168.1.14 without a hitch.

Of course, it's not my router, and I'm only 2 feet away from my access point. Why would my net card prefer another router? My only guess is that I have a 802.11 b/g card and my router is a 802.11b. Maybe the card firmware prefers 802.11g (assuming MR. X is a g router)? Very confused here why I can't dial in my own router. When I set wlcardconfig to use my ESSID, pump just doesn't seem to work - returns "Operation failed."[/quote]

jmh90
10-14-2004, 04:52 AM
OK, I finally was able to connect to *my* router by using a static IP *and* moving the laptop to a portion of the house that was in range to only my wireless access point. I still can't connect to my router with DHCP, even when I'm isolated from other APs. It is really strange to be connected apparently to one router but to have an IP leased from another. Apparently, that's what has happened.

(I'll also need to tell my neighbor to add some sort of filtering to his/her AP.)

Thanks for the help

Harry Kuhman
10-14-2004, 06:52 AM
Thanks for the help
Glad you're making progress, but I didn't do much to help. Just figured DHCP just doesn't fail that way and that you mush have got that "bad" IP address from somewhere. How you managed to get it without putting in the SSID of Mr.X I don't know. Why you can't get a DHCP setup from your own system I don't know. But then, I haven't been able to get Knoppix to work with either my Belkin 802.11b (ver 2101) card or my dLink 802.11b DWL-650 card. It sort of see the Belkin card, but (running from CD) I can't quite get it to connect to my router (and I've tried it with a few routers). Not even using WEP. Wish I knew a lot more about the wireless stuff in Knoppix myself.