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

 


版权声明:本文为a461477412原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。