system ntp server <server-name>
Specifies a Network Time Protocol (NTP) server to use when synchronizing the system clock.
By default, the system uses the NTP server at 0.vyatta.pool.ntp.org.
- server
- Multi-node. The IP address or host name of an NTP server. The system automatically obtains the system date and time from the specified server or servers.
You can specify multiple NTP servers by creating multiple instances of the ntp server configuration node.
- address-family
- Address family for hostname resolution.
- dynamic
- Allows to configure the server even if it is not reachable.
- key-id
- NTP aunthentication key ID.
- noselect
- Marks the server as unused.
- preempt
- Specifies the association as preemptable rather than the default persistent.
- prefer
- Marks the server as preferred.
Configuration mode
system {
ntp {
server server {
address-family
dynamic
key-id
noselect
preempt
prefer
}
}
}
Use this command to specify an NTP server for the system.
Use the set form of this command to specify an NTP server for the system. Note that you cannot modify an NTP server entry by using the set command. To replace an entry, delete it and create a new entry.
Use the delete form of this command to remove an NTP server.
Use the show form of this command to view the NTP servers that have been specified.
This example describes mark a NTP server 10.18.191.203 as the preferred server.
vyatta@Rn# set system ntp server 10.18.191.203 prefer
vyatta@Rn# show system ntp server
server 10.18.191.203 {
prefer