Quick Reference Guide
Time Commands | 245
sntp client mode
This command enables the Simple Network Time Protocol (SNTP) client, and optionally sets the mode
to either broadcast or unicast.
Syntax
sntp client mode [broadcast | unicast]
Use the no sntp client mode command to disable SNTP client mode.
Parameters
Default
Disabled (No SNTP requests are sent from the client, nor are any received SNTP messages processed.)
Mode
Global Config
sntp client port
This command sets the SNTP client port ID to a value from 1–65535.
Syntax
sntp client port portid [poll-interval]
Parameters
Use the no sntp client port command to reset the SNTP client port to its default values.
Default
123
Usage
You can also set the poll interval for a unicast client with the sntp unicast client poll-interval
command.
Mode
Global Config
sntp unicast client poll-interval
This command sets the poll interval for SNTP unicast clients in seconds as a power of two where
poll-interval can be a value from 6 to 16.
Syntax
sntp unicast client poll-interval poll-interval
Use the no sntp unicast client poll-interval command to reset the poll interval for SNTP unicast
clients to its default.
broadcast
SNTP operates in the same manner as multicast mode but uses a local broadcast address
instead of a multicast address. The broadcast address has a single subnet scope while a
multicast address has Internet-wide scope.
unicast
SNTP operates in a point-to-point fashion. A unicast client sends a request to a designated
server at its unicast address and expects a reply from which it can determine the time and,
optionally, the round-trip delay and local clock offset relative to the server.
portid
Specify the local UDP port to listen for responses/broadcasts. The allowed range is (1 to
65535). Default value is 123.
poll-interval
Optionally, set the poll interval for the client in seconds, as a power of two, in the range
from 6 to 10. Default value is 6. This setting is true for both unicast and broadcast poll
requests. Broadcasts received prior to the expiry of this interval are discarded.