ntp

To specify an NTP configuration, use the ntp command in configuration mode with authenticate, authentication-key, server, and trusted-key commands.

ntp authenticate

ntp authentication-key <key id> md5 hash | plain <key value>

ntp server {ip-address | hostname} key <peer key number>

ntp trusted-key <key>

Syntax Description

ntp

The command to specify an NTP configuration.

Defaults

None

Command Modes

Configuration.

Usage Guidelines

Use the ntp command to specify an NTP configuration.

To terminate NTP service on a device, you must enter the no ntp command with keywords or arguments such as authenticate, authentication-key, server, and trusted-key. For example, if you previously issued the ntp server command, use the no ntp command with server.

For more information on how to configure an NTP server, see ntp server.

Examples

/admin(config)# ntp ?

authenticate Authenticate time sources

authentication-key Authentication key for trusted time sources

server Specify NTP server to use

trusted-key Key numbers for trusted time sources

/admin(config)#

/admin(config)# no ntp server

/admin(config)# do show ntp

% no NTP servers configured

/admin(config)#

Related Commands

Command

Description

ntp authenticate

Enables authentication of all time sources.

ntp authentication-key

Configures authentication keys for trusted time sources.

ntp server

Allows synchronization of the software clock by the NTP server for the system.

ntp trusted-key

Specifies key numbers for trusted time sources that needs to be defined as NTP authentication keys.

show ntp

Displays the status information about the NTP associations.