EVE-NG配置静态固定地址

#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              #修改成static
    bridge_ports eth0
    bridge_stp off
    address 192.168.0.219        #配置IP地址和DNS
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameserver 114.114.114.114

  

然后重启网卡生效 

#/etc/init.d/networking  restart

原文地址:https://www.cnblogs.com/reachos/p/13970806.html