Skip to content

NTP

NTP (Network Time Protocol) maintains accurate and consistent time synchronization across NX-OS devices by synchronizing with authoritative time sources through configurable server and peer relationships. It supports authentication for time source integrity, master mode with stratum configuration for local time authority, passive mode, and logging with adjustable severity levels for time synchronization events. NTP server and peer entries provide granular control over VRF assignment, key-based authentication, preferred source selection, and configurable minimum/maximum polling intervals.

Diagram
NameTypeConstraintMandatoryDefault Value
ntpClass[ntp]No

NameTypeConstraintMandatoryDefault Value
authenticateBooleantrue, falseNo
loggingBooleantrue, falseNo
logging_levelChoiceemergency, alert, critical, error, warning, notif, inform, debugNo
masterBooleantrue, falseNo
master_stratumIntegermin: 1, max: 15No
passiveBooleantrue, falseNo
allow_controlBooleantrue, falseNo
allow_privateBooleantrue, falseNo
allow_control_rate_limitIntegermin: 1, max: 65535No
serversList[servers]No
peersList[peers]No

NameTypeConstraintMandatoryDefault Value
ipStringYes
vrfStringNo
keyIntegermin: 1, max: 65535No
preferBooleantrue, falseNo
min_pollIntegermin: 4, max: 16No
max_pollIntegermin: 4, max: 16No

NameTypeConstraintMandatoryDefault Value
ipStringYes
vrfStringNo
keyIntegermin: 1, max: 65535No
preferBooleantrue, falseNo
min_pollIntegermin: 4, max: 16No
max_pollIntegermin: 4, max: 16No

Example 1: Basic NTP with redundant time servers

nxos:
devices:
- name: LEAF1
configuration:
ntp:
logging: true
servers:
- ip: 10.50.100.1
prefer: true
vrf: management
- ip: 10.50.100.2
vrf: management

Example 2: NTP with authentication enabled for secure time synchronization

nxos:
devices:
- name: SPINE1
configuration:
ntp:
authenticate: true
logging: true
servers:
- ip: 10.50.100.1
prefer: true
vrf: management
key: 1
- ip: 10.50.100.2
vrf: management
key: 1

Example 3: NTP with custom polling intervals and master fallback

nxos:
devices:
- name: BORDER-LEAF1
configuration:
ntp:
authenticate: true
logging: true
master: true
master_stratum: 8
servers:
- ip: 10.50.100.1
prefer: true
vrf: management
key: 1
min_poll: 6
max_poll: 10
- ip: 10.50.100.2
vrf: management
key: 1