System has two fixed ip wired nics and wireless.
Moving wired nics under systemd-network has decreased boot time by ~40 seconds.
I want my wireless to connect to one of 4 modems by default. From what I misunderstand I should be able to link /etc/wpa_supplicant.conf to whichever /etc/wpa_supplicant/MODEM.conf and next reboot/network restart should have an established connection. So far have failed to bring up the wireless connection connected to modem.
route -n shows it there but can not ping yahoo.com if I drop the wired connection. Current settings:
- Code: Select all
# cd /usr/lib/systemd/network/
# ls -1 *_my__*
10_my__enp3s0.network
11_my__enp4s0.network
12_my__wlp2s0.network
# grep -v ^# 10_my__enp3s0.network
[Match]
Name=enp3s0
[Network]
Description=LAN_NIC
DNS=127.0.0.1
Domains=home.test
[Address]
Address=192.168.11.132/24
[Route]
Gateway=192.168.11.1
----------------------
# grep -v ^# 12_my__wlp2s0.network
[Match]
Name=wlp2s0
[Network]
Description=WIFI
DNS=127.0.0.1
[DHCP]
RouteMetric=10
--------------------------
For above to work
systemctl mask network.service
systemctl mask network-up.service
systemctl mask NetworkManager.service
systemctl mask NetworkManager-wait-online.service
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl enable systemd-resolved
systemctl enable systemd-networkd
systemctl enable systemd-networkd-wait-online
reboot