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


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default

2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN group default qlen 1000

3: gre0: <NOARP> mtu 1476 qdisc noop state DOWN group default
    link/gre 0.0.0.0 brd 0.0.0.0
4: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN group
default qlen 1000

5: sit0 .......

It was named as in the book:

/etc/sysconfig/ifconfig.eth0

It always takes me a while until I remember where to look for the right
name:

ls /etc/udev/rules.d/
55-lfs.rules  81-cdrom.rules  83-cdrom-symlinks.rules  99-fuse.rules

Never get /etc/udev/rules.d/70-persistent-net.rules installed.

Discovered the name with:

ls /sys/class/net/
eno16777736  gre0  gretap0  lo  sit0

The device, if necessary, with:

ls -l /sys/class/net/
total 0
lrwxrwxrwx 1 root root 0 Fev 18 08:50 eno16777736 ->
../../devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eno16777736
lrwxrwxrwx 1 root root 0 Fev 18 08:50 gre0 -> ../../devices/virtual/net/gre0
lrwxrwxrwx 1 root root 0 Fev 18 08:50 gretap0 ->
../../devices/virtual/net/gretap0
lrwxrwxrwx 1 root root 0 Fev 18 08:50 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Fev 18 08:50 sit0 -> ../../devices/virtual/net/sit0




-- 
[]s,
Fernando
-- 
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