Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] static addr in /etc/conf.d/net ignored, dhcp used. dhcpcd crashes when forced
Date: Mon, 19 Aug 2019 18:12:12
Message-Id: b6bd848d-969d-7176-b889-7147737f31f8@web.de
1 My eth0/enp2s0 network adapter is configured so:
2
3 $ cat /etc/conf.d/net
4
5 config_enp2s0="192.168.179.20/24"
6
7 but on boot, I get a bonjour address:
8
9 enp2s0    Link encap:Ethernet  HWaddr 48:BA:4E:29:99:9E
10           inet addr:*169.254.71.117 * Bcast:169.254.255.255 
11 Mask:255.255.0.0
12
13 if I restart the service immediately after boot, nothing much happens, I
14 still get the bonjour address.
15
16 sudo rc-service net.enp2s0 restart
17
18 Incidently, dhcpcd is still running at this point.
19
20 But after a couple of tries:
21
22 sudo rc-service net.enp2s0 restart
23
24 and then I get my connection:
25
26 $ ifconfig
27 enp2s0    Link encap:Ethernet  HWaddr 48:BA:4E:29:99:9E
28           inet addr:*192.168.179.20* Bcast:192.168.179.255 
29 Mask:255.255.255.0
30
31 And:
32
33 $ sudo rc-service dhcpcd status
34  * status: *crashed*
35
36 From /var/log/syslog:
37 ****
38
39 [  260.895907] dhcpcd[6664]: segfault at 400a00000000 ip
40 0000560edbf464bd sp 00007ffe06bf4f10 error 4 in
41 dhcpcd[560edbf23000+46000]*
42
43 *
44
45 Why does dhcpcd think it can configure my interface and what's the
46 connection between /etc/conf.d/net and dhcpcd?

Replies