add systemd-networkd config script to repo
parent
d5998fb3de
commit
b7d9b47c3d
|
@ -0,0 +1,11 @@
|
|||
[Match]
|
||||
Name=enp3s0
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
|
||||
[DHCPv4]
|
||||
RouteMetric=10
|
||||
|
||||
[IPv6AcceptRA]
|
||||
RouteMetric=10
|
|
@ -0,0 +1,11 @@
|
|||
[Match]
|
||||
Name=wlan0
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
|
||||
[DHCPv4]
|
||||
RouteMetric=20
|
||||
|
||||
[IPv6AcceptRA]
|
||||
RouteMetric=20
|
|
@ -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
|
Loading…
Reference in New Issue