API Guide

a. Create a nondefault VRF instance and assign an interface to the VRF.
OS10(config)# ip vrf red
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.2/24
OS10(conf-if-eth1/1/1)# exit
OS10(config)#
b. Configure the NTP server IP address on the NTP client.
OS10(config)# ntp server 10.0.0.1
OS10(config)# do show running-configuration ntp
ntp server 10.0.0.1
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)# do show running-configuration ntp
ntp server 10.0.0.1
ntp enable vrf red
OS10(config)#
3. Configure an NTP master:
a. Create a nondefault VRF instance and assign an interface to the VRF.
OS10(config)# ip vrf red
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 11.0.0.2/24
OS10(conf-if-eth1/1/1)# exit
OS10(config)
b. Configure NTP as master.
OS10(config)# ntp master
OS10(config)# do show running-configuration ntp
ntp master 8
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)# do show running-configuration ntp
ntp master 8
ntp enable vrf red
OS10(config)#
4. Verify that the NTP client (10.0.0.2) is connected to the NTP server (10.0.0.1) running in VRF Red.
OS10# show ntp associations vrf red
remote refid st t when poll reach delay offset jitter
==============================================================================
198
System management