ntp

Enables the Network Time Protocol (NTP) client and server mode.
Syntax
ntp
no ntp
Command Default

NTP services are disabled on all interfaces by default.

Modes

Global configuration mode

Usage Guidelines

Before you begin to configure NTP, you must use the clock set command to set the time on your device to within 1000 seconds of the Coordinated Universal Time (UTC).

The no ntp command disables NTP and removes the NTP configuration, including all static configuration as well as learned associations from NTP neighbors.

Examples

The following example enables the NTP client and server mode.

device(config)# ntp
device(config-ntp)#