Chapter4ServiceConguration
CommandFunction
zte(cfg)#setntp{add|delete}trusted-key<1-255>AddsordeletesNTPtrusted-key.
zte(cfg)#setntpauthenticate{enable|disable}
EnablesordisablesNTPauthentication
function.
zte(cfg)#setntpserver<A.B.C.D>[version<1,2,3>|key<1-255>]SetsNTPserver.
zte(cfg)#setntpsource<A.B.C.D>
SetsthesourceIPaddressthatisused
forswitchtosendNTPpacket.
zte(cfg)#setntpclock-period<5-2147483647>SetstheperiodofNTPsynchronization.
zte(cfg)#setntptimezone<(-12)-(+13)>SetsNTPtime-zone.
zte(cfg)#setntp{enable|disable}EnablesordisablesNTP .
zte(cfg)#setntpsrc-udp-port{123|1000}
SetstheIDoftheudpportthrough
whichNTPmessagesaresent.
showntp(allcongurationmodes)DisplaysNTPconguration.
NTPCongurationInstance
lCongurationDescription
SupposethatswitchandNTPserver(IPaddressis202.10.10.10)implement
timesynchronization.MakesurethatswitchandNTPservercanpingeachother
successfully.TheNTPmoduleisconguredasfollows:
lCongurationProcedure
zte(cfg)#setntpserver202.10.10.10
zte(cfg)#setntpenable
lCongurationVerication
zte(cfg)#showntp
ntpprotocolisenable
ntpserveraddress:202.10.10.10
ntpsourceaddress:None
ntpsourceudpport:1000
ntpis_synchronized:No
ntprcvstratum:16
noreferenceclock.
ntptimezone:0
Intheviewedinformation,ntpis-synchronizedmeansifthecurrentswitchis
synchronizedwithserver.
4-79
SJ-20120409144109-002|2012-07-02(R1.0)ZTEProprietaryandCondential