Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-25-2005, 08:24 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2005
Posts: 12
Rep:
|
Network Time protocol
Hello all !
I am now sudying about Network Time Protocol (NTP) . Any on ehelp me about how to get the time form time servers?
If anybody have example , send it to me....
|
|
|
|
10-25-2005, 09:11 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,695
|
you would use an ntp client like ntpdate
|
|
|
|
10-26-2005, 06:24 AM
|
#3
|
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
A quick google found the ntp homepage.. Lots of descriptions about how the protocol works etc
http://ntp.isc.org/bin/view/Main/WebHome
|
|
|
|
10-26-2005, 03:58 PM
|
#4
|
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
It depends largely on what you want. I run an ntp server for the pool. Originally installed for my webserver but I have spare bandwidth so decided to "volunteer" my server to pool.ntp.org. If you wish to maintain a reasonably accurate time then install the ntp server package. The ntp.conf is normally installed in /etc . Edit the ntp.conf file and add the following lines to the file;
driftfile /var/lib/ntp/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
The drift file allows your system to calculate the error of your system time chip and then apply a correction. The links to the pool servers will allow your system to compare its time to a fairly accurate server and thereby keep an accurate time. Using 3 different servers allows the system to connect to one with the best time and ignore those issuing a bad time (known as a false ticker).
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|