add systemd-networkd config script to repo

master
Alex 2023-04-18 23:19:12 -05:00
parent d5998fb3de
commit b7d9b47c3d
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Match]
Name=enp3s0
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=10
[IPv6AcceptRA]
RouteMetric=10

View File

@ -0,0 +1,11 @@
[Match]
Name=wlan0
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=20
[IPv6AcceptRA]
RouteMetric=20

View File

@ -0,0 +1,11 @@
#!/bin/sh
echo "copying default systemd-networkd config files located in: "
echo " ../files/systemd/network/basic/ to: /etc/systemd/network/"
echo " modify these files if there is no internet connectivity."
echo " see available network devices (Name=*) with: ls /sys/class/net/"
sudo cp ../files/systemd/network/basic/* /etc/systemd/network/
sudo systemctl enable --now systemd-networkd.service
sudo systemctl enable --now systemd-resolved.service