120
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
If you specify a 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 is the primary IP address of the source interface.
When the device responds to an NTP request, the source IP address of the NTP response is always
the IP address of the interface that has received the NTP request.
If you do not want the IP address of an interface on the local device to become the destination
address for response messages, use the 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 VLAN-interface 1.
<Sysname> system-view
[Sysname] ntp-service source vlan-interface 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 } [ authentication-keyid keyid | priority |
source interface-type interface-number | version number ] *
undo ntp-service unicast-peer { peer-name | ip-address }
Default
No symmetric-passive peer is specified.
Views
System view
Predefined user roles
network-admin