LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Reboot LFS6.1:Interface eth0 doesn't exist! (https://www.linuxquestions.org/questions/linux-from-scratch-13/reboot-lfs6-1-interface-eth0-doesnt-exist-357465/)

ukyo 08-27-2005 06:25 AM

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
==========================
???
:Pengy:

Andrew Benton 08-27-2005 08:04 AM

http://www.faqs.org/docs/ethernet/Et...O-1.html#ss1.2

shotokan 08-29-2005 04:21 AM

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.

sundialsvcs 08-31-2005 11:57 AM

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? :)

Whitesocks 09-07-2005 06:04 AM

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. =)


All times are GMT -5. The time now is 08:05 PM.