网络一设置使用NAT(用来上网)
![](https://blog-1251934191.cos.ap-chengdu.myqcloud.com/wp-content/uploads/2020/05/image-1020x295.png)
网络二使用HostOnly 用来虚拟机和宿主主机互通
![](https://blog-1251934191.cos.ap-chengdu.myqcloud.com/wp-content/uploads/2020/05/image-1-1020x281.png)
yangyan@debian:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interfac
auto enp0s3
iface enp0s3 inet dhcp
auto enp0s8
iface enp0s8 inet static
address 192.168.56.11
netmask 255.255.255.0
gateway 192.168.56.1
了解 工作生活心情记忆 的更多信息
Subscribe to get the latest posts sent to your email.