119
Predefined user roles
network-admin
Parameters
server-name
: Specifies an NTP server by its host name, a case-insensitive string of 1 to 253
characters.
ipv6-address
: Specifies an NTP server by its IPv6 address. It must be a unicast address, rather than
a multicast address.
vpn-instance vpn-instance-name
: Specifies the VPN to which the NTP server belongs. The
vpn-instance-name
argument is a case-sensitive string of 1 to 31 characters. If the NTP server is on
the public network, do not specify this option.
authentication-keyid keyid
: Specifies the key ID to be used for sending NTP messages to the NTP
server.The value range for the
keyid
argument is 1 to 4294967295. If you do not specify this option,
the local device and NTP server do not authenticate each other.
priority
: Specifies this NTP server as the first choice under the same condition.
sourceinterface-type interface-number
: Specifies the source interface for IPv6 NTP messages. If
the specified IPv6 NTP server address is not a link local address, the source IPv6 address for IPv6
NTP messages sent by the local device to the NTP server is the IPv6 address of the specified source
interface. If the specified IPv6 NTP server address is a link local address, the IPv6 NTP messages
are sent from the specified source interface, and the source address of the messages is the link local
address of the interface.The
interface-type interface-number
argument represents the interface type
and number. If you do not specify an interface, the device automatically selects the source IPv6
address of IPv6 NTP messages. For more information, see
RFC 3484
.
Usage guidelines
When you specify an IPv6 NTP server for the device, the device is synchronized to the IPv6 NTP
server, but the IPv6 NTP server is not synchronized to the device.
To synchronize the PE to a PE or CE in a VPN, specify the
vpn-instance vpn-instance-name
option
in the command.
If you include the
vpn-instance vpn-instance-name
option in the
undo ntp-service unicast-server
command, the command removes the NTP server with the IP address of
ip-address
in the specified
VPN. If you do not include the
vpn-instance vpn-instance-name
option in the command, the
command removes the NTP server with the IP address of
ip-address
in the public network.
If the specified IPv6 address of the NTP server is a link local address, you must specify the source
interface for NTP messages and cannot specify a VPN for the NTP server.
Examples
# Specifythe IPv6 NTP server 2001::1 for the device.
<Sysname> system-view
[Sysname] ntp-service ipv6 unicast-server 2001::1