Server Configuration
- Install the ntp package:
[root@host ~]# yum install ntp
- Ensure the following entries are in /etc/ntp.conf:
- The below example functions as a NTP server to the 192.168. network.
[root@ntp.server.com ~]# cat /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
server stratum2.ntp.com
server stratum2.ntp2.com
restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
Note: The public stratum 2 servers for your network's NTP server can be found on ntp.org.
- Start the ntpd service:
[root@ntp.server.com ~]# service ntpd start
Client Configuration
- Ensure the following entries are in /etc/ntp.conf:
[root@ntp.client.com ~]# cat /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
server ntp.server.com
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
- Start the NTP service:
[root@ntp.client.com ~]# service ntpd start
Comments
Post a Comment