LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 08-27-2005, 06:25 AM   #1
ukyo
Member
 
Registered: Sep 2004
Location: JiangsuChina
Distribution: LOVEHuiKai
Posts: 38

Rep: Reputation: 15
Reboot LFS6.1:Interface eth0 doesn't exist!


cat /etc/hosts
# Begin /etc/hosts (no network card version)
127.0.0.1 LoveHuikai localhost
#end
==========================
cat h/etc/sysconfig/network-devices/ifconfig.eth0/ipv4
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255
===========================
cat h/etc/resolv.conf
# Begin /etc/resolv.conf
LoveHuikai
127.0.0.1
#end
==========================
???
 
Old 08-27-2005, 08:04 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
http://www.faqs.org/docs/ethernet/Et...O-1.html#ss1.2
 
Old 08-29-2005, 04:21 AM   #3
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Are you trying to setup a ethernet connection?

If so, it has a-lot to do with the drivers you loaded before the initialization script started.

If not, you don't need to worry about it.
 
Old 08-31-2005, 11:57 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
Support for Ethernet cards is often provided by a loadable driver-module, of which there seem to be many dozen in a typical "distro." If your (original) system is up, you can figure out which one is actually used via lsmod. There's a very good chance that it's a single driver called tulip.

What you need to do, then, is to include that driver in your kernel. I prefer to have all device-drivers that are actually needed by my system, right in my kernel, and to omit all of the rest so that loadable kernel-modules are needed for any step of routine system operation .. certainly not for startup.

Failing that, you'll need to make sure that the proper module is loaded, perhaps by surfing the dmesg command-output. That mechanism has changed considerably from 2.4 to 2.6. (And perhaps that's the biggest reason why I chose to avoid it entirely.)

Yeah, it might take a little bit of recompiling ... maybe a lot (not too likely) ... but hey, that's why you're here and not over there, eh?

Last edited by sundialsvcs; 08-31-2005 at 12:01 PM.
 
Old 09-07-2005, 06:04 AM   #5
Whitesocks
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Install lspci. It will give you a list of what hardware you have and give you a clue of what driver you need to get the network card to work. Remember the name it lists for your card, then go to your kernel sources, run make menuconfig and check the list for any driver that might fit that name.

Then you compile the kernel with support for the driver, install the new kernel and problem will be solved. Hopefully. =)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Interface eth0 does not exist" Whitesocks Linux - Networking 2 09-05-2005 04:19 AM
tun interface does not exist in slackware 10.1 with kernel 2.6.11.10 antken Linux - Networking 1 05-29-2005 09:10 PM
Bringing up interface eth0 Delaying eth0 initialization. [ FA bansal_ashok Linux - Networking 4 05-27-2005 10:09 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
eth0 interface intialization fails during reboot from windows to linux dhanakom Linux - Networking 6 07-20-2003 07:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration