R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

75
# Display the NTP session information of Router A, which shows that an association has been set
up between Router A and Router C.
[RouterA-GigabitEthernet2/0/1] display ntp-service sessions
source reference stra reach poll now offset delay disper
**************************************************************************
[1234] 3.0.1.31 127.127.1.0 2 255 64 26 -16.0 40.0 16.6
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations : 1
For more information about how to configuration IGMP and PIM, see IP Multicast Configuration Guide.
Configuration example for NTP client/server mode with
authentication
Network requirements
As shown in Figure 30, perform the following configurations to synchronize the time between Router B
and Router A and ensure network security.
The local clock of Router A is to be configured as a reference source, with the stratum level 2.
Router B operates in client mode and Router A is to be used as the NTP server of Router B, with
Router B as the client.
NTP authentication is to be enabled on both Router A and Router B.
Figure 30 Network diagram
Configuration procedure
1. Set the IP address for each interface as shown in Figure 30. (Details not shown.)
2. Configure Router A:
# Specify the local clock as the reference source, with the stratum level 2.
<RouterA> system-view
[RouterA] ntp-service refclock-master 2
3. Configure Router B:
<RouterB> system-view
# Enable NTP authentication on Router B.
[RouterB] ntp-service authentication enable
# Set an authentication key.
[RouterB] ntp-service authentication-keyid 42 authentication-mode md5 aNiceKey
# Specify the key as a trusted key.
[RouterB] ntp-service reliable authentication-keyid 42
# Specify Router A as the NTP server of Router B.
[RouterB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42
Before Router B can synchronize to Router A, enable NTP authentication for Router A.