API Guide

Sample NTP configuration
The following example shows an NTP master (11.0.0.2), server (10.0.0.1), and client (10.0.0.2) connected through a nondefault
VRF instance (VRF Red). OS10 acts as an NTP server to synchronize its clock with the NTP master available in the nondefault
VRF instance red and provides time to NTP clients in the VRF.
To create this sample NTP configuration:
1. Configure the NTP server:
a. Create a nondefault VRF instance and assign an interface to the VRF.
OS10(conf-vrf)# exit
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no switchport
OS10(conf-if-eth1/1/1)# ip vrf forwarding red
OS10(conf-if-eth1/1/1)# ip address 10.0.0.1/24
OS10(conf-if-eth1/1/1)# exit
OS10(config)# interface ethernet 1/1/5
OS10(conf-if-eth1/1/5)# no switchport
OS10(conf-if-eth1/1/5)# ip vrf forwarding red
OS10(conf-if-eth1/1/5)# ip address 11.0.0.1/24
OS10(conf-if-eth1/1/5)# exit
OS10(config)#
b. Configure the NTP master IP address on the NTP server. (In the example, NTP master 11.0.0.2, is reachable only through
VRF Red.)
OS10(config)# ntp server 11.0.0.2
OS10(config)# do show running-configuration ntp
ntp server 11.0.0.2
OS10(config)#
c. Configure NTP in the VRF Red instance.
OS10(config)# ntp enable vrf red
% Warning: NTP server/client will be disabled in default VRF and enabled on a red
VRF
Do you wish to continue? (y/n): y
OS10(config)#
OS10(config)# do show running-configuration ntp
ntp server 11.0.0.2
ntp enable vrf red
OS10(config)#
2. Configure an NTP client:
System management
197