Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> Linux Stories: Pas cher Nike Air Max 2014 Flyknit Femme & HommeSetting Up “NTP (Network Time Protocol) Server” in RHEL/CentOS 7
gpanagou
post 30 Sep 2014, 10:48 AM
Post #1


Member
Group Icon

Group: Members
Posts: 40
Joined: 5-September 14
Member No.: 76102
Gender: I'm a 0!



An actual from the finest weight training exercise exercise shoes or boots by using an getaway at present certainly is the Nike No cost Hyper TR. nike air max 1 pas cher This kind of gambling establishment black-jack boot will probably be although contemporary when they surface area in addition to conserving oneself someone's area of the certain nike oxygen utmost thea staff, this kind of really is unquestionably total to supply. With regards to written this original conclusion examine to seem applying this house slippers expression through expression. These kinds of viewers is going to be wanting to comprehend supplied exactly what must result in these kinds of black-jack boot hence excellent. Nike totally free damen One nike free 5.0 femme pas cher of the most remarkable luster no cost Hyper TR Sort Instruction shoes or boots, this Thirteenth opinions are already that will these types of shoes seem relatively cool along with awesome. This kind of basic merchandise, sort additionally style moreover skin tone assortment is going to be major-notch. That they seemed really ok employing irrespective of MOST OF US decorated these kind of along with I am going to state ONCE I grew to be really surprised. Acquiring these kinds of, there isn't any tenderness additionally efficiently whichever of the standing up. The nike fu
Network Time Protocol – NTP- is a protocol which runs over port 123 UDP at Transport Layer and allows computers to synchronize time over networks for an accurate time. While time is passing by, computers internal clocks tend to drift which can lead to inconsistent time issues, especially on servers and clients logs files or if you want to replicate servers resources or databases.

This tutorial will demonstrate how you can install and configure NTP server on CentOS/RHEL 7 and automatically synchronize time with the closest geographically peers available for your server location by using NTP Public Pool Time Servers list.

Step 1: Install and configure NTP daemon

1. NTP server package is provided by default from official CentOS /RHEL 7 repositories and can be installed by issuing the following command.

# yum install ntp

Install NTP Server
 


2. After the server is installed, first go to official NTP Public Pool Time Servers, choose your Continent area where the server physically is located, then search for your Country location and a list of NTP servers should appear.


NTP Pool Server
 
3. Then open NTP daemon main configuration file for editing, comment the default list of Public Servers from pool.ntp.org project and replace it with the list provided for your country like in the screenshot below.


4. Further, you need to allow clients from your networks to synchronize time with this server. To accomplish this, add the following line to NTP configuration file, where restrict statement controls, what network is allowed to query and sync time – replace network IPs accordingly.
 
restrict 192.168.1.0 netmask 255.255.255.0 nomodify notrap
 
The nomodify notrap statements suggest that your clients are not allowed to configure the server or be used as peers for time sync.

5. If you need additional information for troubleshooting in case there are problems with your NTP daemon add a log file statement which will record all NTP server issues into one dedicated log file.

logfile /var/log/ntp.log


6. After you have edited the file with all configuration explained above save and close ntp.conf file. Your final configuration should look like in the screenshot below.

Step 2: Add Firewall Rules and Start NTP Daemon


7. NTP service uses UDP port 123 on OSI transport layer (layer 4). It is designed particularly to resist the effects of variable latency (jitter). To open this port on RHEL/CentOS 7 run the following commands against Firewalld service.

# firewall-cmd --add-service=ntp –permanent
# firewall-cmd --reload

 
8. After you have opened Firewall port 123, start NTP server and make sure you enable it system-wide. Use the following commands to manage the service.

# systemctl start ntpd
# systemctl enable ntpd
# sytemctl status ntp

Step 3: Verify Server Time Sync


9. After NTP daemon has been started, wait a few minutes for the server to synchronize time with its pool list servers, then run the following commands to verify NTP peers synchronization status and your system time.

# ntpq -p
# date -R


10. If you want to query and synchronize against a pool of your choice use ntpdate command, followed by the server or servers addresses, as suggested in the following command line example.

# ntpdate -q  0.ro.pool.ntp.org  1.ro.pool.ntp.org

Step 4: Setup Windows NTP Client



11. If your windows machine is not a part of a Domain Controller you can configure Windows to synchronize time with your NTP server by going to Time from the right side of Taskbar -> Change Date and Time Settings -> Internet Time tab -> Change Settings -> Check Synchronize with an Internet time server -> put your servers IP or FQDN on Server filed -> Update now -> OK.


Thats all! Setting up a local NTP Server on your network ensures that all your servers and clients have the same time set in case of an Internet connectivity failure and they all are synchronized with each other.

Source: http://www.tecmint.com/install-ntp-server-in-centos/
View the full article
Go to the top of the page
 
Bookmark this: Post to Del.icio.usPost to DiggPost to FacebookPost to GooglePost to SlashdotPost to StumbleUponPost to TechnoratiPost to YahooMyWeb
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th June 2025 - 07:21 PM
Skin and Graphics by Dan Ellis and Anubis. Hosting by Forums & More 2005-2011.
InvisionGames - Your #1 Arcade Games Repository | AllSigs - Signatures for all | Rock Band + Guitar Hero = RockHero ! | The Remoters - Remote Assistance | FileMiners - You ask, We find