================================================================================== debian static network ================================================================================== 1. set a static ip 2. stop the desktop gui from changing your network settings ================================================================================== /etc/network/interfaces ---------------------------------------------------------------------------------- source /etc/network/interfaces.d/* auto lo iface lo inet loopback allow-hotplug enp0s3 iface enp0s3 inet static address 192.168.100.101 gateway 192.168.100.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 1.1.1.1 1.0.0.1 ================================================================================== /etc/NetworkManager/NetworkManager.conf ---------------------------------------------------------------------------------- [main] plugins=ifupdown,keyfile [ifupdown] managed=false