R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

136
<Sysname> system-view
[Sysname] ntp-service authentication enable
[Sysname] ntp-service authentication-keyid 37 authentication-mode md5 BetterKey
# Specify this key as a trusted key.
[Sysname] ntp-service reliable authentication-keyid 37
ntp-service source-interface
Syntax
ntp-service source-interface interface-type interface-number
undo ntp-service source-interface
View
System view
Default level
3: Manage level
Parameters
interface-type interface-number: Specifies an interface by its interface type and interface number.
Description
Use ntp-service source-interface to specify the source interface for NTP messages.
Use undo ntp-service source-interface to restore the default.
By default, no source interface is specified for NTP messages, and the system uses the IP address of the
interface determined by the matched route as the source IP address of NTP messages.
If you do not want the IP address of a certain interface on the local device to become the destination
address of response messages, use this command to specify the source interface for NTP messages so
that the source IP address in NTP messages is the primary IP address of this interface.
Examples
# Specify the source interface of NTP messages as GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] ntp-service source-interface GigabitEthernet 0/1
ntp-service unicast-peer
Syntax
ntp-service unicast-peer [ vpn-instance vpn-instance-name ] { ip-address | peer-name }
[ authentication-keyid keyid | priority | source-interface interface-type interface-number | version
number ] *
undo ntp-service unicast-peer [ vpn-instance vpn-instance-name ] { ip-address | peer-name }
View
System view
Default level
3: Manage level