Under mac ubuntu1804 can not access
Set the virtual machine network NAT mode
In mac terminal ifconfig, ip end view mac
Open ubuntu end virtual network configuration, manual configuration
Select the mac address
Add the following configuration, xxx.xxx.xxx.2 fixed routing and DNS-ip
You just connect to configure the connection, usually can directly use it to restart the virtual machine can not be used