设置静态IP
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto enp0s3
#iface enp0s3 inet dhcp
iface enp0s3 inet static
address 10.10.10.141
netmask 255.255.255.0
gateway 10.10.10.1
重启网络:
systemctl restart networking
注意如果是想连入网络,就在Oracle VM VirtualBox 桥接到wifi网卡上,然后重启网络;