ntp master

Syntax

ntp master vrf <VRF-NAME> {stratum <NUMBER>]

no ntp master vrf <VRF-NAME>

Description

Sets the switch as the master time source for NTP clients on the specified VRF. By default, the switch operates at stratum level 8. The switch cannot function as both NTP master and client on the same VRF.

The no form of this command stops the switch from operating as the master time source on the specified VRF.

Command context

config

Parameters

vrf <VRF-NAME>

Specifies the VRF on which to act as master time source.

stratum <NUMBER>

Specifies the stratum level at which the switch operates. Range: 1 - 15. Default: 8.

Authority

Administrators

Examples

Setting the switch to act as master time source on VRF primary-vrf with a stratum level of 9.

switch(config)# ntp master vrf primary-vry statum 9

Stops the switch from acting as master time source on VRF primary-vrf.

switch(config)# no ntp master vrf primary-vry