8. To configure some interface can't receive NTP packets
Interface Configuration Mode
ntp di sable
no ntp di sable
9. Di splay information
Admin Mode
show ntp status
show ntp se ssion [ <ip-addre ss> |
<ipv6-addre ss> ]
10. Debug
Admin Mode
debug ntp authentication
no debug ntp authentication
debug ntp packets [send | receive]
no debug ntp packets [send | receive]
debug ntp adjust
no debug ntp adjust
debug ntp sync
no debug ntp sync
debug ntp events
no debug ntp events
64.3 Typical Examples of NTP Function
A client switch wanted to synchronize time with time server in network, there is two time server in net work, the
one is us ed as host, the other is us ed as standby, the connection and configuration as follows (S witch A and
Switch B are the switch or rout e which support NTP server ):
Command
Command
Command
Explication
To disable the NTP function.
Explication
To display the state of time synchronize.
To display the information of NTP session.
Explication
To
enable
debug
authentication.
To enable debug switch of NTP packet
information.
To enable debug switch of time update
information.
To enable debug switch of time synchronize
information.
To enable debug switch of NTP event
information.
64-3
switch
of
NTP