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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. CentOS / RHEL 7 : How to install and configure telnet
  2. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on non-LVM device (hard disk partition)
  3. tvservice: command not found
  4. shutdown: command not found
  5. gitlab-runner Command Examples
  6. git cola: A powerful Git GUI with a slick and intuitive user interface
  7. Audit Log And Messages File Not Rotating on CentOS/RHEL
  8. How to Disable Ctrl+c or Ctrl+z Using the “trap” Command in Linux
  9. blastn Command Examples in Linux
  10. Yum Command – RPM Based Package Management Utility

You May Also Like

Primary Sidebar

Recent Posts

  • gixy Command Examples
  • gitsome Command Examples
  • gitmoji Command Examples
  • gitlint Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright