Configuring MPLS VPN time synchronization in symmetric peers mode
Network requirements
As shown in Figure 18, two VPNs are present on PE 1 and PE 2: VPN 1 and VPN 2. CE 1 and CE 3 belong to VPN 1. To synchronize the time between PE 1 and CE 1 in VPN 1, configure CE 1’s local clock as a reference source, with the stratum level 1, configure CE 1 to operate in symmetric peers mode, and specify VPN 1 as the target VPN.
Configuration procedure
Set the IP address for each interface as shown in Figure 18. (Details not shown.)
Configure PE 1:
# Specify CE 1 in VPN 1 as the symmetric-passive peer of PE 1.
<PE1> system-view [PE1] ntp-service unicast-peer vpn-instance vpn1 10.1.1.1
# Display NTP session information and status information on PE 1 a certain period of time later. This information should show that PE 1 has synchronized to CE 1, with the clock stratum level 2.
[PE1] display ntp-service status Clock status: synchronized Clock stratum: 2 Reference clock ID: 10.1.1.1 Nominal frequency: 63.9100 Hz Actual frequency: 63.9100 Hz Clock precision: 2^7 Clock offset: 0.0000 ms Root delay: 32.00 ms Root dispersion: 0.60 ms Peer dispersion: 7.81 ms Reference time: 02:44:01.200 UTC Jan 1 2001(BDFA6D71.33333333) [PE1] display ntp-service sessions source reference stra reach poll now offset delay disper ************************************************************************** [12345]10.1.1.1 LOCL 1 1 64 29 -12.0 32.0 15.6 note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured Total associations : 1 [PE1] display ntp-service trace server 127.0.0.1,stratum 2, offset -0.012000, synch distance 0.02448 server 10.1.1.1,stratum 1, offset 0.003500, synch distance 0.00781 refid 127.127.1.0