Last change
on this file since 55747 was 54564, checked in by vboxsync, 10 years ago |
style
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
667 bytes
|
Line | |
---|
1 | To configure custom DHCP options for a VM use the following command adapted
|
---|
2 | to your needs:
|
---|
3 |
|
---|
4 | $ VBoxManage dhcpserver modify \
|
---|
5 | --netname test-0 --options --vm "Test Client" --slot 0 \
|
---|
6 | --id 0 --value "224=c0:a8:02:01:c0:a8:02:02" \
|
---|
7 | --id 0 --value "225=0:0"
|
---|
8 |
|
---|
9 | Note that custom DHCP options must be specified with ID 0 and the actual
|
---|
10 | number in the value. This has technical reasons which may change in future
|
---|
11 | VirtualBox releases.
|
---|
12 |
|
---|
13 |
|
---|
14 | It corresponds to the following bit of ISC 'dhcpd.conf':
|
---|
15 |
|
---|
16 | option sample1 code 224 = array of ip-address;
|
---|
17 | option sample2 code 225 = array of integer 8;
|
---|
18 |
|
---|
19 | ...
|
---|
20 | option sample1 192.168.2.1,192.168.2.2;
|
---|
21 | option sample2 0,0;
|
---|
22 | ...
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.