Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 have fresh a Debian 3.0r1 install. By default, it installed kernel 2.2.20-idepci, but I need to run a 2.4 kernel. (I need to use 'mathematica', and it is crashing when used with the 2.2 kernel, but works with 2.4.)
I've installed a 2.4 kernel package (kernel-image-2.4.18-686 2.4.18-5). I can happily boot into either the 2.2 kernel or 2.4 kernel with Lilo - however, I have no network connection when I boot into the 2.4 kernel.
I've traced what happens when /etc/init.d/networking runs, and the problem appears to be in dhcp. (I am on a university network which uses dhcp - this isn't under my control.) I've tried three different dhcp clients without success.
By default, I started with the "dhcp-client" package:
# dhclient eth0
eth0: ERROR while getting interface flags: No such device
then I tried installing the dhcp3-client package:
# dhclient eth0
Internet Software Consortium DHCP Client V3.0.1rc9
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit ... (URL deleted because I'm not yet considered trusted enough to include one.)
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
I searched LinuxQuestions and found a couple of places where people where having dhcp problems and answers recommended running "dhcpcd -t 10 -d eth0", so I installed the dhcpcd package. It simply returns an error condition with no output:
# dhcpcd -t 10 -d eth0
# echo $?
1
However, all three dhcp clients work with the 2.2 kernel, e.g.
# dhcpcd -t 10 -d eth0
dhcpcd: MAC address = 00:0a:e6:92:13:5d
dhcpcd: your IP address = 130.123.77.167
Here is the output of ifconfig when it is working (the 2.2 kernel):
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E6:92:13:5D
inet addr:130.123.77.167 Bcast:130.123.79.255 Mask:255.255.240.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17486 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2120255 (2.0 MiB) TX bytes:43116 (42.1 KiB)
Interrupt:11 Base address:0xc000
The above post pointed me in the right direction, but there were a few more steps:
"discover ethernet" told me I had a RealTek 8139 NIC.
The Linux ethernet howto told me that the driver for this is called 8139too
The man pages told me that "insmod 8139too" would load the module, and that by putting "8139too" in /etc/modules, this would happen automatically at boot time.
Hi Filias,
I have the same problem as yours. Have you solved your problem?
What steps needed to perform in order to get the NIC worked?
My env : Presario 900/ kernel 2.4.20 / Debian 3.0 r2 / vmware 4.5
I appreciate your reply, sincerely.
Arsene
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.