Skip to content

Instantly share code, notes, and snippets.

@hytdsh
Last active December 20, 2017 06:36
Show Gist options
  • Save hytdsh/8a43eed6c37c1bb0c301a65733c1f53d to your computer and use it in GitHub Desktop.
Save hytdsh/8a43eed6c37c1bb0c301a65733c1f53d to your computer and use it in GitHub Desktop.
VirtualBox NAT Network
C:\Program Files\Oracle\VirtualBox> .\VBoxManage list natnets
NetworkName: incubator
IP: 192.168.99.1
Network: 192.168.99.0/24
IPv6 Enabled: No
IPv6 Prefix: fd17:625c:f037:2::/64
DHCP Enabled: No
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2
C:\Program Files\Oracle\VirtualBox> .\VBoxManage list dhcpservers
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP: 192.168.56.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled: Yes
@hytdsh
Copy link
Author

hytdsh commented Dec 6, 2017

VirtualBox(has 192.168.99.1) does NOT serve DHCP.
DHCP server (and DNS relay) is 192.168.99.2 in my sandbox environment.

and 192.168.99.2's configs are
https://gist.github.com/hytdsh/81c410924009d7e3af979bdfc1b274dd
https://gist.github.com/hytdsh/636fa25c344e5446f4dbbfae06392a8a

@hytdsh
Copy link
Author

hytdsh commented Dec 20, 2017

CAUTION:
"DHCP Enabled:" status does NOT appeare in "VBoxManage list dhcpservers".
and
"VBoxManage natnetwork list" does NOT include "DHCP Enabled:" status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment