Starting and stopping the DHCP service encompasses several degrees ofaction you can take to affect the operation of the DHCP daemon. You must understandthe difference between starting/stopping, enabling/disabling, and configuring/unconfiguringthe DHCP service in order to select the correct procedure to obtain the resultyou want. The terms are explained below.
Starting, stopping, and restarting the DHCP serviceaffects the running of the daemon only at the current session. For example,if you stop the DHCP service, the currently running daemon terminates butrestarts when you reboot the system. DHCP data tables are not affected bystopping the service.
Enabling and disabling the DHCP serviceaffects the running of the daemon for current and future sessions. If youdisable the DHCP service, the currently running daemon terminates and doesnot start when you reboot the server. You must enable the DHCP daemon forthe automatic start at system boot to occur. DHCP data tables are not affected.
Unconfiguring the DHCPservice shuts down the currently running daemon, prevents the daemonfrom starting on system reboot, and gives you the option of removing the DHCPdata tables. Unconfiguration is described in Chapter10, Configuring DHCP Service.
Note -
If a server has multiple network interfaces and you do not want to provideDHCP services on all the networks, see "Monitoring and Ignoring Network Interfaces for DHCP Service".
This section provides the procedures for starting and stopping the DHCPservice, and enabling and disabling it.
How to Start and Stop the DHCP Service (DHCP Manager)
Start DHCP Manager.
See "How to Start DHCP Manager" for the procedure.
Select one of the following operations:
How to Start and Stop the DHCP Service (Command Line)
How to Enable and Disable the DHCP Service (DHCP Manager)
How to Disable the DHCP Service (Command Line)
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
How to Enable the DHCP Service (Command Line)
This step is needed only if you previously disabled the server, keepingthe 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 seethe 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 configuringnetworks.
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):