47
authentication-keyid keyid
: Specifies the key ID to be used for sending NTP messages to the NTP
server, where
keyid
is in the range of 1 to 4294967295. If this option is not specified, the local device
and NTP server do not authenticate each other.
source interface-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 NTP server,
but the NTP server is not synchronized to the device.
To synchronize the PE to a PE or CE in a VPN, provide the
vpn-instance vpn-instance-name
option
in your 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
# Specify the IPv6 NTP server 2001::1 for the device.
<Sysname> system-view
[Sysname] sntp ipv6 unicast-server 2001::1
Related commands
•
sntp authentication enable
•
sntp
authentication-keyid
•
sntp reliable authentication-keyid
sntp reliable authentication-keyid
Use
sntp reliable authentication-keyid
to specify the created authentication key as a trusted key.
Use
undo sntp reliable authentication-keyid
to remove the specified trusted key.
Syntax
sntp reliable authentication-keyid keyid
undo sntp reliable authentication-keyid keyid
Default
No trust key is specified.
Views
System view
Predefined user roles
network-admin