The term "interface" in this chapter collectively refers to Layer 3 interfaces, including VLAN
•
interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by
using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide).
Configuration task list
Tasks at a glance
(Required.)
(Required.) Perform at least one of the following tasks:
•
Configuring NTP association modes
•
Configuring the local clock as a reference source
(Optional.)
(Optional.)
(Optional.)
Enabling the NTP service
Step
1.
Enter system view.
2.
Enable the NTP service.
Configuring NTP association modes
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:
Enabling the NTP service
Configuring access control rights
Configuring NTP authentication
Configuring NTP optional parameters
Command
system-view
ntp-service enable
14
Remarks
N/A
By default, the NTP service is not
enabled.