beautypg.com

Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 137

background image

25

Figure 12 Network diagram for configuration of NTP broadcast mode with authentication

Configuration procedure

Step1

Set the IP address for each interface as shown in

Figure 12

. The configuration procedure is omitted.

Step2

Configuration on Device C:

# Specify the local clock as the reference source, with the stratum level of 3.

system-view

[DeviceC] ntp-service refclock-master 3

# Configure NTP authentication.

[DeviceC] ntp-service authentication enable

[DeviceC] ntp-service authentication-keyid 88 authentication-mode md5 123456

[DeviceC] ntp-service reliable authentication-keyid 88

# Specify Device C as an NTP broadcast server, and specify an authentication key.

[DeviceC] interface gigabitEthernet0ethernet 1/1

[DeviceC-GigabitEthernet0/1] ntp-service broadcast-server authentication-keyid 88

Step3

Configuration on Device D:

# Configure NTP authentication.

system-view

[DeviceD] ntp-service authentication enable

[DeviceD] ntp-service authentication-keyid 88 authentication-mode md5 123456

[DeviceD] ntp-service reliable authentication-keyid 88

# Configure Device D to work in the NTP broadcast client mode.

[DeviceD] interface gigabitEthernet0/1

[DeviceD-GigabitEthernet0/1] ntp-service broadcast-client

Now, Device D can receive broadcast messages through GigabitEthernet 0/1, and Device C can send
broadcast messages through GigabitEthernet 0/1. Upon receiving a broadcast message from Device C,

Device D synchronizes its clock to that of Device C.
# View the NTP status of Device D after clock synchronization.

[DeviceD-GigabitEthernet0/1] display ntp-service status

Clock status: synchronized

Clock stratum: 4