Enabling SNTP in Broadcast Mode
Because the switch provides an SNTP polling interval (default: 720 seconds), you need only these two commands for minimal SNTP broadcast configuration:
Syntax:
timesync sntp
Selects SNTP as the time synchronization method.
Syntax:
sntp broadcast
Configures broadcast as the SNTP mode.
Example:
Suppose that time synchronization is in the factory-default configuration (TimeP is the currently selected time synchronization method.) Complete the following:
- View the current time synchronization.
- Select SNTP as the time synchronization mode.
- Enable SNTP for Broadcast mode.
- View the SNTP configuration again to verify the configuration.
The commands and output would appear as follows:
switch(config)# show sntp 1
SNTP Configuration
Time Sync Mode: Timep
SNTP Mode : disabled
Poll Interval (sec) [720] :720
switch(config)# timesync sntp
switch(config)# sntp broadcast
switch(config)# show sntp 2
SNTP Configuration
Time Sync Mode: Sntp
SNTP Mode : Broadcast
Poll Interval (sec) [720] :720
1
show sntp
displays the SNTP configuration and also shows that TimeP is the currentlyactive time synchronization mode.
2
show sntp
again displays the SNTP configuration and shows that SNTP is now thecurrently active time synchronization mode and is configured for broadcast operation.