debian11 修改ip地址

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

 

posted @ 2024-11-08 15:15  你说夕阳很美  阅读(402)  评论(0)    收藏  举报