beautypg.com

H3C Technologies H3C MSR 5600 User Manual

Page 110

background image

97

3.

Configure Router B:
# Enable the NTP service.

system-view

[RouterB] ntp-service enable

# Enable NTP authentication on Router B. Configure an NTP authentication key, with the key ID of
88 and key value of 123456. Input the key in plain text and specify it as a trusted key.

[RouterB] ntp-service authentication enable

[RouterB] ntp-service authentication-keyid 88 authentication-mode md5 simple 123456

[RouterB] ntp-service reliable authentication-keyid 88

# Configure Router B to operate in broadcast client mode and receive NTP broadcast messages
from Ethernet 1/1.

[RouterB] interface ethernet 1/1

[RouterB-Ethernet1/1] ntp-service broadcast-client

4.

Configure Router C:
# Enable the NTP service.

system-view

[RouterC] ntp-service enable

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

[RouterC] ntp-service refclock-master 3

# Configure Router C to operate in the NTP broadcast server mode and use Ethernet 1/1 to send
NTP broadcast messages.

[RouterC] interface ethernet 1/1

[RouterC-Ethernet1/1] ntp-service broadcast-server

[RouterC-Ethernet1/1] quit

5.

Verify the configuration:
# NTP authentication is enabled on Router A and Router B, but not enabled on Router C, so Router
A and Router B cannot synchronize their local clocks to Router C. Display NTP information for

Router B.

[RouterB-Ethernet1/1] display ntp-service status

Clock status: unsynchronized

Clock stratum: 16

Reference clock ID: none

6.

Configure NTP authentication on Router C:
# Enable NTP authentication on Router C. Configure an NTP authentication key, with the key ID of
88 and key value of 123456. Input the key in plain text and specify it as a trusted key.

[RouterC] ntp-service authentication enable

[RouterC] ntp-service authentication-keyid 88 authentication-mode md5 simple 123456

[RouterC] ntp-service reliable authentication-keyid 88

# Specify Router C as an NTP broadcast server, and associate the key 88 with Router C.

[RouterC] interface ethernet 1/1

[RouterC-Ethernet1/1] ntp-service broadcast-server authentication-keyid 88

7.

Verify the configuration:
# After NTP authentication is enabled on Router C, Router A and Router B can synchronize their
local clocks to Router C. Display NTP service status on Router B.

[RouterB-Ethernet1/1] display ntp-service status

Clock status: synchronized

This manual is related to the following products: