Home   >>   NTP   >>   How To Configure NTP On Solaris
How To Configure NTP On Solaris PDF Print E-mail
( 2 Votes )
How To - NTP
Written by Christian Foronda   
Wednesday, 15 December 2010 16:31

Create the file ntp.conf:

	# vi /etc/inet/ntp.conf
	restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
server 222.222.222.222 # IP of the other NTP
server 221.212.212.212 # additional

driftfile /etc/ntp.drift

Create the file /etc/ntp.drift with 0.0 entry:

	# touch /etc/ntp.drift
# echo 0.0 > /etc/ntp.drift

Enable ntp:

	# svcadm enable ntp

Verify ntp:

	# svcs -xv ntp
	svc:/network/ntp:default (Network Time Protocol (NTP))
State: online since Wed Dec 15 16:11:17 2010
See: man -M /usr/share/man -s 1M xntpd
See: man -M /usr/share/man -s 1M ntpdate
See: man -M /usr/share/man -s 1M ntpq
See: /var/svc/log/network-ntp:default.log
Impact: None.
	# ntpq -pn
		 remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*222.222.222.222 202.92.144.50 4 u 468 1024 377 1.14 1.092 27.89
+221.212.212.212 115.139.9.150 2 u 10 64 377 0.85 2.257 7.75



blog comments powered by Disqus
Last Updated on Friday, 14 January 2011 13:37