ntp server

Syntax

ntp server [IP-ADDR|<IPv6-ADDR>] [<SERVER-NAME>] [key <KEY-ID>] [OOBM] 
[max-poll <MAX-POLL-VAL>][min-poll <MIN-POLL-VAL>][burst | iburst] [version <1-4>]

no ntp server [<IP-ADDR|IPv6-ADDR>] [server-name] [key <KEY-ID>] [oobm] [max-poll <MAX-POLL-VAL>][min-poll <MIN-POLL-VAL>][burst | iburst] [version <1-4>]
        

Description

This command is used to configure the NTP servers using a variety of parameters. A maximum of 8 NTP servers may be configured.

The no version of this command removes parameters from the NTP servers.

Parameters

IP-ADDR

Sets the IPv4 address of the NTP server.

IPv6-ADDR

Sets the IPv6 address of the NTP server.

SERVER-NAME

User configured host name will be saved in config. Hostname is resolved and IP address is updated to the existing NTP protocol data structure.

KEY-ID

Specifies the authentication key.

OOBM

Specifies that the NTP Unicast server is accessible over an OOBM interface.

MIN-POLL-VAL

Configures the minimum time intervals in seconds. Range is 4–17.

MAX-POLL-VAL

Configures the maximum time intervals in power of 2 seconds. Range is 4–17 (e.g., 5 would translate to 2 raised to 5 or 32).

BURST

Enables burst mode.

iBURST

Enables initial burst mode.

VERSION NUMBER

Sets version 1–4.

ntp server configuration

Switch(config)# ntp
server          Allow the software clock to be synchronized by an NTP
time server.
broadcast       Operate in broadcast mode.
unicast         Operate in unicast mode.


Switch(config)# ntp server
IP-ADDR         IPv4 address of the NTP server. 
IPV6-ADDR       IPv6 address of the NTP server.
NAME            Server name of NTP servers.

Switch(config)# ntp server <IP-ADDR>
Key             Specify the authentication key.


Switch(config)# ntp server <IP-ADDR> key key-id
Max-poll        Configure the maximum time intervals in seconds.

Switch(config)# ntp server <IP-ADDR> key key-id max-poll
<4-17>          Enter an integer number.


Switch(config)# ntp server <IP-ADDR> key key-id
Min-poll        Configure the minimum time intervals in seconds.


Switch(config)# ntp server <IP-ADDR> key key-id min-poll
<4-17>          Enter an integer number.


Switch(config)# ntp server <IP-ADDR> key key-id prefer max-poll 
<max-poll-val> min-poll <min-poll-val>
iburst          Enable initial burst (iburst) mode.
burst           Enable burst mode.


Switch(config)# ntp server IP-ADDR key key-id prefer maxpoll <number>
minpoll <number> iburst