Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

server (NTP)

Syntax

Hierarchy Level

Description

For NTP, configure the local router or switch to operate in client mode with the remote system at the specified address. In this mode, the local router or switch can be synchronized with the remote system, but the remote system can never be synchronized with the local router or switch.

If the NTP client time drifts so that the difference in time from the NTP server exceeds 128 milliseconds, the client is automatically stepped back into synchronization. If the offset between the NTP client and server exceeds the 1000-second threshold, the client still synchronizes with the server, but it also generates a system log message noting that the threshold was exceeded.

Options

address—Address of the remote system. You must specify an address, not a hostname.

key key-number—(Optional) Use the specified key number to encrypt authentication fields in all packets sent to the specified address.

  • Range: Any unsigned 32-bit integer

prefer—(Optional) Mark the remote system as preferred host, which means that if all other things are equal, this remote system is chosen for synchronization among a set of correctly operating systems.

routing-instance routing-instance—(Optional) Routing instance through which the server is reachable.

Note:

You can use the routing instance name mgmt_junos to enable access to NTP servers through the management interface.

version value—(Optional) Specify the version number to be used in outgoing NTP packets.

  • Range: 1 through 4

  • Default: 4

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.