ntp-service unicast-server
Function
The ntp-service unicast-server command configures the NTP unicast server/client mode.
The undo ntp-service unicast-server command cancels the NTP unicast server/client mode.
By default, the NTP server mode is not configured.
Format
ntp-service unicast-server ip-address [ version number | authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | preference ] *
ntp-service unicast-server ipv6 ipv6-address [ authentication-keyid key-id | maxpoll max-number | minpoll min-number | source-interface interface-type interface-number | preference ] *
undo ntp-service unicast-server ip-address
undo ntp-service unicast-server ipv6 ipv6-address
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Indicates the IPv4 address of the remote server. | The parameter ip-address is a host address and cannot be the broadcast address, the multicast address or the IP address of a reference clock. |
ipv6 ipv6-address | Indicates the IPv6 address of the remote server. |
The value of ipv6-address is a global unicast address, and cannot be the IPv6 address of the reference clock. |
version number | Indicates the NTP version number. If this parameter is not specified, the default version number is used. | Version number is an integer and ranges from 1 to 4. By default, the version number is 3. |
authentication-keyid key-id | Indicates the authentication key number used when messages are transmitted to the remote server. If this parameter is not specified, authentication is not performed. | Key ID is an integer and ranges from 1 to 4294967295. |
maxpoll max-number | Specifies the NTP maximum poll interval. The NTP poll interval of the system floats between the minimum value and maximum value. | It is an integer ranging from 10 to 17, in seconds. The default value is 10 seconds in NTPv1, NTPv2, NTPv3, and NTPv4. |
minpoll min-number | Specifies NTP minimum poll interval. The NTP poll interval of the system floats between the minimum value and maximum value. |
It is an integer ranging from 3 to 6, in seconds. The default value is 6 seconds. |
source-interface interface-type interface-number | Indicates the source interface from which the unicast client sends NTP packets to the unicast server. The source IP address of the NTP packets is the IP address of this interface. | - |
preference | Indicates the remote server as the preferred one. By default, the remote server is not preferred. | - |
Usage Guidelines
Usage Scenario
When the clock of a device on the network needs to be synchronized in unicast server/client mode, the command can be run, and the remote server specified by ip-address or ipv6-address is used as the local clock server. The local device runs in client mode. In this mode, the local client can be synchronized to the remote server, but the remote server cannot be synchronized to the local client.