The ntp-service unicast-peer command configures an NTP peer for a local device.
The undo ntp-service unicast-peer command deletes the NTP peer mode.
The ntp-service unicast-server command configures an NTP server on a local device.
The undo ntp-service unicast-server command deletes the NTP server configuration.
By default, no NTP peer is set.
By default, no NTP server is set.
ntp-service unicast-peer { ipv4Addr [ version number | port port-number | authentication-keyid key-id | source-interface { interface-name | interface-type interface-number } | vpn-instance vpn-instance-name | preference | maxpoll max-number | minpoll min-number | preempt ] * | ipv6 ipv6Addr [ authentication-keyid key-id | port port-number | source-interface { interface-name | interface-type interface-number } | vpn-instance vpn-instance-name | preference | maxpoll max-number | minpoll min-number | preempt ] * }
ntp-service unicast-server { ipv4Addr [ version number | port port-number | authentication-keyid key-id | source-interface { interface-name | interface-type interface-number } | vpn-instance vpn-instance-name | preference | maxpoll max-number | minpoll min-number | burst | iburst | preempt ] * | ipv6 ipv6Addr [ authentication-keyid key-id | port port-number | source-interface { interface-name | interface-type interface-number } | vpn-instance vpn-instance-name | preference | maxpoll max-number | minpoll min-number | burst | iburst | preempt ] * }
undo ntp-service unicast-peer { ipv4Addr | ipv6 ipv6Addr } [ vpn-instance vpn-instance-name ]
undo ntp-service unicast-server { ipv4Addr | ipv6 ipv6Addr } [ vpn-instance vpn-instance-name ]
Parameter | Description | Value |
---|---|---|
ipv4Addr |
Specifies the IPv4 address of a remote server. |
The value is an IPv4 address in dotted decimal notation. |
version number |
Specifies an NTP version number. |
The value is an integer ranging from 1 to 4. The default value is 3. |
port port-number |
Specifies the destination port number to transmit NTP unicast packets. |
The number is an integer that can be 123, or ranges from 1025 to 65535. The default value is 123. |
authentication-keyid key-id |
Specifies the authentication key number used when transmitting messages to a remote peer. |
The value is an integer:
|
source-interface |
Specify interface whose address should be used as source. |
- |
interface-type |
Specify the interface type. |
- |
interface-number |
Specify the interface number. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
preference |
Specifies the remote server as a preferred one. By default, the remote server is not preferred. |
- |
maxpoll max-number |
Specifies an NTP maximum poll interval. The poll interval is implemented as power of 2. For example, if you enter the maxpoll as 11, then the maximum poll interval will be 2048 seconds. |
The value is an integer ranges from 10 to 17, in seconds. The default value is 10. |
minpoll min-number |
Specifies an NTP minimum poll interval. The poll interval is implemented as power of 2. For example, if you enter the minpoll as 5, then the minimum poll interval will be 32 seconds. |
The value is an integer ranges from 3 to 6, in seconds. The default value is 6. |
preempt |
Enables the preemption mode for the server. The specified server is marked unavailable for selection if any error (authentication failure) is detected on a connection between the local device and reference clock. The server is marked available for selection if no other connections are available and no error is detected on the connection between the local device and reference clock. |
- |
ipv6 ipv6Addr |
Specifies the IPv6 address of a remote server. The ipv6-address is a host address and cannot be a multicast address, loopback address, or IP address of a reference clock. |
The address is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
burst |
Specifies that a burst of packets will be sent at every poll interval. This is useful to accurately measure a jitter with long poll intervals. |
- |
iburst |
Specifies that a burst of packets will be sent when an unreachable server sends a reply. This is useful to rapidly synchronize the clock. |
- |
Usage Scenario
A remote node with a specified IP address or NEID can be configured as the peer of a local device. The local device runs in the symmetric active mode. The local and remote devices can be synchronized to each other.
In VS mode, this command is supported only by the admin VS.
Configuration Impact
If a key ID is configured using NTPv1, authentication may fail because of non-standard NTPv1 authentication.
Precautions
<HUAWEI> system-view [~HUAWEI] ntp-service unicast-peer 10.10.1.1 version 3
<HUAWEI> system-view [~HUAWEI] interface 10GE 0/1/0 [~HUAWEI-10GE0/1/0] ipv6 enable [*HUAWEI-10GE0/1/0] quit [*HUAWEI] ntp-service unicast-peer ipv6 2001:db8::1 source-interface 10GE 0/1/0