VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-dhcpserver.xml@ 88756

Last change on this file since 88756 was 86820, checked in by vboxsync, 4 years ago

VBoxManage/dhcpserver: Added 'start' and 'stop' sub-commands since 'restart' it to braindead to restart a DHCP server that quit on its own (restart only works if the server is still running).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 32.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage dhcpserver
4
5 Copyright (C) 2006-2020 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14 -->
15<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
16<refentry id="vboxmanage-dhcpserver" lang="en">
17
18 <refentryinfo>
19 <pubdate>$Date: 2020-11-06 11:54:23 +0000 (Fri, 06 Nov 2020) $</pubdate>
20 <title>VBoxManage dhcpserver</title>
21 </refentryinfo>
22
23 <refmeta>
24 <refentrytitle>VBoxManage-dhcpserver</refentrytitle>
25 <manvolnum>1</manvolnum>
26 </refmeta>
27
28 <refnamediv>
29 <refname>VBoxManage-dhcpserver</refname>
30 <refpurpose>DHCP server management</refpurpose>
31 <refclass>Oracle VM VirtualBox</refclass>
32 </refnamediv>
33
34 <refsynopsisdiv>
35 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-add">
36 <command>VBoxManage dhcpserver add</command>
37 <group choice="req">
38 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
39 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
40 </group>
41 <arg choice="req">--server-ip=<replaceable>address</replaceable></arg>
42 <arg choice="req">--netmask=<replaceable>mask</replaceable></arg>
43 <arg choice="req">--lower-ip=<replaceable>address</replaceable></arg>
44 <arg choice="req">--upper-ip=<replaceable>address</replaceable></arg>
45 <group choice="req">
46 <arg choice="plain">--enable</arg>
47 <arg choice="plain">--disable</arg>
48 </group>
49 <sbr/>
50 <arg choice="opt" rep="repeat">
51 <arg choice="opt">--global</arg>
52 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
53 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
54 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
55 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
56 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
57 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
58 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
59 </arg>
60 <sbr/>
61 <arg choice="opt" rep="repeat">
62 <arg choice="req">--group=<replaceable>name</replaceable></arg>
63 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
64 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
65 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
66 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
67 <arg choice="opt" rep="repeat">--incl-mac=<replaceable>address</replaceable></arg>
68 <arg choice="opt" rep="repeat">--excl-mac=<replaceable>address</replaceable></arg>
69 <arg choice="opt" rep="repeat">--incl-mac-wild=<replaceable>pattern</replaceable></arg>
70 <arg choice="opt" rep="repeat">--excl-mac-wild=<replaceable>pattern</replaceable></arg>
71 <arg choice="opt" rep="repeat">--incl-vendor=<replaceable>string</replaceable></arg>
72 <arg choice="opt" rep="repeat">--excl-vendor=<replaceable>string</replaceable></arg>
73 <arg choice="opt" rep="repeat">--incl-vendor-wild=<replaceable>pattern</replaceable></arg>
74 <arg choice="opt" rep="repeat">--excl-vendor-wild=<replaceable>pattern</replaceable></arg>
75 <arg choice="opt" rep="repeat">--incl-user=<replaceable>string</replaceable></arg>
76 <arg choice="opt" rep="repeat">--excl-user=<replaceable>string</replaceable></arg>
77 <arg choice="opt" rep="repeat">--incl-user-wild=<replaceable>pattern</replaceable></arg>
78 <arg choice="opt" rep="repeat">--excl-user-wild=<replaceable>pattern</replaceable></arg>
79 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
80 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
81 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
82 </arg>
83 <sbr/>
84 <arg choice="opt" rep="repeat">
85 <arg choice="req">--vm=<replaceable>name|uuid</replaceable></arg>
86 <arg choice="opt">--nic=<replaceable>1-N</replaceable></arg>
87 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
88 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
89 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
90 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
91 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
92 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
93 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
94 <arg choice="opt">--fixed-address=<replaceable>address</replaceable></arg>
95 </arg>
96 <sbr/>
97 <arg choice="opt" rep="repeat">
98 <arg choice="req">--mac-address=<replaceable>address</replaceable></arg>
99 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
100 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
101 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
102 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
103 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
104 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
105 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
106 <arg choice="opt">--fixed-address=<replaceable>address</replaceable></arg>
107 </arg>
108 </cmdsynopsis>
109 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-modify">
110 <command>VBoxManage dhcpserver modify</command>
111 <group choice="req">
112 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
113 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
114 </group>
115 <arg choice="opt">--server-ip=<replaceable>address</replaceable></arg>
116 <arg choice="opt">--lower-ip=<replaceable>address</replaceable></arg>
117 <arg choice="opt">--upper-ip=<replaceable>address</replaceable></arg>
118 <arg choice="opt">--netmask=<replaceable>mask</replaceable></arg>
119 <group choice="opt">
120 <arg choice="plain">--enable</arg>
121 <arg choice="plain">--disable</arg>
122 </group>
123 <sbr/>
124 <arg choice="opt" rep="repeat">
125 <arg choice="opt">--global</arg>
126 <arg choice="opt" rep="repeat">--del-opt=<replaceable>dhcp-opt-no</replaceable></arg>
127 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
128 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
129 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
130 <arg choice="opt" rep="repeat">--unforce-opt=<replaceable>dhcp-opt-no</replaceable></arg>
131 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
132 <arg choice="opt" rep="repeat">--unsupress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
133 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
134 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
135 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
136 <arg choice="opt">--remove-config</arg>
137 </arg>
138 <sbr/>
139 <arg choice="opt" rep="repeat">
140 <arg choice="req">--group=<replaceable>name</replaceable></arg>
141 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
142 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
143 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
144 <arg choice="opt" rep="repeat">--unforce-opt=<replaceable>dhcp-opt-no</replaceable></arg>
145 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
146 <arg choice="opt" rep="repeat">--unsupress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
147 <arg choice="opt" rep="repeat">--del-mac=<replaceable>address</replaceable></arg>
148 <arg choice="opt" rep="repeat">--incl-mac=<replaceable>address</replaceable></arg>
149 <arg choice="opt" rep="repeat">--excl-mac=<replaceable>address</replaceable></arg>
150 <arg choice="opt" rep="repeat">--del-mac-wild=<replaceable>pattern</replaceable></arg>
151 <arg choice="opt" rep="repeat">--incl-mac-wild=<replaceable>pattern</replaceable></arg>
152 <arg choice="opt" rep="repeat">--excl-mac-wild=<replaceable>pattern</replaceable></arg>
153 <arg choice="opt" rep="repeat">--del-vendor=<replaceable>string</replaceable></arg>
154 <arg choice="opt" rep="repeat">--incl-vendor=<replaceable>string</replaceable></arg>
155 <arg choice="opt" rep="repeat">--excl-vendor=<replaceable>string</replaceable></arg>
156 <arg choice="opt" rep="repeat">--del-vendor-wild=<replaceable>pattern</replaceable></arg>
157 <arg choice="opt" rep="repeat">--incl-vendor-wild=<replaceable>pattern</replaceable></arg>
158 <arg choice="opt" rep="repeat">--excl-vendor-wild=<replaceable>pattern</replaceable></arg>
159 <arg choice="opt" rep="repeat">--del-user=<replaceable>string</replaceable></arg>
160 <arg choice="opt" rep="repeat">--incl-user=<replaceable>string</replaceable></arg>
161 <arg choice="opt" rep="repeat">--excl-user=<replaceable>string</replaceable></arg>
162 <arg choice="opt" rep="repeat">--del-user-wild=<replaceable>pattern</replaceable></arg>
163 <arg choice="opt" rep="repeat">--incl-user-wild=<replaceable>pattern</replaceable></arg>
164 <arg choice="opt" rep="repeat">--excl-user-wild=<replaceable>pattern</replaceable></arg>
165 <arg choice="opt">--zap-conditions</arg>
166 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
167 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
168 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
169 <arg choice="opt">--remove-config</arg>
170 </arg>
171 <sbr/>
172 <arg choice="opt" rep="repeat">
173 <arg choice="req">--vm=<replaceable>name|uuid</replaceable></arg>
174 <arg choice="opt">--nic=<replaceable>1-N</replaceable></arg>
175 <arg choice="opt" rep="repeat">--del-opt=<replaceable>dhcp-opt-no</replaceable></arg>
176 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
177 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
178 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
179 <arg choice="opt" rep="repeat">--unforce-opt=<replaceable>dhcp-opt-no</replaceable></arg>
180 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
181 <arg choice="opt" rep="repeat">--unsupress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
182 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
183 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
184 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
185 <arg choice="opt">--fixed-address=<replaceable>address</replaceable></arg>
186 <arg choice="opt">--remove-config</arg>
187 </arg>
188 <sbr/>
189 <arg choice="opt" rep="repeat">
190 <arg choice="req">--mac-address=<replaceable>address</replaceable></arg>
191 <arg choice="opt" rep="repeat">--del-opt=<replaceable>dhcp-opt-no</replaceable></arg>
192 <arg choice="opt" rep="repeat">--set-opt=<replaceable>dhcp-opt-no value</replaceable></arg>
193 <arg choice="opt" rep="repeat">--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></arg>
194 <arg choice="opt" rep="repeat">--force-opt=<replaceable>dhcp-opt-no</replaceable></arg>
195 <arg choice="opt" rep="repeat">--unforce-opt=<replaceable>dhcp-opt-no</replaceable></arg>
196 <arg choice="opt" rep="repeat">--supress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
197 <arg choice="opt" rep="repeat">--unsupress-opt=<replaceable>dhcp-opt-no</replaceable></arg>
198 <arg choice="opt">--min-lease-time=<replaceable>seconds</replaceable></arg>
199 <arg choice="opt">--default-lease-time=<replaceable>seconds</replaceable></arg>
200 <arg choice="opt">--max-lease-time=<replaceable>seconds</replaceable></arg>
201 <arg choice="opt">--fixed-address=<replaceable>address</replaceable></arg>
202 <arg choice="opt">--remove-config</arg>
203 </arg>
204 </cmdsynopsis>
205 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-remove">
206 <command>VBoxManage dhcpserver remove</command>
207 <group choice="req">
208 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
209 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
210 </group>
211 </cmdsynopsis>
212 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-start">
213 <command>VBoxManage dhcpserver start</command>
214 <group choice="req">
215 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
216 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
217 </group>
218 </cmdsynopsis>
219 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-restart">
220 <command>VBoxManage dhcpserver restart</command>
221 <group choice="req">
222 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
223 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
224 </group>
225 </cmdsynopsis>
226 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-stop">
227 <command>VBoxManage dhcpserver stop</command>
228 <group choice="req">
229 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
230 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
231 </group>
232 </cmdsynopsis>
233 <cmdsynopsis id="synopsis-vboxmanage-dhcpserver-findlease">
234 <command>VBoxManage dhcpserver findlease</command>
235 <group choice="req">
236 <arg choice="plain">--network=<replaceable>netname</replaceable></arg>
237 <arg choice="plain">--interface=<replaceable>ifname</replaceable></arg>
238 </group>
239 <arg choice="req">--mac-address=<replaceable>mac</replaceable></arg>
240 </cmdsynopsis>
241 </refsynopsisdiv>
242
243 <refsect1>
244 <title>Description</title>
245
246 <para>
247 The <command>dhcpserver</command> commands enable you to control the DHCP
248 server that is built into VirtualBox. You may find this useful when
249 using internal or host-only networking. Theoretically, you can also
250 enable it for a bridged network, but that may cause conflicts with other
251 DHCP servers in your physical network.
252 </para>
253
254 <refsect2 id="vboxmanage-dhcpserver-common-options">
255 <title>Common options</title>
256 <remark role="help-scope" condition="GLOBAL"/>
257 <para>The subcommands of <command>dhcpserver</command> all operate on an
258 internal network that can be identified via its name or in the host-only
259 case via the host-only interface name:</para>
260 <variablelist>
261 <varlistentry>
262 <term>--network=<replaceable>netname</replaceable></term>
263 <listitem><para>The internal network name. This is the same as you
264 would use as value to the <command>VBoxManage modifyvm --intnet</command>
265 option when configuring a VM for internal networking. Or you see as
266 VBoxNetworkName in the output from
267 <command>VBoxManage list intnets</command>,
268 <command>VBoxManage list natnets</command>, or
269 <command>VBoxManage list hostonlyifs</command>.
270 </para></listitem>
271 </varlistentry>
272 <varlistentry>
273 <term>--interface=<replaceable>ifname</replaceable></term>
274 <listitem><para>The host only interface name. This would be same value
275 as you would use for the <command>VBoxManage modifyvm --hostonlyadapter</command>
276 option when configuring a VM to use a host-only network. The value
277 can also be found in the Name row in <command>VBoxManage list hostonlyifs</command>.
278 </para></listitem>
279 </varlistentry>
280 </variablelist>
281 </refsect2>
282
283 <refsect2 id="vboxmanage-dhcpserver-add">
284 <title>dhcpserver add</title>
285 <remark role="help-copy-synopsis"/>
286 <para>
287 Adds a new DHCP server to a network or host-only interface.
288 </para>
289 <para>
290 Options configuring the DHCP server core:
291 </para>
292 <variablelist>
293 <varlistentry>
294 <term><option>--server-ip=<replaceable>address</replaceable></option></term>
295 <listitem><para>The IP address the DHCP server should use.</para></listitem>
296 </varlistentry>
297 <varlistentry>
298 <term><option>--lower-ip=<replaceable>address</replaceable></option>, <option>--upper-ip=<replaceable>address</replaceable></option></term>
299 <listitem><para>The IP address range for the DHCP server to manage. This
300 should not include the address of the DHCP server itself, but it must be
301 in the same network as it. The boundraries are inclusive, so both the
302 lower and upper addresses will be handed out to clients.</para></listitem>
303 </varlistentry>
304 <varlistentry>
305 <term><option>--netmask=<replaceable>mask</replaceable></option></term>
306 <listitem><para>The network mask. Typically 255.255.255.0.</para></listitem>
307 </varlistentry>
308 <varlistentry>
309 <term><option>--enable</option>, --disable</term>
310 <listitem><para>Whether to enable the DHCP server or disable it. If not specified,
311 the server will be created in disabled state and no IP addresses handed out.</para></listitem>
312 </varlistentry>
313 </variablelist>
314 <para>
315 Options selecting the scope:
316 </para>
317 <variablelist>
318 <varlistentry>
319 <term><option>--global</option></term>
320 <listitem><para>Set the configuration scope to global. Any subsequent
321 <option>--set-opt</option> options will be apply to all the DHCP clients.</para></listitem>
322 </varlistentry>
323 <varlistentry>
324 <term><option>--vm=<replaceable>vmname|uuid</replaceable></option></term>
325 <listitem><para>Set the configuration scope to the first NIC of the specified VM. Any
326 subsequent <option>--set-opt</option> options will apply just to that interface,
327 nothing else.</para></listitem>
328 </varlistentry>
329 <varlistentry>
330 <term><option>--nic=<replaceable>1-N</replaceable></option></term>
331 <listitem><para>Set the configuration scope to a NIC other than first of
332 the VM specified the in <option>--vm</option>.
333 </para></listitem>
334 </varlistentry>
335 <varlistentry>
336 <term><option>--mac-address=<replaceable>address</replaceable></option></term>
337 <listitem><para>Set the configuration scope to the specified MAC address.</para></listitem>
338 </varlistentry>
339 <varlistentry>
340 <term><option>--group=<replaceable>name</replaceable></option></term>
341 <listitem><para>Set the configuration scope to the specified group.</para></listitem>
342 </varlistentry>
343 </variablelist>
344 <para>
345 Options configuring the currently selected scope:
346 </para>
347 <variablelist>
348 <varlistentry>
349 <term><option>--set-opt=<replaceable>dhcp-opt-no value</replaceable></option></term>
350 <listitem><para>Adds the specified DHCP option number (0-255) and value. The
351 value format is option specific (typically human readable) and will be
352 validated by the API and the DHCP server.
353 </para></listitem>
354 </varlistentry>
355 <varlistentry>
356 <term><option>--set-opt-hex=<replaceable>dhcp-opt-no hexstring</replaceable></option></term>
357 <listitem><para>Adds the specified DHCP option number (0-255) and value. The option value
358 is specified as a raw series of hex bytes, optionally separated by colons. No validation
359 is performed on these by the API or the DHCP server, they will be pass as specified to the
360 client.
361 </para></listitem>
362 </varlistentry>
363 <varlistentry>
364 <term><option>--force-opt=<replaceable>dhcp-opt-no</replaceable></option></term>
365 <listitem><para>Forces the specified DHCP option number (0-255) onto to be
366 sent to the client whether it requested it or not (provided the option is
367 configured with a value at some level).
368 </para></listitem>
369 </varlistentry>
370 <varlistentry>
371 <term><option>--suppress-opt=<replaceable>dhcp-opt-no</replaceable></option></term>
372 <listitem><para>Prevents the specified DHCP option number (0-255) from being
373 sent to the client when present in this or a high configuration scope.
374 </para></listitem>
375 </varlistentry>
376 <varlistentry>
377 <term><option>--min-lease-time=<replaceable>seconds</replaceable></option></term>
378 <listitem><para>Sets the minimum lease time for the current scope in seconds.
379 Zero means taking the value from a higher option level or use default.
380 </para></listitem>
381 </varlistentry>
382 <varlistentry>
383 <term><option>--default-lease-time=<replaceable>seconds</replaceable></option></term>
384 <listitem><para>Sets the default lease time for the current scope in seconds.
385 Zero means taking the value from a higher option level or use default.
386 </para></listitem>
387 </varlistentry>
388 <varlistentry>
389 <term><option>--max-lease-time=<replaceable>seconds</replaceable></option></term>
390 <listitem><para>Sets the maximum lease time for the current scope in seconds.
391 Zero means taking the value from a higher option level or use default.
392 </para></listitem>
393 </varlistentry>
394 <varlistentry>
395 <term><option>--fixed-address=<replaceable>address</replaceable></option></term>
396 <listitem><para>Fixed address assignment for a <option>--vm</option> or
397 <option>--mac-address</option> configuration scope. Any empty
398 <replaceable>address</replaceable> turns it back to dynamic address assignment.
399 </para></listitem>
400 </varlistentry>
401 </variablelist>
402
403 <para>
404 Options configuring group membership conditions (excludes overrides includes):
405 </para>
406 <variablelist>
407 <varlistentry>
408 <term><option>--incl-mac=<replaceable>address</replaceable></option></term>
409 <listitem><para>Include the specific MAC address in the group.</para></listitem>
410 </varlistentry>
411 <varlistentry>
412 <term><option>--excl-mac=<replaceable>address</replaceable></option></term>
413 <listitem><para>Exclude the specific MAC address from the group.</para></listitem>
414 </varlistentry>
415 <varlistentry>
416 <term><option>--incl-mac-wild=<replaceable>pattern</replaceable></option></term>
417 <listitem><para>Include the specific MAC address pattern in the group.</para></listitem>
418 </varlistentry>
419 <varlistentry>
420 <term><option>--excl-mac-wild=<replaceable>pattern</replaceable></option></term>
421 <listitem><para>Exclude the specific MAC address pattern from the group.</para></listitem>
422 </varlistentry>
423 <varlistentry>
424 <term><option>--incl-vendor=<replaceable>string</replaceable></option></term>
425 <listitem><para>Include the specific vendor class ID in the group.</para></listitem>
426 </varlistentry>
427 <varlistentry>
428 <term><option>--excl-vendor=<replaceable>string</replaceable></option></term>
429 <listitem><para>Exclude the specific vendor class ID from the group.</para></listitem>
430 </varlistentry>
431 <varlistentry>
432 <term><option>--incl-vendor-wild=<replaceable>pattern</replaceable></option></term>
433 <listitem><para>Include the specific vendor class ID pattern in the group.</para></listitem>
434 </varlistentry>
435 <varlistentry>
436 <term><option>--excl-vendor-wild=<replaceable>pattern</replaceable></option></term>
437 <listitem><para>Exclude the specific vendor class ID pattern from the group.</para></listitem>
438 </varlistentry>
439 <varlistentry>
440 <term><option>--incl-user=<replaceable>string</replaceable></option></term>
441 <listitem><para>Include the specific user class ID in the group.</para></listitem>
442 </varlistentry>
443 <varlistentry>
444 <term><option>--excl-user=<replaceable>string</replaceable></option></term>
445 <listitem><para>Exclude the specific user class ID from the group.</para></listitem>
446 </varlistentry>
447 <varlistentry>
448 <term><option>--incl-user-wild=<replaceable>pattern</replaceable></option></term>
449 <listitem><para>Include the specific user class ID pattern in the group.</para></listitem>
450 </varlistentry>
451 <varlistentry>
452 <term><option>--excl-user-wild=<replaceable>pattern</replaceable></option></term>
453 <listitem><para>Exclude the specific user class ID pattern from the group.</para></listitem>
454 </varlistentry>
455 </variablelist>
456 </refsect2>
457
458 <refsect2 id="vboxmanage-dhcpserver-modify">
459 <title>dhcpserver modify</title>
460 <remark role="help-copy-synopsis"/>
461 <para>
462 This modifies an existing DHCP server configuration. It takes the same
463 options as the <command>add</command> command with the addition of the following
464 on scope configuration:
465 </para>
466 <variablelist>
467 <varlistentry>
468 <term><option>--del-opt=<replaceable>dhcp-opt-no</replaceable></option></term>
469 <listitem><para>Counterpart to <option>--set-opt</option> that will cause the specified
470 DHCP option number (0-255) to be deleted from the server settings. Like with
471 <option>--set-opt</option> the scope of the deletion is governed by the
472 <option>--global</option>, <option>--vm</option>, <option>--mac-address</option>
473 and <option>--group</option> options.
474 </para></listitem>
475 </varlistentry>
476 <varlistentry>
477 <term><option>--unforce-opt=<replaceable>dhcp-opt-no</replaceable></option></term>
478 <listitem><para>Removes the specified DHCP option number (0-255) from the forced
479 option list (i.e. the reverse of <option>--force-opt</option>). Like with
480 <option>--set-opt</option> the scope of the deletion is governed by the
481 <option>--global</option>, <option>--vm</option>, <option>--mac-address</option>
482 and <option>--group</option> options.
483 </para></listitem>
484 </varlistentry>
485 <varlistentry>
486 <term><option>--unsuppress-opt=<replaceable>dhcp-opt-no</replaceable></option></term>
487 <listitem><para>Removes the specified DHCP option number (0-255) from the supressed
488 option list (i.e. the reverse of <option>--suppress-opt</option>). Like with
489 <option>--set-opt</option> the scope of the deletion is governed by the
490 <option>--global</option>, <option>--vm</option>, <option>--mac-address</option>
491 and <option>--group</option> options.
492 </para></listitem>
493 </varlistentry>
494 <varlistentry>
495 <term><option>--remove-config</option></term>
496 <listitem><para>Removes the configuration currently being scoped. The
497 <option>--global</option> scope is not removable. The configuration scope will
498 change to <option>--global</option> after this option.
499 </para></listitem>
500 </varlistentry>
501 </variablelist>
502 <para>
503 And the addition of these group membership condition options:
504 </para>
505 <variablelist>
506 <varlistentry>
507 <term><option>--del-mac=<replaceable>address</replaceable></option></term>
508 <listitem><para>Delete the specific MAC address from the group conditions.</para></listitem>
509 </varlistentry>
510 <varlistentry>
511 <term><option>--del-mac-wild=<replaceable>pattern</replaceable></option></term>
512 <listitem><para>Delete the specific MAC address pattern from the group conditions.</para></listitem>
513 </varlistentry>
514 <varlistentry>
515 <term><option>--del-vendor=<replaceable>string</replaceable></option></term>
516 <listitem><para>Delete the specific vendor class ID from the group conditions.</para></listitem>
517 </varlistentry>
518 <varlistentry>
519 <term><option>--del-vendor-wild=<replaceable>pattern</replaceable></option></term>
520 <listitem><para>Delete the specific vendor class ID pattern from the group conditions.</para></listitem>
521 </varlistentry>
522 <varlistentry>
523 <term><option>--del-user=<replaceable>string</replaceable></option></term>
524 <listitem><para>Delete the specific user class ID pattern from the group conditions.</para></listitem>
525 </varlistentry>
526 <varlistentry>
527 <term><option>--del-user-wild=<replaceable>pattern</replaceable></option></term>
528 <listitem><para>Delete the specific user class ID pattern from the group conditions.</para></listitem>
529 </varlistentry>
530 <varlistentry>
531 <term><option>--zap-conditions</option></term>
532 <listitem><para>Deletes all the group conditions.</para></listitem>
533 </varlistentry>
534 </variablelist>
535 </refsect2>
536
537 <refsect2 id="vboxmanage-dhcpserver-remove">
538 <title>dhcpserver remove</title>
539 <remark role="help-copy-synopsis"/>
540 <para>
541 Removes the specified DHCP server.
542 </para>
543 </refsect2>
544
545 <refsect2 id="vboxmanage-dhcpserver-start">
546 <title>dhcpserver start</title>
547 <remark role="help-copy-synopsis"/>
548 <para>
549 Start the specified DHCP server.
550 </para>
551 </refsect2>
552
553 <refsect2 id="vboxmanage-dhcpserver-restart">
554 <title>dhcpserver restart</title>
555 <remark role="help-copy-synopsis"/>
556 <para>
557 Restarts the specified DHCP server. The DHCP server must be running.
558 </para>
559 </refsect2>
560
561 <refsect2 id="vboxmanage-dhcpserver-stop">
562 <title>dhcpserver stop</title>
563 <remark role="help-copy-synopsis"/>
564 <para>
565 Stops the specified DHCP server.
566 </para>
567 </refsect2>
568
569 <refsect2 id="vboxmanage-dhcpserver-findlease">
570 <title>dhcpserver findlease</title>
571 <remark role="help-copy-synopsis"/>
572 <para>
573 Performs a lease database lookup. This is mainly for getting the IP
574 address of a running VM.
575 </para>
576 <variablelist>
577 <varlistentry>
578 <term><option>--mac-address=<replaceable>mac</replaceable></option></term>
579 <listitem><para>The MAC address to lookup in the lease database.</para></listitem>
580 </varlistentry>
581 </variablelist>
582 </refsect2>
583
584 <refsect2 id="vboxmanage-dhcpserver-dhcpoptions">
585 <title>Common DHCP Options:</title>
586 <remark role="help-scope" condition="DHCPSERVER_ADD|DHCPSERVER_MODIFY"/>
587 <!-- The following file is generated from src/VBox/Main/idl/VirtualBox.xidl: -->
588 <xi:include href="man_VBoxManage-dhcpserver-dhcpoptions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
589 </refsect2>
590
591 </refsect1>
592
593</refentry>
594
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette