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 @   你说夕阳很美  阅读(253)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2023-11-08 linux /sys/class/dmi/id目录详解
点击右上角即可分享
微信分享提示