Configuring Poll-Based NTP Associations To configure poll-based NTP associations, perform this procedure: Procedure Administering the Device Configuring Poll-Based NTP Associations Command or Action Purpose • 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. Step 7 end Example: Device(config)# end Returns to privileged EXEC mode. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode.
Step 3 [no] ntp peer ip-address [version number] [key key-id] [source interface] [prefer] Example: Device(config)# ntp peer 172.16.22.44 version 2 Configures the device system clock to synchronize a peer or to be synchronized by a peer (peer association). • ip-address: The IP address of the peer providing or being provided, the clock synchronization. • 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. Administering the Device 15