vim /etc/network/interfaces
修改为如下信息
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static #修改为static
address 192.168.241.100 #静态ip地址,不要和自己的window下的ip地址重合
netmask 255.255.255.0
gateway 192.168.241.2 #网关
dns-nameserver 119.29.29.29 #dns域名解析,可以更换为其他的,比如阿里云
ubuntu修改静态ip
最新推荐文章于 2024-01-03 10:24:33 发布