0
Here's what I'm running:
- MacOS Mojave 10.14.4
- VirtualBox v6.0.6 r130049
- Ubuntu 18.04.2 LTS Server as a Guest VM
I'm trying to get 2 adapters running: NAT and Bridged.
Initially I started with first adapter (adapter1) running NAT mode, configured enp0s3 as DHCP using netplan inside Ubuntu, and I was able to access external machines and the internet.
Then I added a second adapter (adapter2), configured enp0s8 as DHCP using netplan inside Ubuntu, but I wasn't getting an IP address on that interface.
After many hours of playing around with this setup, I decided to switch back to only using adapter1 configured as bridged adapter. And suddenly I'm getting IP address from my router on my local network. ...I then added back adapter2 configured as NAT and everything seems okay now.
Any idea why DHCP in bridged mode ONLY works with adapter1? If I have NAT on adapter1 and Bridged on adapter2, it doesn't work. But if I have Bridged on adapter1 and NAT on adapter2, suddenly I'm getting DCHP to work on adapter1 only.
Here's a follow-on issue. So I have a clone of the VM, and even though I regenerate MAC addresses on each of these adapters, I'm getting the same IP address back from the router for both VMs! :(
I'm fairly certain my trouble is coming from the fact that I have cloned these VMs. I found if I do a fresh Ubuntu installation of these VMs, then I get unique IP addresses.
Overall I'm finding the virtual networking in VirtualBox to be quite frustrating.
ok...My next issue to solve is after I reboot, I always have to manually run dhclient to obtain an IP address on the enp0s8 (adapter2). :( – jersey bean – 2019-05-16T17:49:39.690