debian 12设置静态ip、dns_debian12 配置ip及dns-CSDN博客
如何在 Debian 11 上设置静态 IP 地址
# vi /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5).source /etc/network/interfaces.d/*# The loopback network interface auto lo iface lo inet loopback# The primary network interface #allow-hotplug ens192 #iface ens192 inet dhcp auto ens192 iface ens192 inet static address 192.168.10.107 netmask 255.255.255.0 gateway 192.168.10.1 dns-nameservers 8.8.4.4 8.8.8.8
# systemctl restart networking.service