InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (8966 KB)
dhcpconfig(1M)Name | Synopsis | Description | Options | Examples | Attributes | See Also Name
Synopsis
dhcpconfig -D -r resource -p path [-u uninterpreted]
[-l lease_length] [-n ] [-d DNS_domain]
[-a DNS_server_addresses] [-h hosts_resource]
[-y hosts_domain]
dhcpconfig -R server_addresses dhcpconfig -U [-f] [-x] [-h]
dhcpconfig -N network_address [-m subnet_mask] [-b ]
[-t router_addresses] [-y NIS-domain]
[-a NIS_server_addresses] [-g]
dhcpconfig -C -r resource -p path [-f] [-k]
[-u uninterpreted]
dhcpconfig -X filename [-m macro_list] [-o option_list]
[-a network_addresses] [-f] [-x] [-g]
dhcpconfig -I filename [-f] [-g] dhcpconfig -P [parameter[=value],]... dhcpconfig -S [-f] [-e | -d | -r | -q] DescriptionThe dhcpconfig command is used to configure and manage the Dynamic Host Configuration Protocol (DHCP) service or BOOTP relay services. It is intended for use by experienced Solaris system administrators and is designed for ease of use in scripts. The dhcpmgr utility is recommended for less experienced administrators or those preferring a graphical utility to configure and manage the DHCP service or BOOTP relay service. The dhcpconfig command can be run by root, or by other users assigned to the DHCP Management profile. See rbac(5) and user_attr(4). dhcpconfig requires one of the following function flags: -D, -R, -U, -N, -C, -X, -I, -P or -S. The dhcpconfig menu driven mode is supported in Solaris 8 and previous versions of Solaris. Where dhcpconfig Obtains Configuration Informationdhcpconfig scans various configuration files on your Solaris machine for information it can use to assign values to options contained in macros it adds to the dhcptab configuration table. The following table lists information dhcpconfig needs, the source used, and how the information is used:
If you have not set these parameters on your server machine, you should do so before configuring the DHCP server with dhcpconfig. Note that if you specify options with the dhcpconfig -D command line, the values you supply override the values obtained from the system files. Options
The following options are supported: ExamplesExample 1 Configuring DHCP Service with Binary Files Data StoreThe following command configures DHCP service, using the binary files data store, in the DNS domain acme.eng, with a lease time of 28800 seconds (8 hours),
Example 2 Configuring BOOTP Relay AgentThe following command configures the DHCP daemon as a BOOTP relay agent, which forwards BOOTP and DHCP requests to the servers having the IP addresses 120.30.33.7 and 120.30.42.132:
Example 3 Unconfiguring DHCP ServiceThe following command unconfigures the DHCP service, with confirmation, and deletes the DHCP data tables and host table entries:
Example 4 Configuring a Network for DHCP ServiceThe following command configures an additional LAN network for DHCP service, specifying that clients should use router discovery and providing the NIS domain name and NIS server address:
Example 5 Converting to SUNWnisplus Data StoreThe following command converts a DHCP server from using a text or binary files data store to a NIS+ data store, deleting the old data store's DHCP tables:
Example 6 Exporting a Network, Macros, and Options from a DHCP ServerThe following command exports one network (120.30.171.0) and its addresses, the macro 120.30.171.0, and the options motd and PSptrfrom a DHCP server, saves the exported data in file /export/var/120301710_data, and deletes the exported data from the server.
Example 7 Importing Data on a DHCP ServerThe following command imports DHCP data from a file, /net/golduck/export/var/120301710_data, containing data previously exported from a Solaris DHCP server, overwrites any conflicting data on the importing server, and signals the daemon to reload the dhcptab once the import is completed:
Example 8 Setting DHCP Server ParametersThe following command sets the number of minutes that the DHCP server waits before timing out when updating DNS information on DHCP clients to five minutes.
Example 9 Re-starting the DHCP serverThe following command stops and re-starts the DHCP server.
AttributesSee attributes(5) for descriptions of the following attributes:
See Alsodhcpmgr(1M), dhtadm(1M), in.dhcpd(1M), pntadm(1M), dhcp_network(4), dhcptab(4), dhcpsvc.conf(4), nsswitch.conf(4), resolv.conf(4), user_attr(4), attributes(5), dhcp(5), dhcp_modules(5), rbac(5) Name | Synopsis | Description | Options | Examples | Attributes | See Also |
||||||||||||||||||||||||||||||||