kit/systemd/network
mpmc 6e7218c685 wwan0.network - RequiredForOnline=no
qmi-network@.service - add more variables for ping options & increase ping timeouts
2023-06-18 10:48:21 +01:00
..
README.md add files from misc repo 2022-09-14 23:09:19 +01:00
eth0-static.network add static eth0 example & only enable systemd-resolved if available on distro 2023-05-21 23:22:34 +01:00
eth0.network fix eth0.network 2023-05-18 18:10:55 +01:00
usb0.network use quad9 everywhere else 2023-05-08 21:03:49 +01:00
wg0.netdev rename files & change default filename created by dhcp script 2022-09-30 12:04:32 +01:00
wg0.network rename files & change default filename created by dhcp script 2022-09-30 12:04:32 +01:00
wgs0.netdev rename files & change default filename created by dhcp script 2022-09-30 12:04:32 +01:00
wgs0.network rename files & change default filename created by dhcp script 2022-09-30 12:04:32 +01:00
wlan0.network use quad9 everywhere else 2023-05-08 21:03:49 +01:00
wwan-simcom7600.md add files from misc repo 2022-09-14 23:09:19 +01:00
wwan0.network wwan0.network - RequiredForOnline=no 2023-06-18 10:48:21 +01:00

README.md

Usage

Copy the device files that you need to /etc/systemd/network/.

Be sure the file-names, folders and configuration values (within the files) are changed to match your devices (note 1). Wifi (wlan) devices also need wpa_supplicant configured to work.

Example

Say I have eth0 and want network access (and an IP via DHCP) from my router; I would do the following...

sudo -s # Drop to root.
cp -rv 10-eth0* /etc/systemd/network/ # Copy the files.

systemctl enable --now systemd-networkd # Enable networkd now.

networkctl reload # Reload the configuration.

networkctl status # Check the log for any errors.

If there are NO and I mean NO errors from the commands above...

networkctl reconfigure eth0 # Tell networkd to reconfigure the device.

mv /etc/network/ /etc/network.disabled/ Move the old network configuration.

reboot # Restart to be sure.

Enabling systemd-resolved

I like to use systemd-resolved for DNS..

sudo -s # Drop to root.

ln -sfv /var/run/systemd/resolve/stub-resolv.conf /etc/resolv.conf # Create a symlink.

systemctl enable --now systemd-resolved # Enable resolved now.

Notes

1: This is very important otherwise things won't work. For example, if you have eth1 and not eth0 you'll have to copy and/or rename eth0.network to eth1.network. Check, and then check again.