mac

Commands for NTP
563
Parameter: ip-address: IPv4 address of time server.
ipv6-address: IPv6 address of time server.
version: The version information configured for server.
version_no: The version number of server, range is from 1 to 4, default is 4.
key: To configure key for server.
key-id: The key id.
Default: Disabled.
Command Mode: Global Mode.
Usage Guide: None.
Example: To configure time server address as 1.1.1.1 on switch.
Switch(config)#ntp server 1.1.1.1
57.17 ntp trusted-key
Command: ntp trusted-key <key-id>
no ntp trusted-key <key-id>
Function: To configure the trusted key. The no command cancels the trusted key.
Parameter: key-id: The id of key, range is from 1 to 4294967295.
Default: Trusted key is not configured by default.
Command Mode: Global Mode.
Usage Guide: None.
Example: To configure the specified key 20 to trusted key.
Switch(config)# ntp trusted-key 20
57.18 show ntp status
Command: show ntp status
Function: To display time synchronization status, include synchronized or not, layers,
address of time source and so on.
Parameter: None.
Default: None.
Command Mode: Admin and Configuration Mode.
Usage Guide: None.
Example:
Switch# show ntp status
Clock status: synchronized
Clock stratum: 3