This should work for RHEL/CentOS/Fedora.
On the local NTP Server:
1) install ntp
2) start service
3) add to chkconfig
4) edit /etc/ntp.conf and configure as local NTP server
5) restart service
6) check synchronization
7) only if needed: open port 123 on firewall
On the local NTP Client:
1) install ntp
2) start service
3) add to chkconfig
4) edit /etc/ntp.conf and configure as local NTP client
5) restart service
6) check synchronization
7) only if needed: open port 123 on firewall
# install ntp and related packages yum install ntp # start ntpd service service ntpd start # enable ntpd to start on boot chkconfig ntpd on # restart ntpd service service ntpd restart # check peers ntpq -p # check synchronization ntpstat
Local NTP server configuration:
### DEFAULT settings # Hosts on local network are less restricted. #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap ### CHANGE TO: Local NTP server settings # Hosts on local network are less restricted. restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
Local NTP client configuration:
### DEFAULT settings # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.centos.pool.ntp.org iburst server 1.centos.pool.ntp.org iburst server 2.centos.pool.ntp.org iburst server 3.centos.pool.ntp.org iburst ### CHANGE TO: Local NTP client settings # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server 192.168.1.2 iburst