Professional Documents
Culture Documents
NTP is a protocol to keep server time synchronized with one or more time sources. The NTP daemon (ntpd) should be
considered for systems which are normally kept permanently on. Systems which are required to use broadcast or
multicast IP, or to perform authentication of packets with the Autokey protocol, should consider using ntpd.
ntpd
chronyd
In RHEL 7 ntpd is replaced by chronyd as the default network time protocol daemon.
Basic configuration for synchronize time and date is stored in the file /etc/chrony.conf.
ntpd is still included in yum repository for customers who need to run an NTP service.
Chrony is a different implementation of the network time protocol (NTP) than the network time protocol daemon
(ntpd) that is able to synchronize the system clock faster and with better accuracy than ntpd.
# Install NTPd
$ sudo yum -y install ntp
#Configuration file
$ vi /etc/ntp.conf
/
Start NTP server
$ ntpq -p /
[2] Chronyd Configuration
# Install Chrony
$ sudo yum -y install chrony
#Configuration file
$ vi /etc/chrony.conf
# start chronyd
$ sudo systemctl start chronyd
# add to strtup
/
$ suudo systemctl enable chronyd
$ firewall-cmd --reload
$ ssh-keygen -t rsa
$ mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
Client Machine
/
DNS & DHCP Server Configuration.
Dnsmasq is the lightweight DNS forwarder and DHCP server software
# Configure Dnsmasq.
$ sudo vim /etc/dnsmasq.conf
/
/
/
$ systemctl start dnsmasq
$ systemctl enable dnsmasq
/
Allow DNS to firewall services.