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 18:16:22
Message-Id: 6d52877d-0830-92b2-46d6-67fb25ae94c0@web.de
1 This is a multi-part message in MIME format.
2 --------------B898CE0ED264D806801D94F3
3 Content-Type: text/plain; charset=utf-8; format=flowed
4 Content-Transfer-Encoding: quoted-printable
5
6 Okay, I have an update on this.
7
8 Note that wlp3s0 is the WireLess adapter and enp0s2 is the wired
9 Ethernet adapter.
10
11 Given the /etc/conf.d/net as shown below (i.e. only config_wlp3s0=3D"dhcp"=
12 )
13
14 1. If there is *no* /etc/init.d/net.enp0s2 link (or any adapter link),
15 then the wireless connection comes up with a dhcp-derived address
16 2. if there *is* an /etc/init.d/net.enp0s2 link, and the same
17 /etc/conf.d/net file:
18 1. the wireless comes up with no address (and no dhcp attempt in
19 /var/log/syslog)
20 2. The wired adapter has a (dhcp-derived) zero-conf address or
21 something, at 169.
22 3. if a fixed ip address is additionally specified for the wired
23 adapter in /etc/conf.d/net
24 1. it is assigned as specified
25 2. No attempt is made to run dhcp on the wireless anymore (although
26 dhcp *is* specified for it in /etc/conf.d/net)
27
28 The thing is, before my root filesystem got crashed by a negligent ext4
29 recovery, the system came up multi-homed, with a static and a
30 dhcp-derived address.
31 Coming from 4.9.? to 4.19.72.
32
33 Could it be that something changed?
34
35
36 On 12/19/19 08:46, n952162 wrote:
37 > I have this line in /etc/conf.d/net:
38 >
39 > config_wlp3s0=3D"dhcp"
40 >
41 > given:
42 >
43 > $ifconfig wlp3s0
44 > wlp3s0=C2=A0=C2=A0=C2=A0 Link encap:Ethernet=C2=A0 HWaddr xx:xx:xx:xx:xx=
45 :xx
46 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 inet addr:192.168=
47 .178.42 Bcast:192.168.178.255
48 > Mask:255.255.255.0
49 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UP BROADCAST RUNN=
50 ING MULTICAST=C2=A0 MTU:1500 Metric:1
51 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX packets:2008 e=
52 rrors:0 dropped:0 overruns:0 frame:0
53 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TX packets:335 er=
54 rors:0 dropped:0 overruns:0 carrier:0
55 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 collisions:0 txqu=
56 euelen:1000
57 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX bytes:619501=
58 =C2=A0 TX bytes:40551
59 >
60 > but I still have to manually start dhcpcd (now, after installing kernel
61 > 4.19.72).
62 >
63 > Another problem - wpa_supplicant then defines a default gateway, even
64 > though one already existed for the wired connection:
65 >
66 > config_enp2s0=3D"192.168.179.20 netmask 255.255.255.0 brd 192.168.179.25=
67 5"
68 > routes_enp2s0=3D"default via 192.168.179.24"
69 >
70 > I have to then manually delete that when I'm on wireless.=C2=A0 That all
71 > happened automatically before.=C2=A0 I wonder how I broke that all.
72 >
73 >
74
75
76 --------------B898CE0ED264D806801D94F3
77 Content-Type: text/html; charset=utf-8
78 Content-Transfer-Encoding: quoted-printable
79
80 <html>
81 <head>
82 <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-=
83 8">
84 </head>
85 <body text=3D"#000000" bgcolor=3D"#FFFFFF">
86 <p>Okay, I have an update on this.</p>
87 <p>Note that wlp3s0 is the WireLess adapter and enp0s2 is the wired
88 Ethernet adapter.</p>
89 <p>Given the /etc/conf.d/net as shown below (i.e. only <font
90 size=3D"+1"><tt>config_wlp3s0=3D"dhcp"</tt></font>)<br>
91 </p>
92 <ol>
93 <li>If there is <b>no</b> /etc/init.d/net.enp0s2 link (or any
94 adapter link), then the wireless connection comes up with a
95 dhcp-derived address</li>
96 <li>if there <b>is</b> an /etc/init.d/net.enp0s2 link, and the
97 same /etc/conf.d/net file:</li>
98 <ol>
99 <li>the wireless comes up with no address (and no dhcp attempt
100 in /var/log/syslog) <br>
101 </li>
102 <li>The wired adapter has a (dhcp-derived) zero-conf address or
103 something, at 169.</li>
104 </ol>
105 <li>if a fixed ip address is additionally specified for the wired
106 adapter in /etc/conf.d/net<br>
107 </li>
108 <ol>
109 <li>it is assigned as specified<br>
110 </li>
111 <li>No attempt is made to run dhcp on the wireless anymore
112 (although dhcp <b>is</b> specified for it in /etc/conf.d/net)</l=
113 i>
114 </ol>
115 </ol>
116 The thing is, before my root filesystem got crashed by a negligent
117 ext4 recovery, the system came up multi-homed, with a static and a
118 dhcp-derived address.<br>
119 Coming from 4.9.? to 4.19.72.<br>
120 <br>
121 Could it be that something changed?<br>
122 <br>
123 <br>
124 <div class=3D"moz-cite-prefix">On 12/19/19 08:46, n952162 wrote:<br>
125 </div>
126 <blockquote type=3D"cite"
127 cite=3D"mid:9755d4c1-3246-3403-299a-fc73b4d61be3@×××.de">I have this
128 line in /etc/conf.d/net:
129 <br>
130 <br>
131 config_wlp3s0=3D"dhcp"
132 <br>
133 <br>
134 given:
135 <br>
136 <br>
137 $ifconfig wlp3s0
138 <br>
139 wlp3s0=C2=A0=C2=A0=C2=A0 Link encap:Ethernet=C2=A0 HWaddr xx:xx:xx:x=
140 x:xx:xx
141 <br>
142 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 inet addr:192=
143 .168.178.42 Bcast:192.168.178.255=C2=A0
144 <br>
145 Mask:255.255.255.0
146 <br>
147 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UP BROADCAST =
148 RUNNING MULTICAST=C2=A0 MTU:1500 Metric:1
149 <br>
150 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX packets:20=
151 08 errors:0 dropped:0 overruns:0 frame:0
152 <br>
153 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TX packets:33=
154 5 errors:0 dropped:0 overruns:0 carrier:0
155 <br>
156 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 collisions:0 =
157 txqueuelen:1000
158 <br>
159 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RX bytes:6195=
160 01=C2=A0 TX bytes:40551
161 <br>
162 <br>
163 but I still have to manually start dhcpcd (now, after installing
164 kernel
165 <br>
166 4.19.72).
167 <br>
168 <br>
169 Another problem - wpa_supplicant then defines a default gateway,
170 even
171 <br>
172 though one already existed for the wired connection:
173 <br>
174 <br>
175 config_enp2s0=3D"192.168.179.20 netmask 255.255.255.0 brd
176 192.168.179.255"
177 <br>
178 routes_enp2s0=3D"default via 192.168.179.24"
179 <br>
180 <br>
181 I have to then manually delete that when I'm on wireless.=C2=A0 That
182 all
183 <br>
184 happened automatically before.=C2=A0 I wonder how I broke that all.
185 <br>
186 <br>
187 <br>
188 </blockquote>
189 <br>
190 </body>
191 </html>
192
193 --------------B898CE0ED264D806801D94F3--

Replies

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