How To: Servers and Relays
Configure a DHCP Server
When you start DHCP Manager on a Solaris system that has not been configured as either a DHCP server or as a BOOTP relay agent, the Choose Server Configuration dialog box is displayed. You can choose to configure a server as either a DHCP server or as a BOOTP relay agent, but not both.
- Select Configure as DHCP Server.
The DHCP Server Configuration Wizard starts.
- Step through the configuration, providing the information requested.
When the configuration is completed, the DHCP server starts.
To change any of the configuration parameters, you can later modify the macros containing the configuration parameters. Alternatively, you can unconfigure the server and then use the Configuration Wizard to reconfigure the server.
To customize DHCP services, select Modify from the Services menu.
Configure a BOOTP Relay Agent
When you start DHCP Manager on a Solaris system that has not been configured as either a DHCP server or as a BOOTP relay agent, the Choose Server Configuration dialog box is displayed. You can choose to configure a server as either a DHCP server or as a BOOTP relay agent, but not both.
- Select Configure as BOOTP Relay.
The Configure BOOTP Relay dialog box is displayed.
- Enter DHCP servers.
Type the names or IP addresses of one or more DHCP servers to which to relay configuration requests, and click OK.
When the configuration is completed, the BOOTP relay agent starts.
To customize BOOTP relay services, select Modify from the Services menu.
Configure a Network
When you first configure the DHCP server, the Configuration Wizard configures the first network. To add additional networks, follow these steps.
- Choose Network Wizard from the Edit menu of the View Addresses window.
- Enter configuration information for the new network.
- Click OK to confirm your action.
Delete a Network
To delete a network is to remove it from the list of networks monitored by the DHCP server.
- Click the Addresses tab and choose Delete Network from the Edit menu.
The Delete Network dialog box is displayed. Configured networks are listed in the Keep Networks list.
- Select the network to delete and use the arrow keys to move it to the Delete Networks list.
- Click OK to confirm your actions.
You cannot add a network using this dialog box. To add or restore a network to the DHCP server's list of monitored networks, you must configure the network.
Customize Services
You can configure DHCP or BOOTP services for your server or BOOTP relay agent.
- Choose Modify from the Services menu.
The Modify Service Options dialog is displayed.
Enter configuration information
Use the Modify Service Options dialog to customize the DHCP or Relay services.
You can configure options such as BOOTP compatibility mode (for the DHCP server) or modify the list of DHCP servers to which to forward requests (relay agent).
- Click OK.
Start, Stop, or Restart a Server or Relay Agent
The DHCP server or BOOTP relay agent starts
automatically when you have completed the
initial configuration. You can stop or start the service by
choosing Stop or Start from the Services menu. This is analogous
to running the /etc/init.d/dhcp
script with the stop or start command.
- Choose the Services menu in the main window.
- Choose Start, Stop, or Restart from the Service
menu.
Start |
Click Start to start DHCP or BOOTP relay
service that has been stopped. |
Stop |
Click Stop to stop the DHCP or
BOOTP daemon. |
Restart |
Click Restart to force the DHCP server to reread the dhcptab. |
- Click OK to confirm your actions.
Enable or Disable a Server or Relay Agent
Disabling DHCP stops the DHCP daemon and removes it from the boot sequence. When the DHCP service is disabled, it will not start automatically when you reboot the server.
Enabling DHCP starts the DHCP daemon and restores it to the boot sequence.
- Choose the Services menu in the main window.
- Choose Enable or Disable from the Services menu.
Enable |
Click Enable to restore a DHCP service that has been disabled. |
Disable |
Click Disable to remove DHCP service from the boot sequence. |
- Click OK to confirm your actions.
Export Data From a DHCP Server
If you want to move IP addresses, macros, or options to another Solaris DHCP server, you must first export the data from the owning DHCP server.
- From the Services menu, choose Export Data.
The Export Data wizard is displayed.
- Answer the prompts to indicate what you want to export.
- Click OK to confirm your actions.
Import Data to a DHCP Server
After exporting IP addresses, macros, or options from a DHCP server, you can import it to another Solaris DHCP server.
- From the Services menu, choose Import Data.
The Import Data wizard is displayed.
- Type the full path to the file containing the data you want to import to
this DHCP server.
This file must have been created by exporting data from a Solaris DHCP server.
- Choose Overwrite Existing Data if you want conflicting information on the new server to be replaced with data being imported.
If the DHCP server on which
you are importing data has configuration data
for any of the same networks, IP addresses,
macros, or options being imported, that data will be
replaced with the imported data when
you select this option. By default,
conflicting data will not be overwritten.
- Click OK to confirm your actions.
Convert to a New Data Store
The Solaris DHCP service supports several data stores, which are designed for use by
sites with varying requirements.
You may need to convert to a new data store if, for
example, your number of DHCP clients increases to the point that you need higher
performance or higher capacity from the DHCP service, or if you want to share the
DHCP server duties among multiple servers.
- From the Services menu, choose Convert Data Store.
The Data Store Conversion wizard is displayed.
- Answer the prompts to indicate what you want to export.
- Click OK to confirm your actions.
Unconfigure a DHCP Server
If you no longer want the DHCP server to run on this machine, you can unconfigure the DHCP server. Be sure that responsibility for the addresses owned by the server has been transferred to another DHCP server before you unconfigure the server. See Export Data From a DHCP Server
- From the Services menu, choose Unconfigure.
The Unconfigure Service dialog box is displayed.
- Choose one or both options.
Remove dhcptab and all DHCP network tables |
Use this option with caution. If you use NIS+, removing these tables may cause a problem for other DHCP servers that share these databases. |
Remove all hosts table entries for DHCP addresses
|
Check this box to also remove entries from the server's hosts name service. |
- Click OK to confirm your actions.
Unconfigure a BOOTP Relay Agent
- From the Services menu, choose Unconfigure.
The Unconfigure Service dialog box is displayed.
- Click OK to confirm your actions.
return to top
|