LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2015, 12:35 PM   #1
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
Setup NTP server with local clock in rhel 7


Hello Guys,

I'm in the process of setting up NTP server for installing DB2 (learning purpose) on rhel 7 for this I need a NTP server to be set up with the local server's clock and not the NTP servers clock in internet I have tried by adding the local server ip in /etc/ntp.conf but when I use ntpdate command in client it shows "no suitable server found".

My Environment: RHEL 7

Let me know how to solve this problem.

With regards,
Gopinath.
 
Old 01-03-2015, 01:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,960

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by gopinath View Post
Hello Guys,
I'm in the process of setting up NTP server for installing DB2 (learning purpose) on rhel 7 for this I need a NTP server to be set up with the local server's clock and not the NTP servers clock in internet I have tried by adding the local server ip in /etc/ntp.conf but when I use ntpdate command in client it shows "no suitable server found".

My Environment: RHEL 7
Please read the "Question Guidelines" link in my posting signature.

As you've been told in the past, you need to PAY FOR and REGISTER your Red Hat Enterprise system. Did you??? Also, looking at the Red Hat documentation is a good first step. Did you do any research on this at all??? RHEL7 has both chrony and ntp available...you need to configure those services:
https://access.redhat.com/documentat...ony_Suite.html
https://access.redhat.com/documentat...sing_ntpd.html

You don't just put an IP address into the ntp configuration file..you need to set other things as well, which is why you need to read the documentation on how to configure them.
 
Old 01-03-2015, 01:41 PM   #3
marmarama
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Rep: Reputation: Disabled
By default, ntpd will not use the local clock as a reference timesource - it sets the stratum to 16, which means 'unsynchronized'. This stratum number is communicated to any NTP clients that attempt to synchronize with ntpd.

To get around this, you can use the 'fudge' keyword in /etc/ntp.conf on the NTP server, to manually set the stratum of the local clock to a stratum of 0-15, e.g.:

Code:
server  127.0.0.1
fudge   127.0.0.1 stratum 10
 
Old 01-03-2015, 03:08 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Also note you can use "version 7" and not register / pay for it if you use CentOS 7.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Local NTP server configuration on RHEL 6 Virtual server assistance needed aalinare Linux - Newbie 5 07-05-2012 08:58 AM
Local NTP server configuration on RHEL 6 Virtual server assistance needed aalinare Linux - Software 1 07-03-2012 10:42 AM
NTP - syncs initially, eventually stops syncing, uses LOCAL clock cvillepete Linux - Newbie 9 02-21-2012 04:03 PM
ntp is only syncing with local clock. slackamp Linux - Server 2 11-07-2007 04:12 PM


All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration