Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] wpa_supplicant not starting dhcpcd Tamer Higazi <th982a@××××××××××.com>