Linux NTP time synchronization Configuration

Source: Internet
Author: User
Configuration on node 1:
More/etc/NTP. conf
Restrict default ignore
Restrict 192.168.0.0 mask 255.255.255.0 notrap nomodify
Server 162.105.129.27 # time server on the Internet
Server 127.127.1.0 # local clock
Fudge 127.127.1.0 stratum 10
Driftfile/var/lib/NTP/drift
Broadcastdelay 0.008
Keys/etc/NTP/keys

Configuration on node 2:
More/etc/NTP. conf

Restrict default ignore
Restrict 127.0.0.1
Restrict 192.168.0.0 mask 255.255.255.0 nomodify
Server 192.168.0.125 # use node 1 as the upper-level Time Server
Restrict 192.168.0.125
Driftfile/var/lib/NTP/drift
Broadcastdelay 0.008
Keys/etc/NTP/keys

Run the following commands on two nodes:
Service ntpd start
Chkconfig -- level 35 ntpd on

Refer:
Http://publish.it168.com/2007/0417/20070417003602.shtml
Http://bbs.chinaunix.net/viewthread.php? Tid = 931263

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.