Click to See Complete Forum and Search --> : eth0 can't get to outside world on 2.6 kernel


bandwidth_pig
11-28-2003, 05:42 PM
I just can't seem to keep myself away from that 2.6 kernel. At any rate, I have a interesting scenario I can't get around. I'm hoping one of you might be able to give me some tips. After compiling my 2.6 kernel (test 11) I was happy to see in dmesg that my NIC seems to be found and the selected module loaded ok without problems. But interestingly, when I login, ifconfig does not show eth0. So...I followed the usual route in /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp

So, I happily reboot thinking I will get my IP from my router. No such luck. The interface still doesn't come up. So I try:

/etc/init.d/networking restart

hoping it will wake something up. Interestingly it comes back with:

"Reconfiguring network interfaces: cat: /var/run/dhclient.pid: No such file or directory. Unrecognized kernel version."

So...whereis dhclient:

dhclient: /sbin/dhclient

/sbin/dhclient

Unrecognized kernel version

I can however, set a IP on the interface through ifconfig and be able to ping about inside my LAN. But can't get to the outside world. I have no /etc/resolv.conf either. Any ideas? I'm running Debian. :confused:

Gertrude
11-28-2003, 07:58 PM
I haven't used any of the 2.6 kernels yet, so I'm not sure if you have to do this in those kernels.

Did you add socket, and packet filtering into the kernel? I know you have to do that in 2.2 and 2.4 kernels.

bandwidth_pig
11-28-2003, 09:49 PM
Yes I did Gert. It was that dhcp client. I went and compiled the 2.4.22 kernel, downloaded a new client through apt, and then booted back into 2.6 and it worked like a charm.