NTP Client Server On CentOS 6
NTP Client Server On CentOS 6
Customer
To change the time zone in Centos-based operating systems, it is necessary to validate that it is located
installed the package that will allow us to set the time zone we are in, with the command:
And then proceed to set the time zone with the command:
tzselect
Respond to the assistant by choosing your time zone, for example: America (2), then Ecuador (20), Mainland (1) and
Yes(1) We confirm the data.
Now then, to create an NTP server as a client of another NTP server so that the time is updated.
automatically periodically the procedure is as follows:
crontab -e
crontab -l
edit /etc/sysconfig/ntpd
yes
vi /etc/ntp.conf
# For more information about this file, see the man pages ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5),
ntp_misc(5), ntp_mon(5).
/var/lib/ntp/drift
Permit time synchronization with our time source, but do not permit the source to query or modify the service on this
system.
Permit all access over the loopback interface. This could be tightened as well, but to do so would affect some of the
administrative functions.
restrict 127.0.0.1
server www.srvuceuio.com
Undisciplined Local Clock. This is a fake driver intended for backup and when no outside source of synchronized.
time is available.
includefile /etc/ntp/crypto/pw
Key file containing the keys and key identifiers used when operating with symmetric key cryptography.
keys /etc/ntp/keys
I assign the IP of my host as the server.
enable ntpd
vi/etc/ntp.conf
For more information about this file, see the man pages ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5),
ntp_misc(5), ntp_mon(5).
/var/lib/ntp/drift
Permit time synchronization with our time source, but do not permit the source to query or modify the service on this.
system.
Permit all access over the loopback interface. This could be tightened as well, but to do so would effect some of the
administrative functions.
restrict 127.0.0.1
Use public servers from the pool.ntp.org project. We entered the DNS server we created.
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
Undisciplined Local Clock. This is a fake driver intended for backup and when no outside source of synchronized
time is available.
includefile /etc/ntp/crypto/pw
Key file containing the keys and key identifiers used when operating with symmetric key cryptography.
keys /etc/ntp/keys
date
Thu Jul 4 14:45:23 ECT 2013
and we updated our host, we look for our server
ntpdate -u www.srvuceuio.com
4 Jul 11:46:22 ntpdate[3703]: step time server 192.168.1.13 offset -10793.343840 sec
We verify the update
date
Thu Jul 4 11:47:03 ECT 2013
We are observing our time server table.
watch ntpq -p -n
Biography:
http://www.cyberciti.biz/faq/rhel-fedora-centos-configure-ntp-client-server/
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch24_:_The_NTP_Server
translatedText
http://199.34.120.32:8090/display/DOC/Setup+NTP+Server+on+CentOS
The provided text is a URL and does not contain translatable content.
The provided text is a URL and does not contain translatable content.