Configure NTP Master Mode

About this task

Perform the following procedure to set the switch to act as the Network Time Protocol (NTP) server, which means it will run in the master mode. The default value is disabled. You can also enable NTP master mode for a specific stratum.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Enable NTP master:

    ntp master

  3. Optional: Configure NTP master for a specific stratum:

    ntp master <1-16>

  4. Verify the configuration:

    show ntp

Example

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#ntp master
Switch:1(config)#show ntp
==========================================================================================
                                   NTP Master
==========================================================================================
Version   Enabled        Stratum
------------------------------------------------------------------------------------------
4         True           11

==========================================================================================
                                   NTP Client
==========================================================================================
Version   Enabled        Interval    Last Update Time                   Synchronized To
------------------------------------------------------------------------------------------
4         False          60  

Variable Definitions

The following table defines parameters for the ntp master command:

Variable

Value

<1-16>

Specifies a stratum value. The default value is 10.

Note:

If there is a better stratum available, it is preferred than what is configured.