Netzwerk configured

This commit is contained in:
eichehome 2022-01-16 22:49:44 +01:00
parent ea25859fa4
commit 2befef5e45

View file

@ -62,3 +62,45 @@ echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch.conf
# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch.conf
echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf
echo 'options root="LABEL=arch" rw' >> /boot/loader/entries/arch.conf
# Netzwerk
# Ethernet
echo "[Match]" >> /etc/systemd/network/20-ethernet.network
echo "Name=en*" >> /etc/systemd/network/20-ethernet.network
echo "Name=eth*" >> /etc/systemd/network/20-ethernet.network
echo "" >> /etc/systemd/network/20-ethernet.network
echo "[Network]" >> /etc/systemd/network/20-ethernet.network
echo "DHCP=yes" >> /etc/systemd/network/20-ethernet.network
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-ethernet.network
echo "" >> /etc/systemd/network/20-ethernet.network
echo "[DHCPv4]" >> /etc/systemd/network/20-ethernet.network
echo "RouteMetric=100" >> /etc/systemd/network/20-ethernet.network
echo "" >> /etc/systemd/network/20-ethernet.network
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-ethernet.network
echo "RouteMetric=100" >> /etc/systemd/network/20-ethernet.network
# Wlan
echo "[Match]" >> /etc/systemd/network/20-wlan.network
echo "Name=wl*" >> /etc/systemd/network/20-wlan.network
echo "" >> /etc/systemd/network/20-wlan.network
echo "[Network]" >> /etc/systemd/network/20-wlan.network
echo "DHCP=yes" >> /etc/systemd/network/20-wlan.network
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-wlan.network
echo "" >> /etc/systemd/network/20-wlan.network
echo "[DHCPv4]" >> /etc/systemd/network/20-wlan.network
echo "RouteMetric=600" >> /etc/systemd/network/20-wlan.network
echo "" >> /etc/systemd/network/20-wlan.network
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-wlan.network
echo "RouteMetric=600" >> /etc/systemd/network/20-wlan.network
# Wwan (Mobilefunk)
echo "[Match]" >> /etc/systemd/network/20-wwan.network
echo "Name=ww*" >> /etc/systemd/network/20-wwan.network
echo "" >> /etc/systemd/network/20-wwan.network
echo "[Network]" >> /etc/systemd/network/20-wwan.network
echo "DHCP=yes" >> /etc/systemd/network/20-wwan.network
echo "IPv6PrivacyExtensions=yes" >> /etc/systemd/network/20-wwan.network
echo "" >> /etc/systemd/network/20-wwan.network
echo "[DHCPv4]" >> /etc/systemd/network/20-wwan.network
echo "RouteMetric=700" >> /etc/systemd/network/20-wwan.network
echo "" >> /etc/systemd/network/20-wwan.network
echo "[IPv6AcceptRA]" >> /etc/systemd/network/20-wwan.network
echo "RouteMetric=700" >> /etc/systemd/network/20-wwan.network