Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 NTP Configuration Commands
Huawei Technologies Proprietary
1-14
Example
# Configure to obtain time information from the peer with the IP of 128.108.22.44. And
the local peer can also provide time information to the remote peer. Set the NTP version
number to 3. The source IP addresses of NTP packets sent are that of VLAN interface
1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service unicast-peer 128.108.22.44 version 3 source-interface
Vlan-interface 1
1.1.16 ntp-service unicast-server
Syntax
ntp-service unicast-server
{
remote-ip
|
server-name
} [
authentication-keyid
key-id
|
priority
|
source-interface Vlan-interface
vlan-id
|
version
number
]*
undo
ntp-service
unicast-server
{
remote-ip |
server-name
}
View
System view
Parameter
remote-ip
: IP address of an NTP server. This argument cannot be a broadcast address,
multicast group address or the IP address of a reference clock.
server-name
: NTP server name, a string comprising 1 to 20 characters.
authentication-keyid key-id
: Specifies the key ID used when sending messages to the
NTP server. The
key-id
argument ranges from 1 to 4294967295. By default, the
authentication is enabled.
priority
: Specifies the server identified by the
remote-ip
or the server-name argument
is the preferred server.
source-interface Vlan-interface vlan-id
: Specifies an interface whose IP address is to
be used as the source IP addresses of the NTP packets sent by the local device to the
server.
vlan-id
is the interface number.
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 cancel the configuration.
By default, an Ethernet switch does not operate in the NTP client mode.