For example, NTP-Server1: 10.100.100.21 & NTP-Server2: 10.100.100.22
- You may use "vi editor" to update the file and the syntax would be "vi /etc/ntp.conf"
# server 0.fedora.pool.ntp.org iburst
# server 1.fedora.pool.ntp.org iburst
# server 2.fedora.pool.ntp.org iburst
# server 3.fedora.pool.ntp.org iburst
server 10.100.100.21
server 10.100.100.22
- Start NTP service with command "service ntpd start"
[root@Linux~]# service ntpd start
[root@Linux~]#
- Execute command "ntpq -p" to check NTP.
[root@Linux~]# ntpq -p
remote refid st t when poll reach delay offset jitter
===============================================
10.100.100.21 .GPS. 1 u 46 64 1 9.794 105.780 0.001
10.100.100.22 .GPS. 1 u 45 64 1 8.491 107.515 0.001
[root@Linux~]#
- Execute command "chkconfig ntpd on" for NTP configuration to survive reboot.
[root@Linux~]# chkconfig ntpd on
[root@Linux~]#
Linux/Unix - NTP Configuration
Reviewed by Admin
on
09:59:00
Rating: