The following is an example how to configure VirtualBox VM with NAT and Host-Only network cards. First card is NAT, second card is Host-Only.
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yes
enp0s8:
dhcp4: no
dhcp6: no
addresses: [192.168.56.30/24]
nameservers:
addresses: [8.8.8.8,8.8.4.4]
No comments:
Post a Comment