Command Manual (For Soliton) – NTP
H3C S3100 Series Ethernet Switches
Chapter 1 NTP Configuration Commands
1-14
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
1.1.15 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.