Network Time Protocol

4.5.b i Master, client

General information about “NTP Master, client”:

“NTP Master, client” CLI configuration commands:

## Configuring a NTP server to sync with
Router(config)# ntp server <ip> [prefer]

## Disabling/Enabling receiving/sending NTP on an interface
Router(config)# interface <if>
Router(config-if)# [no] ntp disable

## Configuring the local HW clock
Router# clock set <hh:mm:ss> <DAY> <MONTH> <YEAR>

## Configuring the router as NTP server
Router(config)# ntp master <stratum>

## Configuring a NTP peer
Router(config)# ntp peer <ip>

## Configuring NTP multicast server/client feature
Router(config)# interface <if>
Router(config-if)# ntp multicast <ip>

Router(config)# interface <if>
Router(config-if)# ntp multicast client <ip>

## Configuring NTP broadcast server/client feature
Router(config)# interface <if>
Router(config-if)# ntp broadcast

Router(config)# interface <if>
Router(config-if)# ntp broadcast client

## Configuring a timezone and summer/winter time on the local HW clock
Router(config)# clock timezone [name of time zone] [UTC offset]
Router(config)# clock summertime [name of time zone] recurring [parameters]

## Configuring NTP to update the HW clock
Router(config)# ntp update-calendar

“NTP Master, client” CLI show commands:

## Showing NTP status (clock sync, stratum, ...)
Router# show ntp status

## Showing NTP associations (peers, ...)
Router# show ntp associations

4.5.b ii Authentication

General information on “NTP Authentication”:

“NTP Authentication” CLI configuration commands:

## Configuring an NTP authentication key
Router(config)# ntp authentication-key <number> md5 <password>

## Disabling/Enabling NTP authentication globally
Router(config)# [no] ntp authenticate

## Setting the configured NTP authentication key to be trusted
Router(config)# ntp trusted-key <number>

## Configuring a NTP server with the configured authentication key
Router(config)# ntp server <ip> key <number>