C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
NTP Commands on Cisco IOS XR Software
server (NTP)
SMR-444
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
server (NTP)
To allow the system clock to be synchronized by a time server, use the
server
command in NTP
configuration mode. To remove the
server
command from the configuration file and restore the system
to its default condition with respect to this command, use the
no
form of this command.
server
ip-address
[
version
number
] [
key
key-id
] [
minpoll
interval
] [
maxpoll
interval
]
[
source
interface-type
interface-id
] [
prefer
]
no
server
ip-address
Syntax Description
Defaults
No servers are configured by default. If a server is configured, the default NTP version number is 4, no
authentication key is used, and the source IP address is taken from the outgoing interface.
minpoll
interval
: 6 seconds
maxpoll
interval
: 10 seconds
Command Modes
NTP configuration
Command History
ip-address
IPv4 address of the time server providing the clock synchronization.
version
number
(Optional) Defines the Network Time Protocol (NTP) version number,
where the
number
argument is a value from 1 to 4. The default is 4.
key
key-id
(Optional) Defines the authentication key, where the
key-id
argument is the
authentication key to use when packets are sent to this peer.
minpoll
interval
(Optional) Defines the shortest polling interval, where the
interval
argument
is specified in seconds as a power of 2. The number is used in a power-of-2
expression (meaning 2
6
= 64), and can be in the range from 4 to 14. The
default value is 6.
maxpoll
interval
(Optional) Defines the longest polling interval, where the
interval
argument
is specified in seconds as a power of two. The default value is 10.
source
(Optional) IP source address. The default is the outgoing interface.
interface-type
(Optional) Interface type. For more information, use the question mark (
?
)
online help function.
interface-id
(Optional) Identifies a physical interface or a virtual interface.
Note
Use the
show interfaces
command to see a list of all possible
interfaces currently configured on the router.
For more information about the syntax for the router, use the question mark
(
?
) online help function.
prefer
(Optional) Makes this peer the preferred server that provides
synchronization.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.