1 |
You were right, thank you. When I put net.enp2s0 back in, it came up on |
2 |
reboot this time - the interface, that is. I guess there was something |
3 |
else wrong when I still had it in the defaul runlevel. My faith in |
4 |
openrc is restored :-) |
5 |
|
6 |
|
7 |
On 08/19/19 22:35, n952162 wrote: |
8 |
> On 08/19/19 20:04, J. Roeleveld wrote: |
9 |
>> On 19 August 2019 22:11:04 CEST, n952162<n952162@×××.de> wrote: |
10 |
>>> My eth0/enp2s0 network adapter is configured so: |
11 |
>>> |
12 |
>>> $ cat /etc/conf.d/net |
13 |
>>> |
14 |
>>> config_enp2s0="192.168.179.20/24" |
15 |
>>> |
16 |
>>> ... |
17 |
>>> |
18 |
>>> Why does dhcpcd think it can configure my interface and what's the |
19 |
>>> connection between /etc/conf.d/net and dhcpcd? |
20 |
>> Do you have net.enp2s0 in your default runlevel? |
21 |
>> If not, dhcp is used by default. |
22 |
>> |
23 |
>> -- |
24 |
>> Joost |
25 |
> |
26 |
> I had that and took it out in the hope that it wouldn't try to do |
27 |
> anything with the interface until instructed to do so. |
28 |
> |
29 |
> What program is it that decides that it has to do something with the |
30 |
> interface if there are no instructions otherwise? That is, the |
31 |
> default case? udev? I don't think so. init? |
32 |
> |
33 |
> I see in /etc/inittab: |
34 |
> |
35 |
> l3:3:wait:/sbin/openrc default |
36 |
> |
37 |
> but surely openrc doesn't service network adapters itself? |
38 |
> |
39 |
> I currently have: |
40 |
> |
41 |
> 00~>rc-status |
42 |
> Runlevel: default |
43 |
> sysklogd [ started ] |
44 |
> sshd [ started ] |
45 |
> wpa_supplicant [ stopped ] |
46 |
> dhcpcd [ crashed ] |
47 |
> netmount [ started ] |
48 |
> virtualbox-guest-additions [ stopped ] |
49 |
> cronie [ started ] |
50 |
> acpid [ started ] |
51 |
> local [ started ] |
52 |
> Dynamic Runlevel: hotplugged |
53 |
> Dynamic Runlevel: needed/wanted |
54 |
> dbus [ started ] |
55 |
> modules-load [ started ] |
56 |
> Dynamic Runlevel: manual |
57 |
> net.enp2s0 [ started ] |
58 |
> |
59 |
> I guess the answer to my question is probably that dhcpcd takes that |
60 |
> responsibility on for itself. Is there an option to dhcpcd that says |
61 |
> - "just do as you're told"? |
62 |
> |
63 |
> But then, what program is it that reads /etc/conf.d/net? That program |
64 |
> gets to run when dhcpcd crashes? |
65 |
> |
66 |
> |