VirtualBox Networking

VirtualBox

NAT Network

Create

VBoxManage natnetwork add --netname mdbnet --network "172.16.16.0/28" --enable

VBoxManage modifyvm DC01 --nic1 natnetwork --natnetwork1 mdbnet

Remove

VBoxManage natnetwork remove --netname mdbnet

Notes

Within a NAT Network certain IP addresses are reserved. In our example network (172.16.16.0/28) the following addresses will be reserved...

172.16.16.0 - interface address

172.16.16.1 - default gateway

172.16.16.2 - Host loopback

172.16.16.3 - DHCP

If DHCP is disabled 172.16.16.3 will not be used, but I still suggest it is safer to avoid using it for other devices.

CIDR