LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-16-2002, 08:37 PM   #1
goldenradium
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Rep: Reputation: 0
Unhappy NTP on Red Hat 8.0


I have tried to configure NTP on Red Hat, WITHOUT, mind you GUI intervention. Unfortunately, I'm lost.

I edited the /etc/ntp.conf file to have only the following:

server now.okstate.edu
fudge now.okstate.edu stratum 1

I changed my time to be 11:00AM (it's not 11:00AM). Then I started ntp:

/etc/init.d/ntpd start

The time changes to the correct time. HOWEVER, I removed the lines from /etc/ntp.conf. Then I stopped NTP:

/etc/init.d/ntpd stop

Then I changed my time to be 11:00AM again. THen restarted ntp:

/etc/init.d/ntpd start

Lo and behold, the time was changed to the correct time! Where is ntp getting its time if I don't specify NTP servers? HELP!
 
Old 12-16-2002, 10:29 PM   #2
michael_hilliard
LQ Newbie
 
Registered: Apr 2001
Posts: 4

Rep: Reputation: 0
Cool NTP on Red Hat 8.0

That would be because you have a server entry in your /etc/ntp/step-tickers file that is used by the following lines of the ntpd startup script.
# Adjust time to make life easy for ntpd
if [ -f /etc/ntp/step-tickers ]; then
echo -n "Syncing time for ntpd. "
/usr/sbin/ntpdate -s -b -p 8 -u `cat /etc/ntp/step-tickers`
fi
 
Old 12-16-2002, 11:13 PM   #3
goldenradium
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks! Another question, what is the /etc/ntp.drift file for? All I see is 0.0 in that file.

Thanks again!
 
Old 12-17-2002, 02:48 PM   #4
michael_hilliard
LQ Newbie
 
Registered: Apr 2001
Posts: 4

Rep: Reputation: 0
Here's a good answer for you. http://docsrv.caldera.com/NET_tcpip/ntpC.driftfile.html
If you do a long listing on it, you'll see that it is updated frequently.
 
  


Reply



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
Red Hat custom Kernel compilation mini-How-To for Red Hat 8-9 Thetargos Red Hat 431 04-13-2007 05:19 AM
Red Hat 9 to Red Hat EL Mozilla Migration Question rharvey@cox Linux - Software 2 01-13-2004 06:43 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM
Red Hat Enterprise vs. Red Hat Linux Project RedHatMN Linux - Distributions 2 07-29-2003 04:16 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:59 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
Open Source Consulting | Domain Registration