AlcatelLucent交换机NTP配置手册HUITONGDATACO.,LTD-NetworkTechnicalDept.2HUITONGDATACO.,LTD-NetworkTechnicalDept.目录配置拓扑......................................................................................................................................................................3NTP服务器配置:(UBUNTU64BITSERVER版)..................................................................................................3交换机NTP配置及NTP状态:.............................................................................................................................5修改交换机系统时间:.............................................................................................................................................6PC上的时间同步........................................................................................................................................................7两台交换机详细配置..................................................................................................................................................76850-1:....................................................................................................................................................................76850-2:....................................................................................................................................................................93HUITONGDATACO.,LTD-NetworkTechnicalDept.配置拓扑NTP服务器配置:(Ubuntu64bitServer版)root@localhost:/etc#morentp.conf#/etc/ntp.conf,configurationforntpd;seentp.conf(5)forhelpdriftfile/var/lib/ntp/ntp.drift#Enablethisifyouwantstatisticstobelogged.statsdir/var/log/ntpstats/statisticsloopstatspeerstatsclockstatsfilegenloopstatsfileloopstatstypedayenablefilegenpeerstatsfilepeerstatstypedayenable4HUITONGDATACO.,LTD-NetworkTechnicalDept.filegenclockstatsfileclockstatstypedayenable#YoudoneedtotalktoanNTPserverortwo(orthree).#serverntp.ubuntu.comserver127.127.1.0fudge127.127.1.0stratum2#Accesscontrolconfiguration;see/usr/share/doc/ntp-doc/html/accopt.htmlfor#details.Thewebpage::1#Clientsfromthis(example!)subnethaveunlimitedaccess,butonlyif#cryptographicallyauthenticated.restrictdefaultnomodify#Ifyouwanttoprovidetimetoyourlocalsubnet,changethenextline.#(Again,theaddressisanexampleonly.)#broadcast192.168.123.255#Ifyouwanttolistentotimebroadcastsonyourlocalsubnet,de-commentthe#nextlines.Pleasedothisonlyifyoutrusteverybodyonthenetwork!disableauthbroadcastclientroot@localhost:/etc#chkconfigntpntponroot@localhost:/etc#dateSatJan801:23:56CST2011root@localhost:/etc#date-uFriJan717:23:59UTC20115HUITONGDATACO.,LTD-NetworkTechnicalDept.root@localhost:/etc#交换机NTP配置及NTP状态:6850-1-showconfigurationsnapshotntp!NTP:ntpserver10.1.53.4minpoll4preferntpbroadcast-clientenablentpbroadcast-delay4000ntpclientenable6850-1-showntpstatusCurrenttime:Fri,Jan7201117:25:57.463(UTC),LastNTPupdate:Fri,Jan7201117:25:33.130(UTC),Serverreference:10.1.53.4,Clientmode:enabled,Broadcastclientmode:enabled,Broadcastdelay(microseconds):4000,Serverqualification:synchronized,Stratum:16,MaximumAssociationsAllowed:32,Authentication:disabled,SourceIPConfiguration:default6850-1-showntpserverstatusIPaddress=10.1.53.4,Hostmode=client,Peermode=server,Prefer=yes,Version=4,Key=0,Stratum=3,Minpoll=4(16seconds),Maxpoll=10(1024seconds),Delay=0.016seconds,Offset=0.066seconds,Dispersion=0.017secondsRootdistance=0.000,Precision=-20,ReferenceIP=127.127.1.0,Status=configured:reachable:synchronizationpeer,Uptimecount=10986seconds,Reachability=ff,6HUITONGDATACO.,LTD-NetworkTechnicalDept.Unreachablecount=0,Statsresetcount=7367seconds,Packetssent=162,Packetsreceived=162,Duplicatepackets=5,Bogusorigin=0,Badauthentication=0,Baddispersion=0,LastEvent=peerchangedtoreachable,6850-1-showntpclientCurrenttime:Fri,Jan7201117:26:20.813(UTC),LastNTPupdate:Fri,Jan7201117:25:33.130(UTC),Serverreference:10.1.53.4,Clientmode:enabled,Broadcastclientmode:enabled,Broadcastdelay(microseconds):4000,Serverqualification:synchronized6850-1-showntpclientserver-listLegends:+activepeer,-passivepeer,=client,*currentsystempeer,^broadcastserver,'broadcastclientModeIPAddressVerKeyStDelayOffsetDisp----+-----------------+---+-------+----+----------+-----------------+----------*10.1.53.44030.0160.0660.017修改交换机系统时间:6850-1-systemtime13:22:306850-1-showntpstatusCurrenttime:Fri,Jan7201119:22:34.366(UTC),LastNTPupdate:Fri,Jan7201117:29:53.130(UTC),Serverreference:10.1.53.4,Clientmode:enabled,Broadcastclientmode:enabled,Broadcastdelay(microseconds):4000,Serverqualification:synchronized,Stratum:16,MaximumAssoc