Configuring an NTP server pool (ntp)

ntp

The command sets a pool of NTP servers.

Using the ntp command:

# List NTP servers
ntp list

# Show the system configuration of NTP servers
ntp list system

# Add NTP servers
ntp add 0.pool.ntp.org 1.pool.ntp.org
ntp add 1.1.1.1

# Delete an NTP server
ntp del 0.pool.ntp.org

ntp revert

The command returns the configuration of the NTP server pool to a state that preceded the changes (system-wide).

How to use ntp revert:

# Revert the configuration of the NTP server pool to a state that preceded the changes
ntp revert
You can set a timezone with the timezone command.

The website uses cookies according to the cookie policy.