Services

ntp server <ip>

Sync the device clock to an NTP server.

Works on: Router, Firewall, SwitchMode: config
Watch out

It synchronizes only when the server is reachable over UDP 123 (an inbound ACL denying udp 123 on the path or on the server blocks it), is itself a time source ('ntp master' on it, or synchronized upstream) and answers. 'show ntp status' then reads the server's stratum + 1. PCs and the cloud never serve NTP; a server does after 'systemctl start ntpd' (stratum 10).

Run this command live

Don't just read it — type ntp server <ip> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "ntp server <ip>" command do?

Sync the device clock to an NTP server.

What's the common gotcha with "ntp server <ip>"?

It synchronizes only when the server is reachable over UDP 123 (an inbound ACL denying udp 123 on the path or on the server blocks it), is itself a time source ('ntp master' on it, or synchronized upstream) and answers. 'show ntp status' then reads the server's stratum + 1. PCs and the cloud never serve NTP; a server does after 'systemctl start ntpd' (stratum 10).

More Services commands

← Back to the full command reference