111
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
If you specify the source interface for NTP messages, the device uses the primary IP address of the
specified interface as the source IP address to send NTP messages. Consequently, the destination
address of the NTP response messages becomes the primary IP address of the source interface.
If you do not want the IP address of an interface on the local device to become the destination
address for response messages, use this command to specify another interface as the source
interface for NTP messages.
The source interface for NTP messages can also be specified in the following ways:
In NTP client/server mode, if you have specified the source interface for NTP messages in the
ntp-service unicast-server command, the specified interface acts as the source interface for
NTP messages.
In NTP symmetric active/passive mode, if you have specified the source interface for NTP
messages in the ntp-service unicast-peer command, the specified interface acts as the
source interface for NTP messages.
In NTP multicast mode, if you have configured the ntp-service multicast-server command on
an interface, the interface acts as the source interface for NTP multicast messages.
In NTP broadcast mode, if you have configured the ntp-service broadcast-server command
on an interface, the interface acts as the source interface for NTP broadcast messages.
If the specified source interface is down, the device does not send NTP messages.
Examples
# Specify the source interface for NTP messages as GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] ntp-service source gigabitethernet 1/0/1
ntp-service unicast-peer
Use ntp-service unicast-peer to specify a symmetric-passive peer for the device.
Use undo ntp-service unicast-peer to remove the symmetric-passive peer specified for the device.
Syntax
ntp-service unicast-peer { peer-name | ip-address } [ vpn-instance vpn-instance-name ]
[ authentication-keyid keyid | priority | source interface-type interface-number | version number ]
*
undo ntp-service unicast-peer { peer-name | ip-address } [ vpn-instance vpn-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.