×

eve-ng修改固定IP地址操作方法

hqy hqy 发表于2022-12-30 16:12:00 浏览1450 评论0

抢沙发发表评论

eve-ng修改固定IP地址操作方法

EVE-NG配置静态固定地址

vi /etc/network/interfaces

修改以下内容:

The loopback network interface

auto lo

iface lo inet loopback

The primary network interface

iface eth0 inet manual

auto pnet0

iface pnet0 inet static

bridge_ports eth0

bridge_stp off

address 192.168.0.219

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameserver 114.114.114.114

然后重启网卡生效

/etc/init.d/networking restart


ping 域名时,要等很久才有反应,

nslookup 发现解析是127.0.0.1 

修改/etc/resole.conf   

nameserver 114.114.114.114  保存后,失效,一看,不能修改。


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/3386.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客