Ntp Listen Cross Vrf

This scenario checks that set system ntp listen local-vrf still serves clients on the same wire but outside the VRF.

Test NTP Sync Cross VRF

Description

DUT0 is the NTP master with eth0 in a VRF. DUT1 sits on the same wire (no VRF) and must still synchronize.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 60.0.0.10/24
set interfaces ethernet eth0 vrf WAN
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system ntp listen local-vrf WAN
set system ntp master prefer
set system ntp master stratum 3
set system vrf WAN

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 60.0.0.20/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 60.0.0.10 from DUT1:

admin@DUT1$ ping 60.0.0.10 count 1 size 56 timeout 1
Show output
PING 60.0.0.10 (60.0.0.10) 56(84) bytes of data.
64 bytes from 60.0.0.10: icmp_seq=1 ttl=64 time=0.375 ms

--- 60.0.0.10 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.375/0.375/0.375/0.000 ms

Step 4: Run command set date 2019-02-01 12:00:00 at DUT1.

Step 5: Run command show date at DUT1 and check if output contains the following tokens:

Fri
Show output
Fri 01 Feb 2019 12:00:00 +00:00

Step 6: Run command set date ntp 60.0.0.10 at DUT1 and check if output contains the following tokens:

Date was successfully updated
Show output
Date was successfully updated!