Skip Navigation Links | |
Exit Print View | |
System Administration Guide: IP Services Oracle Solaris 11 Express 11/10 |
1. Planning an IPv4 Addressing Scheme (Tasks)
2. Planning an IPv6 Addressing Scheme (Overview)
3. Planning an IPv6 Network (Tasks)
4. Configuring TCP/IP Network Services and IPv4 Addressing (Tasks)
5. Enabling IPv6 on a Network (Tasks)
6. Administering a TCP/IP Network (Tasks)
8. Troubleshooting Network Problems (Tasks)
9. TCP/IP and IPv4 in Depth (Reference)
12. Planning for DHCP Service (Tasks)
13. Configuring the DHCP Service (Tasks)
14. Administering DHCP (Tasks)
Starting and Stopping DHCP Manager
How to Start and Stop DHCP Manager
Setting Up User Access to DHCP Commands
How to Grant Users Access to DHCP Commands
Starting and Stopping the DHCP Service
How to Start and Stop the DHCP Service (DHCP Manager)
How to Enable and Disable the DHCP Service (DHCP Manager)
How to Enable and Disable the DHCP Service (dhcpconfig -S)
DHCP Service and the Service Management Facility
Modifying DHCP Service Options (Task Map)
How to Generate Verbose DHCP Log Messages (DHCP Manager)
How to Generate Verbose DHCP Log Messages (Command Line)
How to Enable and Disable DHCP Transaction Logging (DHCP Manager)
How to Enable and Disable DHCP Transaction Logging (Command Line)
How to Log DHCP Transactions to a Separate syslog File
Enabling Dynamic DNS Updates by a DHCP Server
How to Enable Dynamic DNS Updating for DHCP Clients
Customizing Performance Options for the DHCP Server
How to Customize DHCP Performance Options (DHCP Manager)
How to Customize DHCP Performance Options (Command Line)
Adding, Modifying, and Removing DHCP Networks (Task Map)
Specifying Network Interfaces for DHCP Monitoring
How to Specify Network Interfaces for DHCP Monitoring (DHCP Manager)
How to Specify Network Interfaces for DHCP Monitoring (dhcpconfig)
How to Add a DHCP Network (DHCP Manager)
How to Add a DHCP Network (dhcpconfig)
Modifying DHCP Network Configurations
How to Modify the Configuration of a DHCP Network (DHCP Manager)
How to Modify the Configuration of a DHCP Network (dhtadm)
Supporting BOOTP Clients With the DHCP Service (Task Map)
How to Set Up Support of Any BOOTP Client (DHCP Manager)
How to Set Up Support of Registered BOOTP Clients (DHCP Manager)
Working With IP Addresses in the DHCP Service (Task Map)
Adding IP Addresses to the DHCP Service
How to Add a Single IP Address (DHCP Manager)
How to Duplicate an Existing IP Address (DHCP Manager)
How to Add Multiple IP Addresses (DHCP Manager)
How to Add IP Addresses (pntadm)
Modifying IP Addresses in the DHCP Service
How to Modify IP Address Properties (DHCP Manager)
How to Modify IP Address Properties (pntadm)
Removing IP Addresses From the DHCP Service
Marking IP Addresses as Unusable by the DHCP Service
How to Mark IP Addresses as Unusable (DHCP Manager)
How to Mark IP Addresses as Unusable (pntadm)
Deleting IP Addresses From the DHCP Service
How to Delete IP Addresses From DHCP Service (DHCP Manager)
How to Delete IP Addresses From the DHCP Service (pntadm)
Assigning a Reserved IP Address to a DHCP Client
How to Assign a Consistent IP Address to a DHCP Client (DHCP Manager)
How to Assign a Consistent IP Address to a DHCP Client (pntadm)
Working With DHCP Macros (Task Map)
How to View Macros Defined on a DHCP Server (DHCP Manager)
How to View Macros Defined on a DHCP Server (dhtadm)
How to Change Values for Options in a DHCP Macro (DHCP Manager)
How to Change Values for Options in a DHCP Macro (dhtadm)
How to Add Options to a DHCP Macro (DHCP Manager)
How to Add Options to a DHCP Macro (dhtadm)
How to Delete Options From a DHCP Macro (DHCP Manager)
How to Delete Options From a DHCP Macro (dhtadm)
How to Create a DHCP Macro (DHCP Manager)
How to Create a DHCP Macro (dhtadm)
How to Delete a DHCP Macro (DHCP Manager)
How to Delete a DHCP Macro (dhtadm)
Working With DHCP Options (Task Map)
How to Create DHCP Options (DHCP Manager)
How to Create DHCP Options (dhtadm)
How to Modify DHCP Option Properties (DHCP Manager)
How to Modify DHCP Option Properties (dhtadm)
How to Delete DHCP Options (DHCP Manager)
How to Delete DHCP Options (dhtadm)
Modifying the DHCP Client's Option Information
Supporting Oracle Solaris Network Installation With the DHCP Service
Setting Up DHCP Clients to Receive Information Only (Task Map)
Converting to a New DHCP Data Store
How to Convert the DHCP Data Store (DHCP Manager)
How to Convert the DHCP Data Store (dhcpconfig -C)
Moving Configuration Data Between DHCP Servers (Task Map)
How to Export Data From a DHCP Server (DHCP Manager)
How to Export Data From a DHCP Server (dhcpconfig -X)
How to Import Data on a DHCP Server (DHCP Manager)
How to Import Data on a DHCP Server (dhcpconfig -I)
How to Modify Imported DHCP Data (DHCP Manager)
How to Modify Imported DHCP Data (pntadm, dhtadm)
15. Configuring and Administering the DHCP Client
16. Troubleshooting DHCP (Reference)
17. DHCP Commands and Files (Reference)
18. IP Security Architecture (Overview)
20. IP Security Architecture (Reference)
21. Internet Key Exchange (Overview)
23. Internet Key Exchange (Reference)
24. IP Filter in Oracle Solaris (Overview)
Part IV Networking Performance
26. Integrated Load Balancer Overview
27. Configuration of Integrated Load Balancer Tasks
28. Virtual Router Redundancy Protocol (Overview)
29. VRRP Configuration (Tasks)
30. Implementing Congestion Control
Part V IP Quality of Service (IPQoS)
31. Introducing IPQoS (Overview)
32. Planning for an IPQoS-Enabled Network (Tasks)
33. Creating the IPQoS Configuration File (Tasks)
34. Starting and Maintaining IPQoS (Tasks)
35. Using Flow Accounting and Statistics Gathering (Tasks)
When you configure a DHCP server, you must also configure at least one network in order to use the DHCP service. You can add more networks at any time.
The following table is a map that describes additional tasks that you can perform when working with DHCP networks after their initial configuration. The task map includes links to procedures for carrying out the tasks.
|
By default, both dhcpconfig and DHCP Manager's Configuration Wizard configure the DHCP server to monitor all the server system's network interfaces. If you add a new network interface to the server system, the DHCP server automatically monitors the new interface when you boot the system. You can then add any networks to be monitored through the network interface.
However, you can also specify which network interfaces should be monitored, and which interfaces should be ignored. You might want to ignore an interface if you do not want to offer DHCP service on that network.
If you specify that any interface should be ignored, and then install a new interface, the DHCP server ignores the new interface. You must add the new interface to the server's list of monitored interfaces. You can specify interfaces with DHCP Manager or the dhcpconfig utility.
This section includes procedures that enable you to specify which network interfaces DHCP should monitor or ignore. The DHCP Manager procedure uses the Interfaces tab of the DHCP Manager's Modify Service Options dialog box, which is shown in the following figure.
Figure 14-4 Interfaces Tab of Modify Service Options Dialog Box in DHCP Manager
The Modify Service Options dialog box is displayed.
See How to Start and Stop DHCP Manager for information about DHCP Manager.
For example, to ignore an interface, select the interface in the Monitored Interfaces list, and then click the right arrow button. The interface is then shown in the Ignored Interfaces list.
The changes you make persist across reboots.
# /usr/sbin/dhcpconfig -P INTERFACES=int,int,...
int, int,... is a list of interfaces to monitor. The interface names must be separated by commas.
For example, you would use the following command to monitor only ge0 and ge1:
#/usr/sbin/dhcpconfig -P INTERFACES=ge0,ge1
Interfaces that you want to ignore should be omitted from the dhcpconfig command line.
The changes you make with this command persist across reboots.
When you use DHCP Manager to configure the server, the first network is also configured at the same time. The first network is usually the local network on the server system's primary interface. If you want to configure additional networks, use the DHCP Network Wizard in DHCP Manager.
If you use the dhcpconfig -D command to configure the server, you must separately configure all networks that you want to use the DHCP service. See How to Add a DHCP Network (dhcpconfig) for more information.
The following figure shows the initial dialog box for the DHCP Network Wizard in DHCP Manager.
Figure 14-5 DHCP Manager's Network Wizard
When you configure a new network, DHCP Manager creates the following components:
A network table in the data store. The new network is shown in the network list within the Addresses tab of DHCP Manager.
A network macro that contains information needed by clients that reside on this network. The network macro's name matches the IP address of the network. The network macro is added to the dhcptab table in the data store.
Any networks already configured for DHCP service are listed.
See How to Start and Stop DHCP Manager for information about DHCP Manager.
Planning is described in Planning DHCP Configuration of Your Remote Networks.
If you have difficulty with the wizard, click Help in the wizard window. Your web browser displays help for the DHCP Network Wizard.
The Network Wizard creates an empty network table, which is listed in the left pane of the window.
The Network Wizard also creates a network macro whose name matches the IP address of the network.
You can confirm that the information that you provided in the wizard has been inserted as values for options in the network macro.
You must add addresses for the network before the network's IP addresses can be managed under DHCP. See Adding IP Addresses to the DHCP Service for more information.
If you leave the network table empty, the DHCP server can still provide configuration information to clients. See Setting Up DHCP Clients to Receive Information Only (Task Map) for more information.
# /usr/sbin/dhcpconfig -N network-address
network-address is the IP address of the network you want to add to the DHCP service. See the dhcpconfig(1M) man page for suboptions you can use with the -N option.
If you do not use suboptions, dhcpconfig uses network files to obtain information about the network.
You must add addresses for the network before the network's IP addresses can be managed under DHCP. See Adding IP Addresses to the DHCP Service for more information.
If you leave the network table empty, the DHCP server can still provide configuration information to clients. See Setting Up DHCP Clients to Receive Information Only (Task Map) for more information.
After you add a network to the DHCP service, you can modify the configuration information that you originally supplied. The configuration information is stored in the network macro used to pass information to clients on the network. You must modify the network macro to change the network configuration.
The following figure shows the Macros tab of DHCP Manager.
Figure 14-6 DHCP Manager's Macros Tab
All macros that are defined for this DHCP server are listed in the left pane.
See How to Start and Stop DHCP Manager for information about DHCP Manager.
The network macro name is the network IP address.
The Macro Properties dialog box displays a table of the options included in the macro.
The option name and its value are displayed in text fields near the top of the dialog box.
The Select Option dialog box displays a list of all DHCP standard options, with a brief description of each option.
The new option name is displayed in the Option Name field.
See Modifying DHCP Macros for more general information about modifying macros.
This selection tells the DHCP server to reread the dhcptab table to put the change into effect immediately after you click OK.
The network macro's name matches the network IP address.
If you don't know which macro includes this information, you can display the dhcptab table to list all macros by using the command dhtadm -P.
# dhtadm -M -m macro-name -e 'symbol=value' -g
See the dhtadm(1M) man page for more information about dhtadm command-line options.
Example 14-2 Using the dhtadm Command to Modify a DHCP Macro
For example, to change the 10.25.62.0 macro's lease time to 57600 seconds and the NIS domain to sem.example.com, you would type the following commands:
# dhtadm -M -m 10.25.62.0 -e 'LeaseTim=57600' -g
# dhtadm -M -m 10.25.62.0 -e 'NISdmain=sem.example.com' -g
The -g option causes the DHCP daemon to reread the dhcptab table and put the changes into effect.
DHCP Manager enables you to remove multiple networks at once. You have the option to automatically remove the hosts table entries associated with the DHCP-managed IP addresses on those networks as well. The following figure shows DHCP Manager's Delete Networks dialog box.
Figure 14-7 Delete Networks Dialog Box in DHCP Manager
The pntadm command requires you to delete each IP address entry from a network before you delete that network. You can delete only one network at a time.
See How to Start and Stop DHCP Manager for information about DHCP Manager.
The Delete Networks dialog box opens.
Press the Control key while you click with the mouse to select multiple networks. Press the Shift key while you click to select a range of networks.
Note that deleting host table entries does not delete the host registrations at the DNS server for these addresses. Entries are deleted only in the local name service.
Note that this procedure deletes the network's IP addresses from the DHCP network table before removing the network. The addresses are deleted to ensure that the host names are removed from the hosts file or database.
# pntadm -D -y IP-address
For example, to remove IP address 10.25.52.1, you would type the following command:
# pntadm -D -y 10.25.52.1
The -y option specifies to delete the host name.
You might want to create a script to run the pntadm command if you are deleting many addresses.
# pntadm -R network-IP-address
For example, to remove network 10.25.52.0, you would type the following command:
# pntadm -R 10.25.52.0
See the pntadm(1M) man page for more information about using the pntadm utility.