• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS service ‘dhcpd’

by admin

Service Name

dhcpd

Description

– The Dynamic Host Configuration Protocol (DHCP), a derivation of the original Bootstrap Protocol (BOOTP), has expanded its usefulness beyond its thin-client origins. Enterprise-level systems often use the DHCP service to centralize the administration of TCP/IP addresses, network masks, hostnames, router and DNS information.
– The dhcpd service is run on the DHCP server. Upon booting, DHCP client machines broadcast queries for information which are then answered by the DHCP servers on the local network.

DHCP clients do not need to run the dhcpd service.

– The dhcpd service merely starts the dhcpd daemon during server start-up and stops it during server shutdown.
– The dhcpd service and daemon are made available via the dhcp rpm package.

Service Control

Below is the list of options available with the dhcpd service command.

# /sbin/service dhcpd
Usage: /etc/init.d/dhcpd {start|stop|restart|condrestart|configtest|status}
Command Description
start Begin accepting requests from DHCP/BOOTP clients
stop Stop processing requests from DHCP/BOOTP clients
restart Equivalent to a stop / start command sequence.
condrestart Equivalent to a restart command if the service is already running, else ignored.  Typically used during the RPM package installation setup.
configtest Validate the configuration file syntax but do not start anything nor service any DHCP/BOOTP requests.
status Display list of running dhcpd process ID’s else display a warning message.

The configuration file must be edited for the local environment before the dhcpd service can be used. A sample file is available in the /usr/share/doc/dhcp-*/dhcpd.conf.sample file reproduced below:


Filed Under: Linux, Linux Services

Some more articles you might also be interested in …

  1. How to Change Timezone from CST To EST in CentOS/RHEL 7 Server
  2. How to Configure Interface bonding (NIC Teaming) on Oracle Linux 6
  3. How to Save Command history of Selected Users in Linux
  4. visudo: command not found
  5. more: command not found
  6. How to uninstall aria2 from Ubuntu
  7. Unix file basics : Inode, Soft Vs Hard link, Device files, Named pipes
  8. add-apt-repository: command not found
  9. pkill Command Examples in Linux
  10. dnf: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright