Configuring NTP in client/server mode

Follow these guidelines when you configure an NTP client:

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 } [ vpn-instance vpn-instance-name ] [ 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 } [ vpn-instance vpn-instance-name ] [ authentication-keyid keyid | priority | source interface-type interface-number ] *

By default, no NTP server is specified.