Thursday, January 28, 2016

NTP Configuration

                        NTP

Network Time Protocol (NTP) is a networking protocol for clock synchronization
between computer systems over packet-switched, variable-latency data networks.

NTP is one of the oldest Internet protocols . NTP was originally designed by David L. Mills of the University of Delaware,

The protocol uses  client-server model.  NTP Uses  UDP port Number 123 for sending  and receiving timestamps(packets) 

NTP uses a hierarchical, semi-layered system of time sources. Each level of this hierarchy is termed a "stratum" .


 Note: Suppose your NTP Master Server is in Stratum 3. Then the Client's will be of Stratum 4.


* stratum 16 is used to indicate that a device is unsynchronized.


How to configure NTP Server .

On client
  1. Verify that you have a server suitable for synchronization. Enter:
    # ntpdate -d ip.address.of.server
    
    The offset must be less than 1000 seconds for xntpd to synch. If the offset is greater than 1000 seconds, change the time manually on the client and run the ntpdate -d again.
    If you get the message, "no server suitable for synchronization found", verify xntpd is running on the server (see above) and that no firewalls are blocking port 123.

    2. Specify your xntp server in /etc/ntp.conf, enter:
    # vi /etc/ntp.conf
          (Comment out the "broadcastclient" line and add server ip.address.of.server prefer.)
           Leave the driftfile and tracefile at their defaults.
  1. Start the xntpd daemon:
    # startsrc -s xntpd
    

  2. Uncomment xntpd from /etc/rc.tcpip so it will start on a reboot.
    # vi /etc/rc.tcpip
    
    Uncomment the following line:
    start /usr/sbin/xntpd "$src_running"
    
    If using the -x flag, add "-x" to the end of the line. You must include the quotes around the -x.

  3. Verify that the client is synched.
    # lssrc -ls xntpd
    
    NOTE: Sys peer should display the IP address or name of your xntp server. This process may take up to 12 minutes.



*****************Under Construction*********************************