102
•
Configure NTP authentication on Router A, Router B, and Router C.
Figure 38
Network diagram
Configuration procedure
1.
Assign an IP address to each interface, and make sure Router A, Router B, and Router C can reach
each other, as shown in
. (Details not shown.)
2.
Configure Router A:
# Enable the NTP service.
<RouterA> system-view
[RouterA] ntp-service enable
# Enable NTP authentication on Router A. 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.
[RouterA] ntp-service authentication enable
[RouterA] ntp-service authentication-keyid 88 authentication-mode md5 simple 123456
[RouterA] ntp-service reliable authentication-keyid 88
# Configure Router A to operate in broadcast client mode and receive NTP broadcast messages
from GigabitEthernet 2/0/1.
[RouterA] interface gigabitethernet 2/0/1
[RouterA-GigabitEthernet2/0/1] ntp-service broadcast-client
3.
Configure Router B:
# Enable the NTP service.
<RouterB> 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 GigabitEthernet 2/0/1.
[RouterB] interface gigabitethernet 2/0/1
[RouterB-GigabitEthernet2/0/1] ntp-service broadcast-client
GE2/0/1
3.0.1.31/24
GE2/0/1
3.0.1.32/24
Router A
NTP broadcast client
Router C
NTP broadcast server
Router B
NTP broadcast client
GE2/0/1
3.0.1.30/24