Starting and stopping the DHCP service encompasses several degrees of action you can take to affect the operation of the DHCP daemon. You must understand the difference between starting/stopping, enabling/disabling, and configuring/unconfiguring the DHCP service in order to select the correct procedure to obtain the result you want. The terms are explained below.
Starting, stopping, and restarting the DHCP service affects the running of the daemon only at the current session. For example, if you stop the DHCP service, the currently running daemon terminates but restarts when you reboot the system. DHCP data tables are not affected by stopping the service.
Enabling and disabling the DHCP service affects the running of the daemon for current and future sessions. If you disable the DHCP service, the currently running daemon terminates and does not start when you reboot the server. You must enable the DHCP daemon for the automatic start at system boot to occur. DHCP data tables are not affected.
Unconfiguring the DHCP service shuts down the currently running daemon, prevents the daemon from starting on system reboot, and gives you the option of removing the DHCP data tables. Unconfiguration is described in Chapter 10, Configuring DHCP Service.
If a server has multiple network interfaces and you do not want to provide DHCP services on all the networks, see "Monitoring and Ignoring Network Interfaces for DHCP Service".
This section provides the procedures for starting and stopping the DHCP service, and enabling and disabling it.
Start DHCP Manager.
See "How to Start DHCP Manager" for the procedure.
Select one of the following operations:
As root, start dhcpconfig by typing the following command:
# /usr/sbin/dhcpconfig |
Select Unconfigure DHCP or Relay Service by typing 3.
Type Y at the following prompt to disable DHCP:
Unconfigure will stop the DHCP service and remove /etc/default/dhcp. Are you SURE you want to disable the DHCP service? ([Y]/N): Y |
This step is needed only if you previously disabled the server, keeping the data intact.
Become superuser on the server system.
Start dhcpconfig by typing the following command:
# /usr/sbin/dhcpconfig |
Select Configure DHCP Service or Configure BOOTP Relay Agent, as appropriate.
Press Return to accept default values for all prompts until you see the following prompt:
Enable DHCP/BOOTP support of networks you select? ([Y]/N): |
Type Y at the prompt to enable the DHCP service.
Answer the following prompts as shown to avoid prompts for configuring networks.
If you had previously disabled the service while keeping the data intact, you should not need to reconfigure the network information.
### Configure Local Networks ### Configure BOOTP/DHCP on local LAN network: 172.21.0.0? ([Y]/N):N ### Configure Remote Networks ### Would you like to configure BOOTP/DHCP service on remote networks? ([Y]/N):N |
Restart the DHCP service by pressing Return at the following prompt:
Would you like to restart the DHCP service? (recommended) ([Y]/N): |