PurposeCommand or Action
• key-id: Authentication key defined with the ntp
authentication-key command.
• interface: The interface from which to pick the IP
source address. By default, the source IP address is
taken from the outgoing interface.
• prefer: Sets this peer as the preferred one that provides
synchronization. This keyword reduces switching back
and forth between peers.
Use the no form of this command to remove a peer
association.
Configures the device's system clock to be synchronized
by a time server (server association).
[no] ntp server ip-address [version number] [key key-id]
[source interface] [prefer]
Step 4
Example:
• ip-address: The IP address of the time server providing
the clock synchronization.
Device(config)# ntp server 172.16.22.44 version 2
• number: NTP version number. The range is 1 to 3. By
default, version 3 is selected.
• key-id: Authentication key defined with the ntp
authentication-key command.
• interface: The interface from which to pick the IP
source address. By default, the source IP address is
taken from the outgoing interface.
• prefer: Sets this peer as the preferred one that provides
synchronization. This keyword reduces clock hop
among peers.
Use the no form of this command to remove a server
association.
Returns to privileged EXEC mode.end
Example:
Step 5
Device(config)# end
Configuring Broadcast-Based NTP Associations
To configure broadcast-based NTP associations, perform this procedure:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
20
Administering the Device
Configuring Broadcast-Based NTP Associations