On Fri, May 27, 2022 at 6:51 PM John Covici <
[email protected]> wrote:
[...]
Thanks. I am not using systemd-network or anything like that. I created a service called network and use the %i and links in /etc/systemd/system/multi-user-target.wants to start my two cards.
Maybe this is not the normal way, but when I first started using
systemd, this is the best I could come up with at the time.
Have you tried using .network files? You can setup it static:
$ cat /etc/systemd/network/enp2s0.network
# Ethernet
[Match]
Name=enp2s0
[Network]
Address=192.168.1.1/24
Gateway=192.168.1.254
DNS=192.168.1.254
or with DHCP:
# /etc/systemd/network/30-bond1.network
[Match]
Name=bond1
[Network]
DHCP=ipv6
Even with wpa_supplicant[1].
Regards.
[1]
https://wiki.somlabs.com/index.php/Connecting_to_WiFi_network_using_systemd_and_wpa-supplicant
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México
<div dir="ltr"><div dir="ltr">On Fri, May 27, 2022 at 6:51 PM John Covici <<a href="mailto:
[email protected]" target="_blank">
[email protected]</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[...]<br>
Thanks. I am not using systemd-network or anything like that. I<br> created a service called network and use the %i and links in<br> /etc/systemd/system/multi-user-target.wants to start my two cards.<br>
Maybe this is not the normal way, but when I first started using<br>
systemd, this is the best I could come up with at the time.<br></blockquote><div><br></div><div>Have you tried using .network files? You can setup it static:</div><div><br></div><div>$ cat /etc/systemd/network/enp2s0.network <br># Ethernet<br><br>[Match]<
Name=enp2s0<br><br>[Network]<br>Address=<a href="http://192.168.1.1/24" target="_blank">192.168.1.1/24</a><br>Gateway=192.168.1.254<br>DNS=192.168.1.254<br></div><div><br></div><div>or with DHCP:</div><div><br></div><div># /etc/systemd/network/30-
bond1.network<br>[Match]<br>Name=bond1<br><br>[Network]<br>DHCP=ipv6<br></div><div><br></div><div>Even with wpa_supplicant[1].</div><div><br></div><div>Regards.</div><div>[1] <a href="
https://wiki.somlabs.com/index.php/Connecting_to_WiFi_network_using_
systemd_and_wpa-supplicant">
https://wiki.somlabs.com/index.php/Connecting_to_WiFi_network_using_systemd_and_wpa-supplicant</a></div><div>--<br></div></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Dr.
Canek Peláez Valdés<br>Profesor de Carrera Asociado C<br>Departamento de Matemáticas<br>Facultad de Ciencias<br>Universidad Nacional Autónoma de México</font></div></div></div></div></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)