注:192.168.0.1为NTP Server地址
use local server as NTP server:
NTP server:
a. vi /etc/rc.config.d/netdaemons
export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS="-l /var/adm/syslog/ntp.log"
b. vi /etc/ntp.conf
add two lines in the end:
server 127.127.1.1
fudge 127.127.1.1 stratum 10
c. /sbin/init.d/xntpd stop
d. /sbin/init.d/xntpd start
Client:
a. vi /etc/rc.config.d/netdaemons
export NTPDATE_SERVER=--->export NTPDATE_SERVER="192.168.0.1"
export XNTPD=1
export XNTPD_ARGS="-l /var/adm/syslog/ntp.log"
b. vi /etc/ntp.conf
add one line in the end:
server 192.168.0.1 prefer
c. /sbin/init.d/xntpd stop
d. /sbin/init.d/xntpd start