Enables and configures Network Time Protocol (NTP).
NTP is disabled by default.
Config mode
Both IPv4 and IPv6 addresses are supported.
This command is available only to users with admin role.
NTP is disabled by default. You must enable it explicitly when configuring NTP servers and peers.
The no ntp enable command disables NTP feature.
The no ntp server [ ip address | domain name ] command deletes the NTP server.
The no ntp peer [ ip address | domain name ] command disables the /NTP peer.
The following example disables NTP.
device# configure terminal
device(config)# no ntp enable
The following example deletes the NTP server IP from the system.
device# configure terminal device(config)# no ntp server 1.1.1.1 device(config)# ntp server 1.1.1.1.1 Error: Invalid address
The following example deletes the NTP peer IP from the system.
device# configure terminal device(config)# no ntp peer 1.1.1.1 device(config)# ntp peer 1.1.1.1.1 Error: Invalid address