一、需求
EVE-NG想要自己单独分配IP地址;
不想用vmware的nat地址自动分配;
二、配置
只需改动一下配置文件
vim /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 #eve-ng默认网卡(VMware虚拟机NAT模式)
bridge_stp off
address x.x.x.x #自己想要改变的IP地址
netmask 255.255.255.0 #网络掩码
gateway x.x.x.x #网关
dns-nameserver 114.114.114.114 #8.8.8.8能上网都行
三、重启网卡服务
/etc/init.d/networking restart
本文指导如何在EVE-NG中更改网络设置,使其不使用VMwareNAT地址,而是手动分配静态IP。通过编辑`/etc/network/interfaces`配置文件,设置桥接网卡,指定IP、子网掩码和网关,最后重启网络服务实现独立IP配置。

356

被折叠的 条评论
为什么被折叠?



