NAT ok, but "NAT network" is not :(

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.
Post Reply
JUSTAcat
Posts: 1
Joined: 29. Jul 2016, 09:25

NAT ok, but "NAT network" is not :(

Post by JUSTAcat »

hello,

i am baffled by this... the internet connection would work when the network adapter is attached to NAT.
When the same network adapter is attached to "NAT network", it received an IP, gateway, and DNS as it should. But there is no internet connection and ping to gateway and DNS would fail... not sure if it's related, the OS os freebsd 10.1

any suggestion? thanks
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: NAT ok, but "NAT network" is not :(

Post by socratis »

It's working as expected on a OSX host. In the VirtualBox preferences (the general ones, not the VM's), under Network, NAT Network (checked), edit, what values do you have? Mine look like this:
  • Enable Network: Checked
  • Network Name: VBoxNATNet (can be anything you like)
  • Network CIDR: 10.0.20.0/24 (can be anything you like, just make sure it doesn't conflict with anything else)
  • Supports DHCP: Checked
  • Supports IPv6: Checked (that's not crucial, but nice to have)
  • Port forwarding: Empty (that might change, depending on your needs)
This is also reflected in the output of the list NATNetworks command:
   $ VBoxManage list natnetworks
   NetworkName:    VBoxNATNet
   IP:             10.0.20.1
   Network:        10.0.20.0/24
   IPv6 Enabled:   Yes
   IPv6 Prefix:    fd17:625c:f037:14::/64
   DHCP Enabled:   Yes
   Enabled:        Yes
   loopback mappings (ipv4)
           127.0.0.1=2
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply