Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-21-2007, 02:42 PM
|
#1
|
LQ Newbie
Registered: Jun 2007
Location: Finland
Distribution: Debian Lenny (Testing)
Posts: 14
Rep:
|
"Interface eth0 doesn't exist. [ WARN ]" on boot-up
I'm trying to get my internet working for my LFS system I just today managed to make it work.
What happens is that I get
Code:
Bringing up the eth0 interface...
Interface eth0 doesn't exist. [ WARN ]
on bootup.
Code:
root:/# grep -H . /sys/class/net/*/address
grep: /sys/class/net/*/address: No such file or directory
Code:
root:/# cat /etc/udev/rules.d/26-network.rules
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:00:00:00:00:00", NAME=="eth0"
Code:
root:/# cat /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.0.101
GATEWAY=192.168.0.254
PREFIX=28
BROADCAST=192.168.1.255
Code:
aleksanteri@K4:~$ lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
05:00.0 VGA compatible controller: nVidia Corporation Unknown device 0162 (rev a1)
Any help would be appreciated 
Last edited by aleksanteri; 06-21-2007 at 02:51 PM.
|
|
|
06-21-2007, 08:15 PM
|
#2
|
LQ Newbie
Registered: Jan 2006
Distribution: Slackware 11.0
Posts: 23
Rep:
|
Looks like your kernel doesn't have the driver for your network adapter compiled in. If
Code:
$ dmesg | grep eth0
doesn't show anything, you most likely need to manually load the appropriate module into the kernel.
|
|
|
06-22-2007, 04:29 AM
|
#3
|
LQ Newbie
Registered: Jun 2007
Location: Finland
Distribution: Debian Lenny (Testing)
Posts: 14
Original Poster
Rep:
|
[$ dmesg | grep eth0] truly doesn't give anything. I tried to load the module, but I can't find any appropriate networking module in the menuconfig.
Am I doing something wrong in this point?
|
|
|
06-22-2007, 11:08 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Looks indeed like a missing driver. You could try the 'forced' (nvidia) driver.
If you use the 2.6.16.27 kernel that goes with LFS 6.2, you can find it here:
Device Drivers -> Network device support -> Ethernet (10 or 100Mbit) -> EISA, VLB, PCI and on board controllers -> Reverse Engineered nForce Ethernet support (EXPERIMENTAL)
If you use a newer kernel it could be named differently, this is from a 2.6.20.4 kernel:
Device Drivers -> Network device support -> Ethernet (10 or 100Mbit) -> EISA, VLB, PCI and on board controllers -> nForce Ethernet support (NEW).
It is not turned on by default!
Hope this helps.
|
|
|
06-22-2007, 04:32 PM
|
#5
|
LQ Newbie
Registered: Jun 2007
Location: Finland
Distribution: Debian Lenny (Testing)
Posts: 14
Original Poster
Rep:
|
Nice, that does the trick, thanks 
|
|
|
10-16-2007, 02:38 PM
|
#6
|
LQ Newbie
Registered: Oct 2004
Location: Brussels
Posts: 6
Rep:
|
Slackware 12 & udev
I had issues on Slackware 12 I could not get arround by configuring inet1.conf , modules.conf, loading drivers manually. eth0 was known as eth1 and eth0 did not exist.
Configuring the udev rule as stated here did the trick:
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:00:00:00:00:00", NAME=="eth0"
Thks
--cgoetz
|
|
|
10-26-2007, 05:44 PM
|
#7
|
LQ Newbie
Registered: Sep 2006
Location: india
Distribution: fedora core5
Posts: 1
Rep:
|
"Interface eth0 doesn't exist. [ WARN ]"
Great! cgoetz your method is working
Last edited by kul292008; 10-26-2007 at 05:46 PM.
|
|
|
10-29-2007, 03:19 PM
|
#8
|
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541
|
Help!
I just started running my installation of CLFS (cross-compiled LFS), and I am too having trouble with the network set up. Here's what I have:
Code:
# grep -H . /sys/class/net/*/address
/sys/class/net/eth0/address:00:30:59:02:42:ea
/sys/class/net/lo/address:00:00:00:00:00:00
Code:
# cat /etc/udev/rules.d/26-network.rules
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:00:00:00:00:00", NAME="eth0"
I've also tried:
Code:
# cat /etc/udev/rules.d/26-network.rules
ACTION=="add", SUBSYSTEM=="net", BUS=="pci", ID=="0000:00:12.0", NAME="eth0"
I have only one ethernet controller, and it is an Intel 8255xER/82551IT Fast Ethernet Controller, which to the best of my knowledge uses the eepro100 kernel driver.
Code:
# lsmod
Module Size Used by
af_packet 17160 0
evdev 9472 0
eepro100 28944 0
mii 5504 1 eepro100
Code:
# lspci | grep -i ethernet
00:12.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev 10)
I've tried setting up both static and DHCP (preferred) configurations for the eth0 interface. With the static setup, the interface is brought up, however I am unable to ping anything on my local network. The DHCP fails to even come up.
Here's the configuration for the static IP setup:
Code:
# cat /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.107
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
Is there something obvious that I am missing?
Last edited by dwhitney67; 10-29-2007 at 04:03 PM.
|
|
|
10-29-2007, 08:37 PM
|
#9
|
Member
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298
Rep:
|
Quote:
Originally Posted by dwhitney67
Help!
I just started running my installation of CLFS (cross-compiled LFS), and I am too having trouble with the network set up. Here's what I have:
Code:
# grep -H . /sys/class/net/*/address
/sys/class/net/eth0/address:00:30:59:02:42:ea
/sys/class/net/lo/address:00:00:00:00:00:00
Code:
# cat /etc/udev/rules.d/26-network.rules
ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="00:00:00:00:00:00", NAME="eth0"
I've also tried:
Code:
# cat /etc/udev/rules.d/26-network.rules
ACTION=="add", SUBSYSTEM=="net", BUS=="pci", ID=="0000:00:12.0", NAME="eth0"
Is there something obvious that I am missing?
|
Look at your /sys/class/net/*/address
Notice something?
Code:
ACTION=="add", SUBSYSTEM=="net", BUS=="pci", ID=="0000:00:30:59:02:42:ea", NAME=="eth0"
Code:
ACTION=="add", SUBSYSTEM=="net", BUS=="pci", SYSFS{address}=="0000:00:30:59:02:42:ea", NAME=="eth0"
See if one of my alteration works. 
Last edited by Seph64; 10-29-2007 at 08:41 PM.
|
|
|
10-29-2007, 09:23 PM
|
#10
|
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541
|
Seph64 -
Thanks for the suggestions, however I still cannot my system's ethernet to work. Is there perhaps another file that I need to examine (that I have not already listed in my first post)? I want to set up my udev rules' file such that I do not have to hard-code the MAC address. I need to be able to use my distro on a multitude of systems, not just the one I am currently using as a test-bed.
To conclude, I tried both of your suggestions, and still no joy.
Btw, could it a be a kernel configuration issue? I have these options configured as follows:
Code:
CONFIG_NET=y
CONFIG_PACKET=m
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_FIB_HASH=y
CONFIG_TCP_CONG_BIC=y
...
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_TUN=m
...
CONFIG_NET_ETHERNET=y
CONFIG_MII=m
...
CONFIG_NET_PCI=y
CONFIG_EEPRO100=m
|
|
|
11-07-2007, 12:40 PM
|
#11
|
Senior Member
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541
|
I resolved the issue I was having with my system. Apparently the eepro100 is the correct driver to use for my network card when using an earlier kernel (2.4.27), however it is not the appropriate driver when running 2.6.17.13. For the later kernel I had to use the e100 driver.
This revelation came about when I tested my system with Knoppix, thus gleaning from the modules it loaded, as to which was the correct net driver for my system.
Anyhow, all is well now. Thank you everyone for your help.
|
|
|
All times are GMT -5. The time now is 01:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|