Ntp-Service Source - H3C S5830V2 Series Command Reference Manual

Network management and monitoring
Hide thumbs Also See for S5830V2 Series:
Table of Contents

Advertisement

Usage guidelines
When NTP authentication is enabled, a client can be synchronized only to a server that can provide a
trusted authentication key.
Before you use the command, make sure that NTP authentication is enabled and an authentication key
is configured. The key automatically changes to untrusted after you delete the key. In this case, you do not
need to execute the undo ntp-service reliable authentication-keyid command.
Examples
# Enable NTP authentication, specify the MD5 algorithm, with the key ID of 37 and key value of
BetterKey, in simple text.
<Sysname> system-view
[Sysname] ntp-service authentication enable
[Sysname] ntp-service authentication-keyid 37 authentication-mode md5 simple BetterKey
# Specify this key as a trusted key.
[Sysname] ntp-service reliable authentication-keyid 37
Related commands
ntp-service authentication-keyid
ntp-service authentication enable

ntp-service source

Use the ntp-service source command to specify the source interface for NTP messages.
Use the undo ntp-service source command to restore the default.
Syntax
ntp-service source interface-type interface-number
undo ntp-service source
Default
No source interface is specified for NTP messages. The device searches the routing table for the
outbound interface of NTP messages, and uses the primary IP address of the outbound interface as the
source IP address for NTP messages.
Views
System view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its interface type and interface number.
Usage guidelines
If you specify the source interface for NTP messages, the device sets the source IP address of the NTP
messages as the primary IP address of the specified interface when sending the NTP messages.
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.
59

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents