beautypg.com

Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 88

background image

76

[RouterA-GigabitEthernet3/1/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

NOTE:

For more information about how to configuration IGMP and PIM, see

IP Multicast Configuration Guide.

Configuring NTP client/server mode with authentication

Network requirements

As shown in

Figure 29

, perform the following configurations to synchronize the time between Device B

and Device A and ensure network security. More specifically:

The local clock of Device A is to be configured as a reference source, with the stratum level of 2.

Device B works in the client mode and Device A is to be used as the NTP server of Device B, with
Device B as the client.

NTP authentication is to be enabled for Device A and Device B at the same time.

Figure 29 Network diagram

Configuration procedure

1.

Set the IP address for each interface as shown in

Figure 29

. (Details not shown)

2.

Configure Device A
# Specify the local clock as the reference source, with the stratum level of 2.

system-view

[DeviceA] ntp-service refclock-master 2

3.

Configure Device B:

system-view

# Enable NTP authentication on Device B.

[DeviceB] ntp-service authentication enable

# Set an authentication key.

[DeviceB] ntp-service authentication-keyid 42 authentication-mode md5 aNiceKey

# Specify the key as key as a trusted key.

[DeviceB] ntp-service reliable authentication-keyid 42

# Specify Device A as the NTP server of Device B.

[DeviceB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42

Before Device B can synchronize its clock to that of Device A, you need to enable NTP

authentication for Device A.
Perform the following configuration on Device A: