116
ntp-service ipv6 source
Use
ntp-service ipv6 source
to specify the source interface for IPv6 NTP messages.
Use
undo ntp-service ipv6 source
to restore the default.
Syntax
ntp-service ipv6 sourceinterface-type interface-number
undo ntp-service ipv6 source
Default
No source interface is specified for IPv6 NTP messages. The device automatically selects the
source IP address for IPv6 NTP messages. For more information, see
RFC 3484
.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number
: Specifies an interface by its type and number.
Usage guidelines
If you specify the source interface for IPv6 NTP messages, the device uses the IPv6 address of the
source interface as the source address to send IPv6 NTP messages.
When the device responds to an IPv6 NTP request, the source IPv6 address of the NTP response is
always the IPv6 address of the interface that has received the IPv6 NTP request.
If you do not want the IPv6 address of an interface on the local device to become the destination
address for response messages, use the command.
If you have specified the source interface for IPv6 NTP messages in the
ntp-service ipv6
unicast-server
or
ntp-service ipv5 unicast-peer
command, the specified interface acts as the
source interface forIPv6 NTP messages.
If you have configured the
ntp-service ipv6 broadcast-server
or
ntp-serviceipv6multicast-server
command on an interface, the interface acts as the source
interface for broadcast and multicast NTP messages.
If the specified source interface is down, the device does not send IPv6 NTP messages.
Examples
# Specify the source interface of IPv6 NTP messages as GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] ntp-service ipv6 source gigabitethernet 1/0/1