$Date: 2020-02-04 10:54:12 +0000 (Tue, 04 Feb 2020) $ VBoxManage dhcpserver VBoxManage-dhcpserver 1 VBoxManage-dhcpserver DHCP server management Oracle VM VirtualBox VBoxManage dhcpserver add --network=netname --interface=ifname --server-ip=address --netmask=mask --lower-ip=address --upper-ip=address --enable --disable --global --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --group=name --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --incl-mac=address --excl-mac=address --incl-mac-wild=pattern --excl-mac-wild=pattern --incl-vendor=string --excl-vendor=string --incl-vendor-wild=pattern --excl-vendor-wild=pattern --incl-user=string --excl-user=string --incl-user-wild=pattern --excl-user-wild=pattern --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --vm=name|uuid --nic=1-N --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --fixed-address=address --mac-address=address --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --fixed-address=address VBoxManage dhcpserver modify --network=netname --interface=ifname --server-ip=address --lower-ip=address --upper-ip=address --netmask=mask --enable --disable --global --del-opt=dhcp-opt-no --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --unforce-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --unsupress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --remove-config --group=name --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --unforce-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --unsupress-opt=dhcp-opt-no --del-mac=address --incl-mac=address --excl-mac=address --del-mac-wild=pattern --incl-mac-wild=pattern --excl-mac-wild=pattern --del-vendor=string --incl-vendor=string --excl-vendor=string --del-vendor-wild=pattern --incl-vendor-wild=pattern --excl-vendor-wild=pattern --del-user=string --incl-user=string --excl-user=string --del-user-wild=pattern --incl-user-wild=pattern --excl-user-wild=pattern --zap-conditions --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --remove-config --vm=name|uuid --nic=1-N --del-opt=dhcp-opt-no --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --unforce-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --unsupress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --fixed-address=address --remove-config --mac-address=address --del-opt=dhcp-opt-no --set-opt=dhcp-opt-no value --set-opt-hex=dhcp-opt-no hexstring --force-opt=dhcp-opt-no --unforce-opt=dhcp-opt-no --supress-opt=dhcp-opt-no --unsupress-opt=dhcp-opt-no --min-lease-time=seconds --default-lease-time=seconds --max-lease-time=seconds --fixed-address=address --remove-config VBoxManage dhcpserver remove --network=netname --interface=ifname VBoxManage dhcpserver restart --network=netname --interface=ifname VBoxManage dhcpserver findlease --network=netname --interface=ifname --mac-address=mac Description The dhcpserver commands enable you to control the DHCP server that is built into VirtualBox. You may find this useful when using internal or host-only networking. Theoretically, you can also enable it for a bridged network, but that may cause conflicts with other DHCP servers in your physical network. Common options The subcommands of dhcpserver all operate on an internal network that can be identified via its name or in the host-only case via the host-only interface name: --network=netname The internal network name. This is the same as you would use as value to the VBoxManage modifyvm --intnet option when configuring a VM for internal networking. Or you see as VBoxNetworkName in the output from VBoxManage list intnets, VBoxManage list natnets, or VBoxManage list hostonlyifs. --interface=ifname The host only interface name. This would be same value as you would use for the VBoxManage modifyvm --hostonlyadapter option when configuring a VM to use a host-only network. The value can also be found in the Name row in VBoxManage list hostonlyifs. dhcpserver add Adds a new DHCP server to a network or host-only interface. Options configuring the DHCP server core: The IP address the DHCP server should use. , The IP address range for the DHCP server to manage. This should not include the address of the DHCP server itself, but it must be in the same network as it. The boundraries are inclusive, so both the lower and upper addresses will be handed out to clients. The network mask. Typically 255.255.255.0. , --disable Whether to enable the DHCP server or disable it. If not specified, the server will be created in disabled state and no IP addresses handed out. Options selecting the scope: Set the configuration scope to global. Any subsequent options will be apply to all the DHCP clients. Set the configuration scope to the first NIC of the specified VM. Any subsequent options will apply just to that interface, nothing else. Set the configuration scope to a NIC other than first of the VM specified the in . Set the configuration scope to the specified MAC address. Set the configuration scope to the specified group. Options configuring the currently selected scope: Adds the specified DHCP option number (0-255) and value. The value format is option specific (typically human readable) and will be validated by the API and the DHCP server. Adds the specified DHCP option number (0-255) and value. The option value is specified as a raw series of hex bytes, optionally separated by colons. No validation is performed on these by the API or the DHCP server, they will be pass as specified to the client. Forces the specified DHCP option number (0-255) onto to be sent to the client whether it requested it or not (provided the option is configured with a value at some level). Prevents the specified DHCP option number (0-255) from being sent to the client when present in this or a high configuration scope. Sets the minimum lease time for the current scope in seconds. Zero means taking the value from a higher option level or use default. Sets the default lease time for the current scope in seconds. Zero means taking the value from a higher option level or use default. Sets the maximum lease time for the current scope in seconds. Zero means taking the value from a higher option level or use default. Fixed address assignment for a or configuration scope. Any empty address turns it back to dynamic address assignment. Options configuring group membership conditions (excludes overrides includes): Include the specific MAC address in the group. Exclude the specific MAC address from the group. Include the specific MAC address pattern in the group. Exclude the specific MAC address pattern from the group. Include the specific vendor class ID in the group. Exclude the specific vendor class ID from the group. Include the specific vendor class ID pattern in the group. Exclude the specific vendor class ID pattern from the group. Include the specific user class ID in the group. Exclude the specific user class ID from the group. Include the specific user class ID pattern in the group. Exclude the specific user class ID pattern from the group. dhcpserver modify This modifies an existing DHCP server configuration. It takes the same options as the add command with the addition of the following on scope configuration: Counterpart to that will cause the specified DHCP option number (0-255) to be deleted from the server settings. Like with the scope of the deletion is governed by the , , and options. Removes the specified DHCP option number (0-255) from the forced option list (i.e. the reverse of ). Like with the scope of the deletion is governed by the , , and options. Removes the specified DHCP option number (0-255) from the supressed option list (i.e. the reverse of ). Like with the scope of the deletion is governed by the , , and options. Removes the configuration currently being scoped. The scope is not removable. The configuration scope will change to after this option. And the addition of these group membership condition options: Delete the specific MAC address from the group conditions. Delete the specific MAC address pattern from the group conditions. Delete the specific vendor class ID from the group conditions. Delete the specific vendor class ID pattern from the group conditions. Delete the specific user class ID pattern from the group conditions. Delete the specific user class ID pattern from the group conditions. Deletes all the group conditions. dhcpserver remove Removes the specified DHCP server. dhcpserver restart Restarts the specified DHCP server. The DHCP server must be running. dhcpserver findlease Performs a lease database lookup. This is mainly for getting the IP address of a running VM. The MAC address to lookup in the lease database. Common DHCP Options: