Fedora Linux: Restart / Stop / Start DHCPD Server Command

by on August 9, 2013 · 2 comments· LAST UPDATED August 9, 2013

in , ,

I am a new Fedora Linux version 18 system administrator. How do I restart dhcpd server using command line options in Fedora Linux server running on HP server hardware?

DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information such as follows from a DHCP server:
Tutorial details
DifficultyEasy (rss)
Root privilegesYes
RequirementsFedora/RHEL
Estimated completion time1m
  1. IP address
  2. Subnetmask
  3. Broadcast address
  4. DNS server IP address
  5. Default gateway IP address and more

The dhcp package includes the ISC DHCP service, server and relay agent.

Fedora start / stop / restart DHCPD (latest version)

Alert: You need Fedora Linux version 15 or above to use the following commands.

To restart dhcpd service, open a terminal or login using ssh and then type:
# systemctl restart dhcpd.service
To stop dhcpd service, type:
# systemctl stop dhcpd.service
To start dhcpd service, type:
# systemctl start dhcpd.service

Note: By default, the DHCPD service does not start at boot time. To configure the daemon to start automatically at boot time, type:

# systemctl enable dhcpd.service

Fedora start / stop / restart DHCPD (older version)

Alert: You need Fedora Linux version 14 or older to use the following commands. Also, commands are compatible with RHEL/CentOS Linux too.

To restart dhcpd service, open a terminal or login using ssh and then type:
# service dhcpd restart
To stop dhcpd service, type:
# service dhcpd stop
To start dhcpd service, type:
# service dhcpd start

Note: By default, the DHCPD service does not start at boot time. To configure the daemon to start automatically at boot time, type:

# chkconfig dhcpd on

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 2 comments… read them below or add one }

1 srinivas August 12, 2013 at 8:46 am

in older version we can verify a service as below

chkconfig servicename --list 

But how can i check in latest versions of fedora

Reply

2 nixCraft August 12, 2013 at 11:21 am

Try:

systemctl list-units
systemctl list-units | grep -i serviceName
systemctl list-unit-files --type=service(preferred)
ls /etc/systemd/system/*.wants/

See man systemctl man page for more info.

Reply

Leave a Comment

Tagged as: , , , , ,

Previous Faq:

Next Faq: