On Fri, May 27, 2022 at 6:51 PM John Covici <cov...@ccs.covici.com> 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

Reply via email to