SUSE one-SP4 Install NTP

Source: Internet
Author: User
Tags local time
Installing the NTP service
Zypper-n Install NTP

Configure NTP
Vim/etc/ntp.conf
When the external time server is unavailable, local time is used as the time service
Server 127.127.1.0
# Local Clock (LCL)

Fudge 127.127.1.0 Stratum 10

The most active time server on the Chinese side
Server 210.72.145.44 Perfer


Server 202.112.10.36


Server 59.124.196.83



The client needs to synchronize the IP, how many clients, add multiple

Restrict 192.168.31.67


To add a network range that allows receiving requests
Restrict 192.168.31.0 mask 255.255.255.0 notrust


Shutting down the firewall
Service Susefirewall2_init Stop

Service Susefirewall2_setup Stop

Chkconfig Susefirewall2_init off

Chkconfig Susefirewall2_setup off

Firewall settings
Iptables-i input-p udp-m UDP--sport 123-j ACCEPT


Start NTP
Service NTP start

Configuring power-on Start NTP
Chkconfig NTP on

=============================================================================================================== =======================================================

Client connections
Ntpdate 192.168.31.183
Ntpdate-d 192.168.31.183

Client Set Timing Sync time

[ROOT@DLP ~]# vi/root/ntpupdate.sh Edit timed script

/usr/sbin/ntpdate 192.168.31.183

[ROOT@DLP ~]# cat/root/ntpupdate.sh Review after editing

/usr/sbin/ntpdate 192.168.31.183

[ROOT@DLP ~]# crontab-e Editing timed tasks, executed every five minutes

*/5 * * * */root/ntpupdate.sh

[ROOT@DLP ~]# Crontab-l

*/5 * * * */root/ntpupdate.sh Edit view

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.