vsphere client中部署OVF项目后为项目分配IP

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.212
    netmask 255.255.0.0
    gateway 192.168.0.1
    dns-nameserver 114.114.114.114
然后重启网卡生效

/etc/init.d/networking  restart

 

ip a

systemctl restart network

ifdown pnet0

ifup pnet1

ifup pnet0

ip a

-----------------------------------------------------------------------------------------------------

route -en

ip a

ping 10.50.0.1

vim /etc/network/interfaces

ifdown pnet0

ifup pnet0

reboot

vim /etc/network/interfaces

route -n

ip a 1 pnet0

你可能感兴趣的:(EVE-NG)