Name | Date | Size | |
---|---|---|---|
.. | 2015-03-24 17:51:15 | 6 | |
ClientDataInt.h | 2014-01-24 09:23:12 | 1.6 KiB | |
Config.cpp | 2015-03-24 17:51:15 | 37.5 KiB | |
Config.h | 2015-02-25 17:31:44 | 22.1 KiB | |
Makefile.kmk | 2015-01-15 16:01:22 | 2.2 KiB | |
NetworkManagerDhcp.cpp | 2013-11-30 03:08:42 | 4.9 KiB | |
README.customoptions | 2015-02-27 19:41:17 | 667 | |
VBoxNetDHCP.cpp | 2015-03-09 17:14:52 | 23 KiB | |
VBoxNetDHCP.rc | 2015-01-15 16:01:22 | 1.8 KiB | |
VBoxNetDHCPHardened.cpp | 2013-02-04 16:54:15 | 753 |
README.customoptions
To configure custom DHCP options for a VM use the following command adapted
to your needs:
$ VBoxManage dhcpserver modify \
--netname test-0 --options --vm "Test Client" --slot 0 \
--id 0 --value "224=c0:a8:02:01:c0:a8:02:02" \
--id 0 --value "225=0:0"
Note that custom DHCP options must be specified with ID 0 and the actual
number in the value. This has technical reasons which may change in future
VirtualBox releases.
It corresponds to the following bit of ISC 'dhcpd.conf':
option sample1 code 224 = array of ip-address;
option sample2 code 225 = array of integer 8;
...
option sample1 192.168.2.1,192.168.2.2;
option sample2 0,0;
...