resolved.conf / network auf systemd umstellen

sudo apt-get –purge autoremove network-manager network-manager-gnome

vim /etc/systemd/resolved.conf

[Resolve]
DNS=192.168.2.134
DNSSEC=off

#backwards compatiblity
vim /etc/resolv.conf
nameserver 192.168.2.134
domain mattionline.lan

apt-get remove –purge resolvconf

systemctl disable dhcpcd

systemctl disable networking

cd /etc/
ln -s /run/systemd/resolv/resolv.conf resolv.conf

systemctl enable systemd-resolved.service
systemctl restart systemd-resolved.service

vim /etc/systemd/network/main.network

[Match]
Name=enp3s0

[Network]
Address=192.168.2.120/24 #deine statische ip
Gateway=192.168.2.1

ifdown enp3s0
mv /etc/network/interfaces /etc/network/interfacec.old
update-rc.d networking remove

systemctl enable systemd-networkd.service
systemctl restart systemd-networkd.service

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.