Ntp-Service Source-Interface; Ntp-Service Unicast-Peer - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

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.
<Sysname>
system-view
System View: return to User View with Ctrl+Z.
[Sysname] ntp-service source-interface Vlan-interface 1

ntp-service unicast-peer

Syntax
ntp-service unicast-peer { remote-ip | peer-name } [ authentication-keyid key-id | priority |
source-interface Vlan-interface vlan-id | version number ]*
undo ntp-service unicast-peer { remote-ip | peer-name }
View
System view
Parameter
remote-ip: IP address of the NTP symmetric-passive peer. This argument can be a unicast address only,
and cannot be a broadcast address, a multicast address, or the IP address of the local reference clock.
peer-name: Symmetric-passive peer host name, a string comprising 1 to 20 characters.
authentication-keyid key-id: Specifies the key ID used for sending messages to the peer. The key-id
argument ranges from 1 to 4294967295. By default, authentication is not enabled.
priority: Specifies the peer identified by the remote-ip argument as the preferred peer for
synchronization.
1-11

Advertisement

Table of Contents
loading

Table of Contents