Configuring Ntp Client/Server Mode With Authentication - H3C S5810 Series Operation Manual

Ethernet switches
Hide thumbs Also See for S5810 Series:
Table of Contents

Advertisement

Reference time: 16:01:51.713 UTC Sep 19 2005 (C6D95F6F.B6872B02)
As shown above, Switch D has been synchronized to Switch C, and the clock stratum level of Switch D
is 3, while that of Switch C is 2.
# View the NTP session information of Switch D, which shows that an association has been set up
between Switch D and Switch C.
[SwitchD-Vlan-interface2] display ntp-service sessions
source
**************************************************************************
[1234] 3.0.1.31
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations :

Configuring NTP Client/Server Mode with Authentication

Network requirements
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 on both Device A and Device B.
Figure 1-11 Network diagram for configuration of NTP client/server mode with authentication
Configuration procedure
1)
Configuration on Device B:
<DeviceB> 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 a trusted key.
[DeviceB] ntp-service reliable authentication-keyid 42
# Specify Device A as the NTP server.
[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:
# Enable NTP authentication.
[DeviceA] ntp-service authentication enable
# Set an authentication key.
reference
stra
reach
127.127.1.0
2
254
1
poll
now
offset
64
62
-16.0
1-21
delay
disper
31.0
16.6

Advertisement

Table of Contents
loading

Table of Contents