SOURCECODEBD.NET

Live Experience

Configure NTP server

Configure NTP server for time adjustment.
  
[root@dlp ~]# yum -y install ntp 
 
[root@dlp ~]# vi /etc/ntp.conf 
 
# line 19: add the network range you allow to receive requests
restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
 
# change servers for synchronization
#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 ntp1.example.com
server ntp2.example.com
server ntp3.example.com 
 
[root@dlp ~]# /etc/rc.d/init.d/ntpd start 
[root@dlp ~]# chkconfig ntpd on 
[root@dlp ~]# ntpq -p
You are here: Home / Fedora / NTP server for Fedora