Fernando de Oliveira wrote:
> Em 18-02-2014 12:49, Pierre Labastie escreveu:
>> Le 18/02/2014 16:26, Oshadha Gunawardena a écrit :
>>> Hi again all,
>>>
>>> I have completed my LFS build. And I wanted to install dhcpcd. So as
>>> in the BLFS I have followed every step and it seems everything went well
>>>
>>> *make install-service-dhcpcd*
>>> install -d -m 755 /lib/services
>>> install -m 754 blfs/services/dhcpcd  /lib/services
>>>
>>> *cat /etc/sysconfig/ifconfig.eth0 *
>>>
>>> ONBOOT="yes"
>>> IFACE="eth0"
>>> SERVICE="dhcpcd"
>>> DHCP_START="-b -q"
>>> DHCP_STOP="-k"
>>>
>>> Once I boot in to the system it does not starting up automatically. I
>>> always has to run the "dhcpcd" to get it up. So I'm wondering what
>>> maybe the issue.
>>>
>> Just guessing here.
>> Do you have any other file beginning with ifconfig in /etc/sysconfig?
>> If there is one, does it have ONBOOT=no?
>> Now coming to dhcpcd. Does it start when running:
>> ---
>> ifup eth0
>> ---
>> instead of dhcpcd?
>
> Good point.
>
> My previous LFS-7.4, had the interface named enp2s1:
>
> /etc/sysconfig/ifconfig.enp2s1
>
> My new LFS-7.5-rc1: eno16777736
>
> /etc/sysconfig/ifconfig.eno16777736


You need to change IFACE="eno16777736"

Or create a rule like:

$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# net device e1000e
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:25:64:38:ec:dd", ATTR{dev_id}=="0x0", 
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Note 1: Change the address as appropriate.  You may also need to change 
KERNEL to "en*".

Note 2: The extension on the ifconfig file is irrelevant for the 
scripts.  It only needs to be relevant to you.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to