VirtualBox Networking
NAT Network
NAT Network
Create
Create
VBoxManage natnetwork add --netname mdbnet --network "172.16.16.0/28" --enable
VBoxManage modifyvm DC01 --nic1 natnetwork --natnetwork1 mdbnet
Remove
Remove
VBoxManage natnetwork remove --netname mdbnet
Notes
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
Bibliography
Bibliography
https://www.nakivo.com/blog/virtualbox-network-setting-guide/https://www.virtualbox.org/manual/ch08.html#vboxmanage-natnetworkhttps://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm-networkinghttps://www.virtualbox.org/manual/ch06.html#network_nat_servicehttps://forums.virtualbox.org/viewtopic.php?t=89006#p426753