Set-up: Windows 10 Pro and VirtualBox.
Situation: I try to set-up a NAT adapter and a Host-Only adapter through the cloud-config.yml file.
rancher:
network:
dns:
nameservers:
- 1.1.1.1
- 1.0.0.1
interfaces:
eth0:
address: 10.0.2.15/24
dhcp: false
gateway: 10.0.2.1
mtu: 1500
eth1:
address: 192.168.56.60/24
dhcp: false
gateway: 192.168.56.1
mtu: 1500
lo:
address: 127.0.0.1/8
Result: The host-only works, the NAT doesn’t. When I run ifconfig, I see both interfaces configured with the IPs that I provide.