Configuring unicast and broadcast mode for authentication
To enable authentication, you must configure either unicast or broadcast mode. When authentication is enabled,
changing the mode from unicast to broadcast or vice versa is not allowed; you must disable authentication and
then change the mode.
To set the SNTP mode or change from one mode to the other, enter the appropriate command.
Syntax:
sntp unicast
sntp broadcast
Enables SNTP for either broadcast or unicast mode.
Default: SNTP mode is disabled by default. SNTP does not operate even if specified by the CLI
timesync
command.
Unicast
Directs the switch to poll a specific server periodically for SNTP time synchronization.The
default value between each polling request is 720 seconds, but can be configured.At least one
manually configured server IP address is required.
NOTE:
At least one
key-id
must be configured as
trusted
, and it must be associated with one of
the SNTP servers. To edit or remove the associated
key-id
information or SNTP server information,
SNTP authentication must be disabled.
Broadcast
Directs the switch to acquire its time synchronization from data broadcast by any SNTP server
to the network broadcast address. The switch uses the first server detected and ignores any
others. However, if the Poll Interval (configurable up to 720 seconds) expires three times
without the switch detecting a time update from the original server, the switch accepts a
broadcast time update from the next server it detects.
Viewing SNTP authentication configuration information (CLI)
The
show sntp
command displays SNTP configuration information, including any SNTP authentication keys that
have been configured on the switch.
SNTP configuration information
switch(config)# show sntp
SNTP Configuration
SNTP Authentication : Enabled
Time Sync Mode: Sntp
SNTP Mode : Unicast
Poll Interval (sec) [720] : 720
Priority SNTP Server Address Protocol Version KeyId
-------- ------------------------------------ ---------------- -----
1 10.10.10.2 3 55
2 fe80::200:24ff:fec8:4ca8 3 55
Chapter 2 Time Protocols
45