
12
Tasks at a glance
(Optional.)
Configuring access control rights
(Optional.)
Configuring NTP authentication
(Optional.)
Configuring NTP optional parameters
Enabling the NTP service
Step Command
Remarks
3.
Enter system view.
system-view
N/A
4.
Enable the NTP service.
ntp-service enable
By default, the NTP service is not
enabled.
Configuring NTP association mode
This section describes how to configure NTP association modes.
Configuring NTP in client/server mode
When the device operates in client/server mode, specify the IP address for the server on the client.
Follow these guidelines when you configure an NTP client:
•
A server must be synchronized by other devices or use its local clock as a reference source
before synchronizing an NTP client. Otherwise, the client will not be synchronized to the NTP
server.
•
If the stratum level of a server is higher than or equal to a client, the client will not synchronize to
that server.
•
You can configure multiple servers by repeating the
ntp-service unicast-server
and
ntp-service ipv6 unicast-server
commands.
To configure an NTP client:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify an NTP server for
the device.
•
Specify an NTP server for
the device:
ntp-service
unicast-server
{
server-name
|
ip-address
}
[
authentication-keyid
keyid
|
priority
|
source
interface-type
interface-number
|
version
number
] *
•
Specify an IPv6 NTP server
for the device:
ntp-service ipv6
unicast-server
{
server-name
|
ipv6-address
}
[
authentication-keyid
keyid
|
priority
|
source
By default, no NTP server is
specified for the device.