1 '\" te
   2 .\"  Copyright (c) 2002 by Sun Microsystems, Inc. All Rights Reserved.
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH DHCPCONFIG 1M "Jun 16, 2004"
   7 .SH NAME
   8 dhcpconfig \- DHCP service configuration utility
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBdhcpconfig\fR \fB-D\fR \fB-r\fR \fIresource\fR \fB-p\fR \fIpath\fR [\fB-u\fR \fIuninterpreted\fR]
  13      [\fB-l\fR \fIlease_length\fR] [\fB-n\fR ] [\fB-d\fR \fIDNS_domain\fR]
  14      [\fB-a\fR \fIDNS_server_addresses\fR] [\fB-h\fR \fIhosts_resource\fR]
  15      [\fB-y\fR \fIhosts_domain\fR]
  16 .fi
  17 
  18 .LP
  19 .nf
  20 \fBdhcpconfig\fR \fB-R\fR \fIserver_addresses\fR
  21 .fi
  22 
  23 .LP
  24 .nf
  25 \fBdhcpconfig\fR \fB-U\fR [\fB-f\fR] [\fB-x\fR] [\fB-h\fR]
  26 .fi
  27 
  28 .LP
  29 .nf
  30 \fBdhcpconfig\fR \fB-N\fR \fInetwork_address\fR [\fB-m\fR \fIsubnet_mask\fR] [\fB-b\fR ]
  31      [\fB-t\fR \fIrouter_addresses\fR] [\fB-y\fR \fINIS-domain\fR]
  32      [\fB-a\fR \fINIS_server_addresses\fR] [\fB-g\fR]
  33 .fi
  34 
  35 .LP
  36 .nf
  37 \fBdhcpconfig\fR \fB-C\fR \fB-r\fR \fIresource\fR \fB-p\fR \fIpath\fR [\fB-f\fR] [\fB-k\fR]
  38      [\fB-u\fR \fIuninterpreted\fR]
  39 .fi
  40 
  41 .LP
  42 .nf
  43 \fBdhcpconfig\fR \fB-X\fR \fIfilename\fR [\fB-m\fR \fImacro_list\fR] [\fB-o\fR \fIoption_list\fR]
  44      [\fB-a\fR \fInetwork_addresses\fR] [\fB-f\fR] [\fB-x\fR] [\fB-g\fR]
  45 .fi
  46 
  47 .LP
  48 .nf
  49 \fBdhcpconfig\fR \fB-I\fR \fIfilename\fR [\fB-f\fR] [\fB-g\fR]
  50 .fi
  51 
  52 .LP
  53 .nf
  54 \fBdhcpconfig\fR \fB-P\fR [\fIparameter\fR[=\fIvalue\fR],]...
  55 .fi
  56 
  57 .LP
  58 .nf
  59 \fBdhcpconfig\fR \fB-S\fR [\fB-f\fR] [\fB-e\fR | \fB-d\fR | \fB-r\fR | \fB-q\fR]
  60 .fi
  61 
  62 .SH DESCRIPTION
  63 .sp
  64 .LP
  65 The \fBdhcpconfig\fR command is used to configure and manage the Dynamic Host
  66 Configuration Protocol (DHCP) service or BOOTP relay services. It is intended
  67 for use by experienced Solaris system administrators and is designed for ease
  68 of use in scripts. The \fBdhcpmgr\fR utility is recommended for less
  69 experienced administrators or those preferring a graphical utility to configure
  70 and manage the DHCP service or BOOTP relay service.
  71 .sp
  72 .LP
  73 The \fBdhcpconfig\fR command can be run by root, or by other users assigned to
  74 the DHCP Management profile. See \fBrbac\fR(5) and \fBuser_attr\fR(4).
  75 .sp
  76 .LP
  77 \fBdhcpconfig\fR requires one of the following function flags: \fB-D\fR,
  78 \fB-R\fR, \fB-U\fR, \fB-N\fR, \fB-C\fR, \fB-X\fR, \fB-I\fR, \fB-P\fR or
  79 \fB-S\fR.
  80 .sp
  81 .LP
  82 The \fBdhcpconfig\fR menu driven mode is supported in Solaris 8 and previous
  83 versions of Solaris.
  84 .SS "Where dhcpconfig Obtains Configuration Information"
  85 .sp
  86 .LP
  87 \fBdhcpconfig\fR scans various configuration files on your Solaris machine for
  88 information it can use to assign values to options contained in macros it adds
  89 to the \fBdhcptab\fR configuration table. The following table lists information
  90 \fBdhcpconfig\fR needs, the source used, and how the information is used:
  91 .sp
  92 
  93 .sp
  94 .TS
  95 box;
  96 l | l | l
  97 l | l | l .
  98 \fIInformation\fR       \fISource\fR    \fIWhere Used\fR
  99 _
 100 Timezone        System date, timezone settings  \fBLocale\fR macro
 101 DNS parameters  \fBnsswitch.conf\fR, \fB/etc/resolv.conf\fR     Server macro
 102 NIS parameters  System domainname, \fBnsswitch.conf\fR, NIS     Network macros
 103 Subnetmask      T{
 104 Network interface, \fBnetmasks\fR table in nameservice
 105 T}      Network macros
 106 .TE
 107 
 108 .sp
 109 .LP
 110 If you have not set these parameters on your server machine, you should do so
 111 before configuring the DHCP server with \fBdhcpconfig\fR. Note that if you
 112 specify options with the \fBdhcpconfig \fR\fB-D\fR command line, the values you
 113 supply override the values obtained from the system files.
 114 .SH OPTIONS
 115 .sp
 116 .LP
 117 The following options are supported:
 118 .sp
 119 .ne 2
 120 .na
 121 \fB\fB-C\fR\fR
 122 .ad
 123 .RS 23n
 124 Convert to using a new data store, recreating the DHCP data tables in a format
 125 appropriate to the new data store, and setting up the DHCP server to use the
 126 new data store.
 127 .sp
 128 The following sub-options are required:
 129 .sp
 130 .ne 2
 131 .na
 132 \fB\fB-p\fR \fIpath_to_data\fR\fR
 133 .ad
 134 .RS 20n
 135 The paths for \fBSUNWfiles\fR and \fBSUNWbinfiles\fR must be absolute
 136 \fBUNIX\fR pathnames. The path for \fBSUNWnisplus\fR must be a fully specified
 137 \fBNIS+\fR directory (including the tailing period.) See \fBdhcp_modules\fR(5).
 138 .RE
 139 
 140 .sp
 141 .ne 2
 142 .na
 143 \fB\fB-r\fR \fIdata_resource\fR\fR
 144 .ad
 145 .RS 20n
 146 New data store resource. One of the following must be specified:
 147 \fBSUNWfiles\fR, \fBSUNWbinfiles\fR, or \fBSUNWnisplus\fR. See
 148 \fBdhcp_modules\fR(5).
 149 .RE
 150 
 151 The following sub-options are optional:
 152 .sp
 153 .ne 2
 154 .na
 155 \fB\fB-f\fR\fR
 156 .ad
 157 .RS 20n
 158 Do not prompt for confirmation. If \fB-f\fR is not used, a warning and
 159 confirmation prompt are issued before the conversion starts.
 160 .RE
 161 
 162 .sp
 163 .ne 2
 164 .na
 165 \fB\fB-k\fR\fR
 166 .ad
 167 .RS 20n
 168 Keep the old DHCP data tables after successful conversion. If any problem
 169 occurs during conversion, tables are not deleted even if \fB-k\fR sub-option is
 170 not specified.
 171 .RE
 172 
 173 .sp
 174 .ne 2
 175 .na
 176 \fB\fB-u\fR \fIuninterpreted\fR\fR
 177 .ad
 178 .RS 20n
 179 Data which is ignored by \fBdhcpconfig\fR, but passed on to the datastore for
 180 interpretation. The private layer provides for module-specific configuration
 181 information through the use of the \fBRESOURCE_CONFIG \fR keyword.
 182 Uninterpreted data is stored within \fBRESOURCE_CONFIG\fR keyword of
 183 \fBdhcpsvc.conf\fR(4). The \fB-u\fR sub-option is not used with the
 184 \fBSUNWfiles\fR, \fBSUNWbinfiles\fR, and \fBSUNWnisplus\fR data stores. See
 185 \fBdhcp_modules\fR(5).
 186 .RE
 187 
 188 .RE
 189 
 190 .sp
 191 .ne 2
 192 .na
 193 \fB\fB-D\fR\fR
 194 .ad
 195 .RS 23n
 196 Configure the \fBDHCP\fR service.
 197 .sp
 198 The following sub-options are required:
 199 .sp
 200 .ne 2
 201 .na
 202 \fB\fB-r\fR \fIdata_resource\fR\fR
 203 .ad
 204 .RS 20n
 205 One of the following must be specified: \fBSUNWfiles\fR, \fBSUNWbinfiles\fR, or
 206 \fBSUNWnisplus\fR. Other data stores may be available.See
 207 \fBdhcp_modules\fR(5).
 208 .RE
 209 
 210 .sp
 211 .ne 2
 212 .na
 213 \fB\fB-p\fR \fIpath\fR\fR
 214 .ad
 215 .RS 20n
 216 The paths for \fBSUNWfiles\fR and \fBSUNWbinfiles\fR must be absolute
 217 \fBUNIX\fR pathnames. The path for \fBSUNWnisplus\fR must be a fully specified
 218 \fBNIS+\fR directory (including the tailing period.) . See
 219 \fBdhcp_modules\fR(5).
 220 .RE
 221 
 222 The following sub-options are optional:
 223 .sp
 224 .ne 2
 225 .na
 226 \fB\fB-a\fR \fIDNS_servers\fR\fR
 227 .ad
 228 .RS 21n
 229 IP addresses of DNS servers, separated with commas.
 230 .RE
 231 
 232 .sp
 233 .ne 2
 234 .na
 235 \fB\fB-d\fR \fIDNS_domain\fR\fR
 236 .ad
 237 .RS 21n
 238 DNS domain name.
 239 .RE
 240 
 241 .sp
 242 .ne 2
 243 .na
 244 \fB\fB-h\fR \fIhosts_resource\fR\fR
 245 .ad
 246 .RS 21n
 247 Resource in which to place hosts data. Usually, the name service in use on the
 248 server. Valid values are \fBnisplus\fR, \fBfiles\fR, or \fBdns\fR.
 249 .RE
 250 
 251 .sp
 252 .ne 2
 253 .na
 254 \fB\fB-l\fR \fIseconds\fR\fR
 255 .ad
 256 .RS 21n
 257 Lease length used for addresses not having a specified lease length, in
 258 seconds.
 259 .RE
 260 
 261 .sp
 262 .ne 2
 263 .na
 264 \fB\fB-n\fR\fR
 265 .ad
 266 .RS 21n
 267 Non-negotiable leases
 268 .RE
 269 
 270 .sp
 271 .ne 2
 272 .na
 273 \fB\fB-y\fR \fIhosts_domain\fR\fR
 274 .ad
 275 .RS 21n
 276 DNS or NIS+ domain name to be used for hosts data. Valid only if \fBdns\fR or
 277 \fBnisplus\fR is specified for \fB-h\fR sub-option.
 278 .RE
 279 
 280 .sp
 281 .ne 2
 282 .na
 283 \fB\fB-u\fR \fIuninterpreted\fR\fR
 284 .ad
 285 .RS 21n
 286 Data which is ignored by \fBdhcpconfig\fR, but passed on to the datastore for
 287 interpretation. The private layer provides for module-specific configuration
 288 information through the use of the \fBRESOURCE_CONFIG \fR keyword.
 289 Uninterpreted data is stored within \fBRESOURCE_CONFIG\fR keyword of
 290 \fBdhcpsvc.conf\fR(4). The \fB-u\fR sub-option is not used with the
 291 \fBSUNWfiles\fR, \fBSUNWbinfiles\fR, and \fBSUNWnisplus\fR data stores. See
 292 \fBdhcp_modules\fR(5).
 293 .RE
 294 
 295 .RE
 296 
 297 .sp
 298 .ne 2
 299 .na
 300 \fB\fB-I\fR \fIfilename\fR\fR
 301 .ad
 302 .RS 23n
 303 Import data from \fIfilename\fR, containing data previously exported from a
 304 Solaris DHCP server. Note that after importing, you may have to edit macros to
 305 specify the correct domain names, and edit network tables to change the owning
 306 server of addresses in imported networks. Use \fBdhtadm\fR and \fBpntadm\fR to
 307 do this.
 308 .sp
 309 The following sub-options are supported:
 310 .sp
 311 .ne 2
 312 .na
 313 \fB\fB-f\fR\fR
 314 .ad
 315 .RS 6n
 316 Replace any conflicting data with the data being imported.
 317 .RE
 318 
 319 .sp
 320 .ne 2
 321 .na
 322 \fB\fB-g\fR\fR
 323 .ad
 324 .RS 6n
 325 Signal the daemon to reload the \fBdhcptab\fR once the import has been
 326 completed.
 327 .RE
 328 
 329 .RE
 330 
 331 .sp
 332 .ne 2
 333 .na
 334 \fB\fB-N\fR \fInet_address\fR\fR
 335 .ad
 336 .RS 23n
 337 Configure an additional network for DHCP service.
 338 .sp
 339 The following sub-options are supported:
 340 .sp
 341 .ne 2
 342 .na
 343 \fB\fB-a\fR \fINIS_server_addresses\fR\fR
 344 .ad
 345 .RS 27n
 346 List of IP addresses of NIS servers.
 347 .RE
 348 
 349 .sp
 350 .ne 2
 351 .na
 352 \fB\fB-b\fR\fR
 353 .ad
 354 .RS 27n
 355 Network is a point-to-point (PPP) network, therefore no broadcast address
 356 should be configured. If \fB-\fRb is not used, the network is assumed to be a
 357 LAN, and the broadcast address is determined using the network address and
 358 subnet mask.
 359 .RE
 360 
 361 .sp
 362 .ne 2
 363 .na
 364 \fB\fB-g\fR\fR
 365 .ad
 366 .RS 27n
 367 Signal the daemon to reload the \fBdhcptab\fR.
 368 .RE
 369 
 370 .sp
 371 .ne 2
 372 .na
 373 \fB\fB-m\fR \fIxxx.xxx.xxx.xxx\fR\fR
 374 .ad
 375 .RS 27n
 376 Subnet mask for the network; if \fB-m\fR is not used, subnet mask is obtained
 377 from netmasks.
 378 .RE
 379 
 380 .sp
 381 .ne 2
 382 .na
 383 \fB\fB-t\fR \fIrouter_addresses\fR\fR
 384 .ad
 385 .RS 27n
 386 List of router IP addresses; if not specified, router discovery flag is set.
 387 .RE
 388 
 389 .sp
 390 .ne 2
 391 .na
 392 \fB\fB-y\fR \fINIS_domain_name\fR\fR
 393 .ad
 394 .RS 27n
 395 If NIS is used on this network, specify the NIS domain name.
 396 .RE
 397 
 398 .RE
 399 
 400 .sp
 401 .ne 2
 402 .na
 403 \fB\fB-P\fR\fR
 404 .ad
 405 .RS 23n
 406 Configure the DHCP service parameters. Each parameter and value are specified
 407 by the following pattern:
 408 .sp
 409 .in +2
 410 .nf
 411 \fIparameter\fR[=\fIvalue\fR],\&.\|.\|.
 412 .fi
 413 .in -2
 414 .sp
 415 
 416 Where parameter and value are:
 417 .sp
 418 .ne 2
 419 .na
 420 \fB\fIparameter\fR\fR
 421 .ad
 422 .RS 13n
 423 One of the DHCP service parameters listed in \fBdhcpsvc.conf\fR(4). If the
 424 corresponding \fIvalue\fR is not specified, the current parameter value is
 425 displayed. If \fIparameter\fR is not specified, all parameters and current
 426 values are displayed.
 427 .RE
 428 
 429 .sp
 430 .ne 2
 431 .na
 432 \fB\fIvalue\fR\fR
 433 .ad
 434 .RS 13n
 435 Optional string to set the servers parameter to if the value is acceptable. If
 436 the value is missing or is empty (\fB""\fR), the parameter and its current
 437 value are deleted.
 438 .RE
 439 
 440 After a parameter has changed the DHCP server requires re-starting before you
 441 can use new parameter values.
 442 .RE
 443 
 444 .sp
 445 .ne 2
 446 .na
 447 \fB\fB-R\fR \fIserver_addresses\fR\fR
 448 .ad
 449 .RS 23n
 450 Configure the BOOTP relay service. BOOTP or DHCP requests are forwarded to the
 451 list of servers specified.
 452 .sp
 453 \fIserver_addresses\fR is a comma separated list of hostnames and/or IP
 454 addresses.
 455 .RE
 456 
 457 .sp
 458 .ne 2
 459 .na
 460 \fB\fB-S\fR\fR
 461 .ad
 462 .RS 23n
 463 Control the DHCP service.
 464 .sp
 465 The following sub-options are supported:
 466 .sp
 467 .ne 2
 468 .na
 469 \fB\fB-d\fR\fR
 470 .ad
 471 .RS 6n
 472  Disable and stop the DHCP service.
 473 .RE
 474 
 475 .sp
 476 .ne 2
 477 .na
 478 \fB\fB-e\fR\fR
 479 .ad
 480 .RS 6n
 481 Enable and start the DHCP service.
 482 .RE
 483 
 484 .sp
 485 .ne 2
 486 .na
 487 \fB\fB-q\fR\fR
 488 .ad
 489 .RS 6n
 490 Display the state of the DHCP service. The state is encoded into the exit
 491 status.
 492 .sp
 493 .in +2
 494 .nf
 495 0    DHCP service disabled and stopped
 496 1    DHCP service enabled and stopped
 497 2    DHCP service disabled and running
 498 3    DHCP service enabled and running
 499 .fi
 500 .in -2
 501 .sp
 502 
 503 .RE
 504 
 505 .sp
 506 .ne 2
 507 .na
 508 \fB\fB-r\fR\fR
 509 .ad
 510 .RS 6n
 511 Enable and restart the DHCP service.
 512 .RE
 513 
 514 .RE
 515 
 516 .sp
 517 .ne 2
 518 .na
 519 \fB\fB-U\fR\fR
 520 .ad
 521 .RS 23n
 522 Unconfigure the DHCP service or BOOTP relay service.
 523 .sp
 524 The following sub-options are supported:
 525 .sp
 526 .ne 2
 527 .na
 528 \fB\fB-f\fR\fR
 529 .ad
 530 .RS 6n
 531 Do not prompt for confirmation. If \fB-f\fR is not used, a warning and
 532 confirmation prompt is issued.
 533 .RE
 534 
 535 .sp
 536 .ne 2
 537 .na
 538 \fB\fB-h\fR\fR
 539 .ad
 540 .RS 6n
 541 Delete hosts entries from name service.
 542 .RE
 543 
 544 .sp
 545 .ne 2
 546 .na
 547 \fB\fB-x\fR\fR
 548 .ad
 549 .RS 6n
 550 Delete the \fBdhcptab\fR and network tables.
 551 .RE
 552 
 553 .RE
 554 
 555 .sp
 556 .ne 2
 557 .na
 558 \fB\fB-X\fR \fIfilename\fR\fR
 559 .ad
 560 .RS 23n
 561 Export data from the DHCP data tables, saving to \fIfilename\fR, to move the
 562 data to another Solaris DHCP server.
 563 .sp
 564 The following sub-options are optional:
 565 .sp
 566 .ne 2
 567 .na
 568 \fB\fB-a\fR \fInetworks_to_export\fR\fR
 569 .ad
 570 .RS 25n
 571 List of networks whose addresses should be exported, or the keyword ALL to
 572 specify all networks. If \fB-a\fR is not specified, no networks are exported.
 573 .RE
 574 
 575 .sp
 576 .ne 2
 577 .na
 578 \fB\fB-g\fR \fR
 579 .ad
 580 .RS 25n
 581 Signal the daemon to reload the \fBdhcptab\fR after the export has been
 582 completed.
 583 .RE
 584 
 585 .sp
 586 .ne 2
 587 .na
 588 \fB\fB-m\fR \fImacros_to_export\fR\fR
 589 .ad
 590 .RS 25n
 591 List of macros to export, or the keyword \fBALL\fR to specify all macros. If
 592 \fB-m\fR is not specified, no macros are exported.
 593 .RE
 594 
 595 .sp
 596 .ne 2
 597 .na
 598 \fB\fB-o\fR \fIoptions_to_export\fR\fR
 599 .ad
 600 .RS 25n
 601 List of options to export, or the keyword \fBALL\fR to specify all options. If
 602 \fB-o\fR is not specified, no options are exported.
 603 .RE
 604 
 605 .sp
 606 .ne 2
 607 .na
 608 \fB\fB-x\fR\fR
 609 .ad
 610 .RS 25n
 611 Delete the data from this server after it is exported. If \fB-x\fR is not
 612 specified you are in effect copying the data.
 613 .RE
 614 
 615 .RE
 616 
 617 .SH EXAMPLES
 618 .LP
 619 \fBExample 1 \fRConfiguring DHCP Service with Binary Files Data Store
 620 .sp
 621 .LP
 622 The following command configures DHCP service, using the binary files data
 623 store, in the DNS domain \fBacme.eng\fR, with a lease time of 28800 seconds (8
 624 hours),
 625 
 626 .sp
 627 .in +2
 628 .nf
 629 example# dhcpconfig -D -r SUNWbinfiles -p /var/dhcp -l 28800\e
 630              -d acme.eng -a 120.30.33.4 -h dns -y acme.eng
 631 .fi
 632 .in -2
 633 .sp
 634 
 635 .LP
 636 \fBExample 2 \fRConfiguring BOOTP Relay Agent
 637 .sp
 638 .LP
 639 The following command configures the DHCP daemon as a BOOTP relay agent, which
 640 forwards BOOTP and DHCP requests to the servers having the IP addresses
 641 120.30.33.7 and 120.30.42.132:
 642 
 643 .sp
 644 .in +2
 645 .nf
 646 example# dhcpconfig -R 120.30.33.7,120.30.42.132
 647 .fi
 648 .in -2
 649 .sp
 650 
 651 .LP
 652 \fBExample 3 \fRUnconfiguring DHCP Service
 653 .sp
 654 .LP
 655 The following command unconfigures the DHCP service, with confirmation, and
 656 deletes the DHCP data tables and host table entries:
 657 
 658 .sp
 659 .in +2
 660 .nf
 661 example# dhcpconfig -U -x -h
 662 .fi
 663 .in -2
 664 .sp
 665 
 666 .LP
 667 \fBExample 4 \fRConfiguring a Network for DHCP Service
 668 .sp
 669 .LP
 670 The following command configures an additional LAN network for DHCP service,
 671 specifying that clients should use router discovery and providing the NIS
 672 domain name and NIS server address:
 673 
 674 .sp
 675 .in +2
 676 .nf
 677 example# dhcpconfig -N 120.30.171.0 -y east.acme.eng.com\e
 678              -a 120.30.33.4
 679 .fi
 680 .in -2
 681 .sp
 682 
 683 .LP
 684 \fBExample 5 \fRConverting to SUNWnisplus Data Store
 685 .sp
 686 .LP
 687 The following command converts a DHCP server from using a text or binary files
 688 data store to a NIS+ data store, deleting the old data store's DHCP tables:
 689 
 690 .sp
 691 .in +2
 692 .nf
 693 example# dhcpconfig -C -r SUNWnisplus -p whatever.com.
 694 .fi
 695 .in -2
 696 .sp
 697 
 698 .LP
 699 \fBExample 6 \fRExporting a Network, Macros, and Options from a DHCP Server
 700 .sp
 701 .LP
 702 The following command exports one network (\fB120.30.171.0\fR) and its
 703 addresses, the macro \fB120.30.171.0\fR, and the options \fBmotd\fR and
 704 \fBPSptr\fRfrom a DHCP server, saves the exported data in file
 705 \fB/export/var/120301710_data\fR, and deletes the exported data from the
 706 server.
 707 
 708 .sp
 709 .in +2
 710 .nf
 711 example# dhcpconfig -X /var/dhcp/120301710_export
 712      -a 120.30.171.0 -m 120.30.171.0 -o motd,PSptr
 713 .fi
 714 .in -2
 715 .sp
 716 
 717 .LP
 718 \fBExample 7 \fRImporting Data on a DHCP Server
 719 .sp
 720 .LP
 721 The following command imports DHCP data from a file,
 722 \fB/net/golduck/export/var/120301710_data\fR, containing data previously
 723 exported from a Solaris DHCP server, overwrites any conflicting data on the
 724 importing server, and signals the daemon to reload the \fBdhcptab\fR once the
 725 import is completed:
 726 
 727 .sp
 728 .in +2
 729 .nf
 730 example# dhcpconfig -I /net/golduck/export/var/120301710_data -f -g
 731 .fi
 732 .in -2
 733 .sp
 734 
 735 .LP
 736 \fBExample 8 \fRSetting DHCP Server Parameters
 737 .sp
 738 .LP
 739  The following command sets the number of minutes that the DHCP server waits
 740 before timing out when updating DNS information on DHCP clients to five
 741 minutes.
 742 
 743 .sp
 744 .in +2
 745 .nf
 746 example# example# dhcpconfig -P UPDATE_TIMEOUT=5
 747 .fi
 748 .in -2
 749 .sp
 750 
 751 .LP
 752 \fBExample 9 \fRRe-starting the DHCP server
 753 .sp
 754 .LP
 755 The following command stops and re-starts the DHCP server.
 756 
 757 .sp
 758 .in +2
 759 .nf
 760 example#  example# dhcpconfig -S -r
 761 DHCP server stopped
 762 DHCP server started
 763 .fi
 764 .in -2
 765 .sp
 766 
 767 .SH ATTRIBUTES
 768 .sp
 769 .LP
 770 See \fBattributes\fR(5) for descriptions of the following attributes:
 771 .sp
 772 
 773 .sp
 774 .TS
 775 box;
 776 c | c
 777 l | l .
 778 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 779 _
 780 Interface Stability     Evolving
 781 .TE
 782 
 783 .SH SEE ALSO
 784 .sp
 785 .LP
 786 \fBdhcpmgr\fR(1M), \fBdhtadm\fR(1M), \fBin.dhcpd\fR(1M), \fBpntadm\fR(1M),
 787 \fBdhcp_network\fR(4), \fBdhcptab\fR(4), \fBdhcpsvc.conf\fR(4),
 788 \fBnsswitch.conf\fR(4), \fBresolv.conf\fR(4), \fBuser_attr\fR(4),
 789 \fBattributes\fR(5), \fBdhcp\fR(5), \fBdhcp_modules\fR(5), \fBrbac\fR(5)
 790 .sp
 791 .LP
 792 \fI\fR