126
ntp-service unicast-peer
Use ntp-serviceunicast-peerto specify a symmetric-passive peer for the device.
Use undo ntp-serviceunicast-peerto remove the symmetric-passive peer specified for the device.
Syntax
ntp-serviceunicast-peer { peer-name |ip-address} [vpn-instance vpn-instance-name ]
[authentication-keyidkeyid|priority| sourceinterface-type interface-number|versionnumber] *
undontp-serviceunicast-peer { peer-name |ip-address} [vpn-instancevpn-instance-name ]
Default
No symmetric-passive peer is specified.
Views
System view
Predefined user roles
network-admin
Parameters
peer-name: Specifies a symmetric-passive peer by its host name, a case-insensitive string of 1 to
253 characters.
ip-address: Specifies a symmetric-passive peer by its IP address. It must be a unicast address,
rather than a broadcast address, a multicast address, or the IP address of the local clock.
vpn-instancevpn-instance-name: Specifies the VPN to which the symmetric-passive peer belongs.
The vpn-instance-nameargument is a case-sensitive string of 1 to 31 characters. If the
symmetric-passive peer is on the public network, do not specify this option.
authentication-keyidkeyid: Specifies the key ID to be used for sending NTP messages to the peer.
The value range for thekeyidargument is1 to 4294967295. If you do not specify this option, the local
device and the peer do not authenticate each other.
priority: Specifies the peer specified by ip-address or peer-name as the first choice under the same
condition.
sourceinterface-type interface-number: Specifies the source interface for NTP messages. In an NTP
message the local device sends to its peer, the source IP address is the primary IP address of this
interface. The interface-type interface-numberargument represents the interface type and number.If
you do not specify this option, the device searches the routing table for the outgoing interface and
uses the primary IP address of the outgoing interface as the source IP address of the NTP
messages.
versionnumber: Specifies the NTP version. The value range for thenumberargument is 1 to 4. The
default value is4.