Ntp-Service Source-Interface - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

Description
Use the ntp-service reliable authentication-keyid command to specify an authentication key as a
trusted key.
Use the undo ntp-service reliable authentication-keyid command to remove the configuration.
By default, no trusted key is configured.
When NTP authentication is enabled, a client can be synchronized only to a server that can provide a
trusted authentication key.
Related commands: ntp-service authentication-keyid.
Example
# Enable NTP authentication. The encryption algorithm is MD5, the key ID is 37, and the trusted key is
abc.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ntp-service authentication enable
[Sysname] ntp-service authentication-keyid 37 authentication-mode md5 abc
# Specify this key as a trusted key.
[Sysname] ntp-service reliable authentication-keyid 37

ntp-service source-interface

Syntax
ntp-service source-interface Vlan-interface vlan-id
undo ntp-service source-interface
View
System view
Parameter
vlan-interface vlan-id: Specifies an interface. The IP address of the interface serves as the source IP
address of sent NTP messages. The vlan-id argument indicates the ID of the specified VLAN interface,
ranging from 1 to 4094.
Description
Use the ntp-service source-interface command to specify a VLAN interface through which NTP
messages are to be sent.
Use the undo ntp-service source-interface command to remove the configuration.
If you do not want the IP addresses of the other interfaces on the local switch to be the destination
addresses of response messages, you can use this command to specify a specific interface to send all
NTP packets. In this way, the IP address of the interface is the source IP address of all NTP messages
sent by the local device.
Example
# Specify the source IP addresses of all sent NTP messages as the IP address of Vlan-interface1.
1-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents