Command Manual (For Soliton) – NTP
H3C S3100 Series Ethernet Switches
Chapter 1 NTP Configuration Commands
1-16
undo
ntp-service
unicast-server
{
remote-ip
|
server-name
}
View
System view
Parameter
remote-ip
: IP address of an NTP server. This argument can be a unicast address only,
and cannot be a broadcast address, multicast group address, or IP address of the local
clock.
server-name
: NTP server name, a string comprising 1 to 20 characters.
authentication-keyid key-id
: Specifies the key ID used for sending messages to the
NTP server. The
key-id
argument ranges from 1 to 4294967295. You do not need to
configure
authentication-keyid key-id
if authentication is not required.
priority
: Specifies the server identified by the
remote-ip
or the
server-name
argument
as the preferred server.
source-interface Vlan-interface vlan-id
: Specifies an interface whose IP address
serves as the source IP address of NTP packets sent by the local switch to the server.
version number
: Specifies the NTP version number. The
number
argument ranges
from 1 to 3 and defaults to 3.
Description
Use the
ntp-service unicast-server
command to configure an Ethernet switch to
operate in the NTP client mode.
Use the
undo ntp-service unicast-server
command to remove the configuration.
By default, no Ethernet switch operates in the NTP client mode.
Note:
The remote server specified by
remote-ip
or
server-name
serves as the NTP server,
and the local switch serves as the NTP client. The clock of the NTP client will be
synchronized by but will not synchronize that of the NTP server.
Example
# Configure the local switch to be synchronized to the NTP server with the IP address
128.108.22.44, and set the version number to 3.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ntp-service unicast-server 128.108.22.44 version 3