| Ntp 设置浅试 |
| |
| |
作者:C.Arthur 文章来源:Solaris 中文电子杂志 点击数: 更新时间:2007-4-13 14:01:22  |
|
|
| ntp client 设置方法
bash3.00# touch/etc/inet/ntp.driftbash3.00# dateTueNov2315:43:01CST2004bash3.00# cd/etc/inetbash3.00# cpntp.clientntp.conf 我们把时间设置为早一些时候,这样正确的用来测试ntp 的使用情况。
bash3.00# morentp.conf#ident"@(#)ntp.client1.300/07/17SMI" # #/etc/inet/ntp.client# #Anexamplefilethatcouldbecopiedoverto/etc/inet/ntp.conf.it#providesaconfigurationforahostthatpassivelywaitsforaserver#toprovideNTPpacketsonthentpmulticastnet. # server 192.168.0.45 driftfile /etc/inet/ntp.drift #multicastclient 224.0.1.1 bash2.05# /etc/init.d/xntpd start bash3.00# ntpq p remote refid st t when poll reach delay offset disp node1 .LCL. 1 u 52 64 370 0.53 0.364 16000.0 bash3.00#
ntp server 设置方法
bash3.00# touch /etc/inet/ntp.drift bash3.00# date Thu Nov 23 15:39:00 CST 2006 bash3.00# cd /etc/inet bash3.00# cp ntp.server ntp.conf bash2.05# more ntp.conf # ident "@(#)ntp.server 1.6 00/07/17 SMI" # /etc/inet/ntp.server server 127.127.1.0 prefer // 修改后的 fudge 127.127.1.0 stratum 0 // 修改后的 broadcast 224.0.1.1 ttl 4 enable auth monitor driftfile /var/ntp/ntp.drift statsdir /var/ntp/ntpstats/ filegen peerstats file peerstats type day enable filegen loopstats file loopstats type day enable filegen clockstats file clockstats type day enable keys /etc/inet/ntp.keys trustedkey 0 requestkey 0 controlkey 0 client# date Tue Nov 2 [1] [2] 下一页
|
|
| |
| 电子化建设录入:jerry 责任编辑:jerry |
|
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
|
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
|
|
|