Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed Debian and have hooked up eth0 to a Netgear wireless router (I'm using wired until I get my wireless drivers to work). Whenever I run dhclient, ifup eth0, /etc/init.d/networking restart, or anything at all to request a DHCP address, I get this:
Quote:
Listening on LPF/eth0/00:1e:68:38:73:56
Sending on LPF/eth0/00:1e:68:38:73:56
Sending on Socket/fallback
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 14
... (and so on)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I also have an XP box, also hooked up through eth0 to the router. DHCP on that machine works just dandy. The Windows command ipconfig /all tells me that the DHCP server is 10.0.0.1, the address of my router.
ping 10.0.0.1 gives this:
Quote:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.6 icmp_seq=2 Destination Host Unreachable
From 10.0.0.6 icmp_seq=3 Destination Host Unreachable
From 10.0.0.6 icmp_seq=4 Destination Host Unreachable
... (and so on)
/etc/network/interfaces reads in part:
Quote:
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
Also, for some reason, occasionally I see ifup eth0 run on boot, and it connects successfully. But then when X starts up, it somehow... disconnects? The "Network Tools" utility says only about 15KB were sent. I'm not sure what to call it, since Debian still claims my connection is active. But I'm in the same situation as if DHCP had failed. And it wouldn't make sense for a lease to expire that quickly. Perhaps it's a separate issue.
Any help would be greatly appreciated! Thanks in advance.
1. check your cable
2. check the setup of your router - it may be configured to only accept requests from certain MAC numbers, or it may be set to dispense static addresses and you have no static address assigned to your Linux box.
Thanks, I'm checking my router setup just in case, but I think both those issues are addressed by the fact that the Internet works fine when I boot into XP. Perhaps I wasn't clear; I have an XP box connected to the router, and another box that dual-boots Debian and XP. Both XPs connect to the Internet with no problems. Debian is the only one with DHCP issues. Since Debian and XP share the MAC address of my Ethernet card, I think we can eliminate that proposal. Unless I'm missing something.
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
I wonder if it doesn't like the fact that eth0 is defined as both allow-hotplug and allow-auto? Try commenting out the auto line and see if that changes it.
I would suggest removing the "allow-hotplug" line since that's only needed if your NIC is removable (like a PCMCIA type) - I can't see how it would otherwise affect your system though.
What is the NIC as determined by matching entries in 'lspci' and 'lspci -n'? It is possible that the wrong driver is loaded so it's best to track the driver from the VendorID:ProductID numbers.
And just to check one more time using 'ifconfig', try:
ifdown eth0
ifconfig eth0 up 10.0.0.6 netmask 255.255.255.0
then try that ping again.
I also forgot - when you have that trouble, can you log into the router via the other computer and check the active leases? Some routers are a bit stupid and require you to drop the lease - most however drop the lease as soon as the cable is disconnected or the computer powered down or else they hand out a new lease anyway.
I tried commenting out the auto line, the allow-hotplug line and then both just for good measure, but nothing changed.
I tried ifdown eth0 and got this:
Quote:
There is already a pid file /var/run/dhclient.eth0.pid with pid 3976
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
... (blah blah blah, copyright stuff)
Listening on LPF/eth0/00:1e:68:38:73:56
Sending on LPF/eth0/00:1e:68:38:73:56
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.0.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
So apparently it's aware of the router, at least; just not able to connect to it? I tried ifconfig eth0 up 10.0.0.6 netmask 255.255.255.0 as well and got this:
Quote:
SIOCSIFADDR: No such device
up: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
That's your Wireless gizmo. The posts I have dug up all say "use ndiswrapper" which means installing ndiswrapper and setting up the WinDuhs driver.
Have another try at identifying the wired network device.
The other lines you posted like:
SIOCSIFADDR: No such device
indicate that the driver is not working for whatever reason (usually missing firmware, but in some cases the wrong driver loads as already mentioned). At least we've established that the DHCP messages are probably misleading because your NIC isn't actually working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.