VirtualBox

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

最後變更 在這個檔案從96388是 96300,由 vboxsync 提交於 3 年 前

doc: comment fixing

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

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