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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
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: 43,417
|
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).
|
|
|
All times are GMT -5. The time now is 01:48 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
|
|