[lfs-support] Ethernet Card Not Found

Baho Utot baho-utot at columbus.rr.com
Mon Nov 25 17:35:05 PST 2013


On 11/25/2013 07:44 PM, Alan Feuerbacher wrote:

[putolin]

> ONBOOT=yes
> IFACE=p4p1
> SERVICE=ipv4-static
> IP=10.0.1.31
> GATEWAY=10.0.1.1
> PREFIX=24
> BROADCAST=192.168.0.255
>
> 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:
>
> ifconfig.enp3s0
> #######
> ONBOOT=yes
> IFACE=enp3s0
> SERVICE=ipv4-static
> IP=10.0.1.31
> GATEWAY=10.0.1.1
> PREFIX=24
> BROADCAST=192.168.0.255
> #######
> How does one figure out what the "BROADCAST" address is supposed to be?
> I still have no clue whether the one above is right.
The broadcast address is wrong

You need to think binary as in base 2
It should be  10.0.1.255 as your prefix is 24.
So viewing your ip address octets (base 8) left most bit of your ip is 
the "network address/lan address"  ( 10.0.1 )
The broadcast address is "all ones" or 255. So that makes the broadcast 
address network address plus all ones or
10.0.1.255

>
> I borrowed that file straight from the Fedora installation. It has:
>
> resolv.conf
> ######
> domain hsd1.nh.comcast.net.
> search hsd1.nh.comcast.net.
> nameserver 10.0.1.1

This is incorrect your resolv.conf
should have only the domain line or search line but not both.

The domain line is your domain name in this case hsd1.nh.comcast.net

The nameserver should be the address for the DNS server that provides 
name resolving for your lan, which in this case is your router 10.0.1.1.

/etc/host file

127.0.0.1    localhost
127.0.0.2    localhost.localdomain
10.0.1.31    <your computers name>.hsd1.nh.comcast.net

change <your computers name> to the name you gave your computer.






More information about the lfs-support mailing list