DebianThis forum is for the discussion of Debian 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'm running Debian/Testing on my HP Pavilion laptop and I've recently compiled a new kernel (2.6.8), but after that I noticed DHCPDISCOVER kept failing at boot time. After looking about and messing with all sorts of stuff, I believe I've narrowed it down; apparentely, it's not listening correctly for DHCP offers. Upon boot time it says it's listening and sending on LPF/eth0/<null>, instead of the correct address (which would be, I believe, the router's address, 192.168.1.1). The ethernet card is configured and working, but I have no idea how to set up DHCP decently =/
I tried that, but it didn't work. After that I tried the same command on my working kernel, and I noticed this: on the kernel that doesn't work, it says
Listening on LPF/eth0/<null>
whereas on the kernel that does work, it says
Listening on LPF/eth0/00:02:3f:69:3f:43
that is, my card's MAC address.
I believe that it is clear then, I have to get it to use the correct device... what can I do?
eth0 is my LAN card, eth1 my wireless card, lo and sit0 I have no idea >_>
As for the problematic kernel:
Code:
eth0 Link encap:UNSPEC HWaddr 3C-3F-02-00-38-0E-00-3D-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:8 dropped:8 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7340 (7.1 KiB) TX bytes:7340 (7.1 KiB)
This opens up a whole new world of possibilities o_O no sit0, to start, and eth0 is suddenly my wireless card. My Ethernet card is nowhere to be seen, which is definitely a problem. ifconfig eth1 up (assuming here that the two cards simply switched places) outputs
Code:
eth1: ERROR while getting interface flags: No such device
meaning the damned thing has no idea my Ethernet card exists.
There's a whole another issue at work here too; if eth0, in the new kernel, is my wireless card, it's not supposed to be working, as I haven't set up ndiswrapper or anything similar (and to the best of my knowledge Debian/Testing doesn't handle Broadcom WLAN cards all by its lonesome <_<); but if my any chance it is working, why isn't it getting dhcp offers from my wireless router (which I'm sure is working, at least with Windows :P)?
Anyway, why doesn't it detect my Ethernet card? How can I get it to?
Thanks for any help
[edit]: Oh, and David, I'm not entirely sure how to check whether DHCP is firewalled or not. How would I do that? Thanks
Ensure your ethernet driver is compile in your kernel.
cd /usr/src/linux
make xconfig
If you want to start with clean config, you can try the suggestion below (try it at your own risk);
-you can backup config files from /boot (e.g. /boot/config-* )
-you can rename those config file with temporary names (e.g. add suffix .bak)
-you can rename /usr/src/linux/.config to a new name (e.g. add suffix .bak)
-you can rerun "make xconfig" or equivalent to regenerate /usr/src/linux/.config.
make xconfig usually try to build the /usr/src/linux/.config by looking at existing config file from /boot.The /usr/src/linux/.config contains instruction on how to build the kernel.
-alternatively, you can try leave a good config file in /boot so that "make xconfig" will try to use it as a default config and then you could tweak other parameters that you want.
forgox, I followed this page's instructions on how to compile the kernel seeing as the guy's laptop is so similar to mine and he's using the same distro. Everything went pretty much like he says on the page, except for not finding the 2.6.10 source (stuck with 2.6.8; I suspect it is so because he added unstable entries to his apt-get list). I even tried using his .conf file, but no >_< anyway, my point is that I never saw any compiler flags anywhere, so...
At any rate, that was one error I corrected - the first time I compiled the kernel, I included the wrong drivers for my card, but I think I've got them correctly now. I could check though...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.