Configuring NTP Master Mode

About this task

Note

Note

DEMO FEATURE - NTPv4 Master Mode is a demonstration feature on some products. Demonstration features are provided for testing purposes. Demonstration features are for lab use only and are not for use in a production environment. For more information on feature support, see VOSS Feature Support Matrix.

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
------------------------------------------------------------------------------------------
3         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.