Updated on 11 Nov 2005 on SuSE 10.0

xntp-4.2.0a-46 (NTP)

Introduction

NTP - Network Time Protocol

Configuration

  • Install xntp (btw I am sure you have already).
    # rpm -ihv xntp-4.2.0a-46.i586.rpm
    
  • Edit /etc/ntp.conf
    # Restrict NTP access in default
    restrict default ignore
    
    # Allow NTP access from localhost
    restrict 127.0.0.1
    
    # Allow access from LAN
    restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
    
    # Allow access to external NTP servers
    restrict 210.173.160.57 mask 255.255.255.255 nomodify notrap noquery
    restrict 210.173.160.27 mask 255.255.255.255 nomodify notrap noquery
    
    # External NTP servers
    server 210.173.160.57
    server 210.173.160.27
    
    # CMOS clock
    server 127.127.1.0
    fudge 127.127.1.0 stratum 10
    
    # Drift file
    driftfile /var/lib/ntp/drift/ntp.drift
    
    # Alternate logfile
    logfile /var/log/ntp
    
  • Start ntpd
    # chkconfig ntp on
    # /etc/init.d/ntp start
    Starting network time protocol daemon (NTPD)                          done
    
  • After sometime (more than 15 minutes), verify the ntp server
    # ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     ntp2.jst.mfeed. 210.173.160.56   2 u   12   64    7  814.990  -65.744  56.636
     ntp1.jst.mfeed. 210.173.160.56   2 u    7   64    7  842.208  -72.452  33.389
     LOCAL(0)        LOCAL(0)        10 l    8   64    7    0.000    0.000   0.004
    

    Back
    Google
    Web www.grape-info.com