[lfs-support] Ethernet Card Not Found

Alan Feuerbacher alanf00 at comcast.net
Mon Nov 25 16:44:16 PST 2013

On 11/25/2013 10:15 AM, Fernando de Oliveira wrote:
> Em 25-11-2013 11:59, Alan Feuerbacher escreveu:

>> 2: p4p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
>> state UP mode DEFAULT group default qlen 1000
>>       link/ether 30:85:a9:8f:31:09 brd ff:ff:ff:ff:ff:ff

> I think that if you s/etho0/p4p1/ in the /etc/sysconfig/ifconfig.etho
> filename and in the file itself, so you would have:
> cat /etc/sysconfig/ifconfig.p4p1
> ONBOOT=yes
> IFACE=p4p1
> SERVICE=ipv4-static
> IP=
> the problem, perhaps, would be solved.

That helped, thank you. What finally solved the problem, though, was 
William's suggestion to look at /sys/class/net, which now contains the 
directory enp3s0. Perhaps this got created after I recompiled the kernel 
with the driver for my Realtek network device. I looked at the linux 
.config file and it now has the line "CONFIG_R8169=y" which is correct.

The file that worked:


Some questions and comments to help me really understand what's going on 
with this file:

Short of going through the rigamarole that I just did, namely, looking 
at /sys/class/net/ and finding a cryptically named directory like 
"enp3s0", with the help of a number of experts, how does a newbie like 
me figure all this out ahead of time? Such as exactly what "IFACE" means 
and what you're supposed to put there?

Apparently things in the linux world have changed recently with respect 
to naming devices generally, so that old conventions like "eth0" have 
been replaced by conventions that are said to make more sense. I suppose 
"enp3s0" makes sense to some people, but "eth0" makes more sense to a 
non-expert like me.

How does someone setting up an LFS system find out the "IP" address? I 
had to look at what Fedora had done to figure this out.

How does one find out the "GATEWAY" address? A friend who is relatively 
expert set up our router, airport and wireless stuff, and I paid no 
attention to this when it was done a few years ago. After googling 
around some, I found a way to figure this out, more or less, by looking 
at stuff in "Control Panel" on my Windows 7 machine. Not cool!

How does one figure out what the "BROADCAST" address is supposed to be? 
I still have no clue whether the one above is right.

Can the LFS book be updated to discuss these things in some detail?

> Remember that you will need a resolv.conf. All I wrote is for manual ip,
> not dhcp, but could help you, there, too, perhaps.

I borrowed that file straight from the Fedora installation. It has:

domain hsd1.nh.comcast.net.
search hsd1.nh.comcast.net.

I've googled "resolv.conf" to try to understand precisely what the 
fields are, but can't find anything useful in the sense of teaching one 
exactly how to determine what goes in the field and how you can find it.

Is the stuff in my resolv.conf correct for this LFS installation?


More information about the lfs-support mailing list