How to Check Ntp Server in Linux

NTP stands for Network Time Protocol, a protocol to synchronize the system time (clock) on the computer against an accurate source, via an intranet or the internet. While the NTP Server is a server time synchronization against a source of accurate time, and transmits the information package to a client computer's time asking.

NTP Server is very useful when you guys manage a very tight network once in the Affairs of the time. For example, when all the employees in the Office you guys, you guys are the command to collect the duty in the form of an email must be sent to the email server of the Office before the deadline of 12 noon. The passing of it, the email will reject in automatically by the system.

Well, what happens when it turns out the time in the server computer
In contrast to the time in the computer-computer clerk you guys? Wrong-wrong when employees you guys thought the time still remaining 5 minutes more, it turns out the clock in the server computer is already showing at 12. For things like this lah NTP Server is required, so that time/hour between computers with each other within a network can be synchronous or equal.

Install the first package (server) ntp, ntpdate (client) and, with the command:
#apt-get install ntp ntpdate

After that the installation will run and the system will prompt you to confirm the installation against
Do you want to continue [Y/n] --> Enter

The configuration file for ntp-server i.e. files in "/etc/ntp.conf", edit the file with the command:
#nano /etc/ntp.conf

Then you search the line "server .... "by pressing "ctrl + w" and then typing the word you are looking for then you press " enter " to find such words as shown below, then you give the sign " # " on each server from server 0-3 and then add this line at the bottom of the 4th the Add Server " server"

and then after that you're looking for the line “restrict mask notrust” then uncheck # his fence and then convert into “restrict mask nomodify notrap” as shown below:

Then you save the file by pressing ctrl + x then Y takan press enter
After that restart your ntp service with the command:
#/etc/init.d/ntp restart

Then you check the ntp-server local is already working well or not. By way of entering commands:
#ntpq -p.

If in the "jitter" is worth 0.001 or 0000, meaning it is correct

Then you try it with the test in advance through the debian server with the command:
#ntpdate -u

Click here for Comments