Gentoo Archives: gentoo-user

From: Tamer Higazi <th982a@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] wpa_supplicant not starting dhcpcd
Date: Sun, 22 Dec 2019 23:46:35
Message-Id: 5bf6d8c3-3cf3-a41d-e85e-f3c8e0d143e3@googlemail.com
In Reply to: Re: [gentoo-user] wpa_supplicant not starting dhcpcd by n952162
1 I am very happy with systemd and I am getting used to it.
2 I get my things to run and see also my system getting booted much faster
3 as with openrc.
4
5 But this is one other subject people have to decide for themselves on
6 their behalf.
7
8
9 best, Tamer
10
11
12 On 2019-12-22 20:30, n952162 wrote:
13 > :-)
14 >
15 > openrc is a really big "plus" in gentoo.  I avoid systemd.
16 >
17 > In the meantime, I have discovered functions that can be invoked in
18 > /etc/conf.d/net that should be really useful.  I hope to add a
19 > [RESOLVED] if I get them to work.
20 >
21 > I have no idea why it worked as I expected before my filesystem crash.
22 >
23 >
24 > On 12/22/19 19:19, Tamer Higazi wrote:
25 >> sorry.....
26 >>
27 >> I am totally stupid. I got you now.
28 >>
29 >> Check if the networkmanager of systemd or "DEFINETLY" openrc is used.
30 >> More I cannot tell you....
31 >>
32 >>
33 >> best, Tamer
34 >>
35 >> On 2019-12-21 18:15, n952162 wrote:
36 >>>
37 >>> Okay, I have an update on this.
38 >>>
39 >>> Note that wlp3s0 is the WireLess adapter and enp0s2 is the wired
40 >>> Ethernet adapter.
41 >>>
42 >>> Given the /etc/conf.d/net as shown below (i.e. only
43 >>> config_wlp3s0="dhcp")
44 >>>
45 >>>  1. If there is *no* /etc/init.d/net.enp0s2 link (or any adapter
46 >>>     link), then the wireless connection comes up with a dhcp-derived
47 >>>     address
48 >>>  2. if there *is* an /etc/init.d/net.enp0s2 link, and the same
49 >>>     /etc/conf.d/net file:
50 >>>      1. the wireless comes up with no address (and no dhcp attempt in
51 >>>         /var/log/syslog)
52 >>>      2. The wired adapter has a (dhcp-derived) zero-conf address or
53 >>>         something, at 169.
54 >>>  3. if a fixed ip address is additionally specified for the wired
55 >>>     adapter in /etc/conf.d/net
56 >>>      1. it is assigned as specified
57 >>>      2. No attempt is made to run dhcp on the wireless anymore
58 >>>         (although dhcp *is* specified for it in /etc/conf.d/net)
59 >>>
60 >>> The thing is, before my root filesystem got crashed by a negligent
61 >>> ext4 recovery, the system came up multi-homed, with a static and a
62 >>> dhcp-derived address.
63 >>> Coming from 4.9.? to 4.19.72.
64 >>>
65 >>> Could it be that something changed?
66 >>>
67 >>>
68 >>> On 12/19/19 08:46, n952162 wrote:
69 >>>> I have this line in /etc/conf.d/net:
70 >>>>
71 >>>> config_wlp3s0="dhcp"
72 >>>>
73 >>>> given:
74 >>>>
75 >>>> $ifconfig wlp3s0
76 >>>> wlp3s0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
77 >>>>           inet addr:192.168.178.42 Bcast:192.168.178.255
78 >>>> Mask:255.255.255.0
79 >>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
80 >>>>           RX packets:2008 errors:0 dropped:0 overruns:0 frame:0
81 >>>>           TX packets:335 errors:0 dropped:0 overruns:0 carrier:0
82 >>>>           collisions:0 txqueuelen:1000
83 >>>>           RX bytes:619501  TX bytes:40551
84 >>>>
85 >>>> but I still have to manually start dhcpcd (now, after installing
86 >>>> kernel
87 >>>> 4.19.72).
88 >>>>
89 >>>> Another problem - wpa_supplicant then defines a default gateway, even
90 >>>> though one already existed for the wired connection:
91 >>>>
92 >>>> config_enp2s0="192.168.179.20 netmask 255.255.255.0 brd
93 >>>> 192.168.179.255"
94 >>>> routes_enp2s0="default via 192.168.179.24"
95 >>>>
96 >>>> I have to then manually delete that when I'm on wireless. That all
97 >>>> happened automatically before.  I wonder how I broke that all.
98 >>>>
99 >>>>
100 >>>
101 >>
102 >
103 >