Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] wpa_supplicant not starting dhcpcd
Date: Sat, 21 Dec 2019 17:16:27
Message-Id: 6d52877d-0830-92b2-46d6-67fb25ae94c0@web.de
In Reply to: [gentoo-user] wpa_supplicant not starting dhcpcd by n952162
1 Okay, I have an update on this.
2
3 Note that wlp3s0 is the WireLess adapter and enp0s2 is the wired
4 Ethernet adapter.
5
6 Given the /etc/conf.d/net as shown below (i.e. only config_wlp3s0="dhcp")
7
8 1. If there is *no* /etc/init.d/net.enp0s2 link (or any adapter link),
9 then the wireless connection comes up with a dhcp-derived address
10 2. if there *is* an /etc/init.d/net.enp0s2 link, and the same
11 /etc/conf.d/net file:
12 1. the wireless comes up with no address (and no dhcp attempt in
13 /var/log/syslog)
14 2. The wired adapter has a (dhcp-derived) zero-conf address or
15 something, at 169.
16 3. if a fixed ip address is additionally specified for the wired
17 adapter in /etc/conf.d/net
18 1. it is assigned as specified
19 2. No attempt is made to run dhcp on the wireless anymore (although
20 dhcp *is* specified for it in /etc/conf.d/net)
21
22 The thing is, before my root filesystem got crashed by a negligent ext4
23 recovery, the system came up multi-homed, with a static and a
24 dhcp-derived address.
25 Coming from 4.9.? to 4.19.72.
26
27 Could it be that something changed?
28
29
30 On 12/19/19 08:46, n952162 wrote:
31 > I have this line in /etc/conf.d/net:
32 >
33 > config_wlp3s0="dhcp"
34 >
35 > given:
36 >
37 > $ifconfig wlp3s0
38 > wlp3s0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
39 >           inet addr:192.168.178.42 Bcast:192.168.178.255
40 > Mask:255.255.255.0
41 >           UP BROADCAST RUNNING MULTICAST  MTU:1500 Metric:1
42 >           RX packets:2008 errors:0 dropped:0 overruns:0 frame:0
43 >           TX packets:335 errors:0 dropped:0 overruns:0 carrier:0
44 >           collisions:0 txqueuelen:1000
45 >           RX bytes:619501  TX bytes:40551
46 >
47 > but I still have to manually start dhcpcd (now, after installing kernel
48 > 4.19.72).
49 >
50 > Another problem - wpa_supplicant then defines a default gateway, even
51 > though one already existed for the wired connection:
52 >
53 > config_enp2s0="192.168.179.20 netmask 255.255.255.0 brd 192.168.179.255"
54 > routes_enp2s0="default via 192.168.179.24"
55 >
56 > I have to then manually delete that when I'm on wireless.  That all
57 > happened automatically before.  I wonder how I broke that all.
58 >
59 >