一、需求
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