Configuration Example
307
NTP Server Mode with
Authentication
Configuration
Network requirements
The local clock of S4200G1 operates as the master NTP clock, with the clock stratum
set to 2.
A S4200G 2 series switch operates in client mode with S4200G 1 as the time server.
S4200G 1 operates in the server mode automatically. Meanwhile, NTP authentication
is enabled on both sides.
This example assumes that S4200G 1 is a switch that supports the local clock being
the master NTP clock.
Network diagram
Figure 98
Network diagram for NTP server mode with authentication configuration
Configuration procedures
1
Configure the S4200G 2 series switch.
a
Enter system view.
<S4200G >
system-view
System View: return to User View with Ctrl+Z.
[S4200G]
b
Configure S4200G 1 to be the time server.
[S4200G]
ntp-service unicast-server 1.0.1.11
c
Enable NTP authentication.
[S4200G]
ntp-service authentication enable
d
Set the authentication key.
[S4200G]
ntp-service authentication-keyid 42 authentication-mode md5
aNiceKey
e
Specify the key to be a trusted key.
[S4200G]
ntp-service reliable authentication-keyid 42
[[S4200G]
ntp-service unicast-server 1.0.1.11 authentication-keyid 42
The above configuration synchronizes S4200G 2 to S4200G 1. As NTP authentication
is not enabled on S4200G 1, S4200G 2 will fail to be synchronized to S4200G 1.
To synchronize the S4200G 2 series switch, the following configuration is needed for
S4200G 1.
f
Enable authentication on S4200G 1.
[S4200G]
ntp-service authentication enable
g
Set the authentication key.
[S4200G]
ntp-service authentication-keyid 42 authentication-model md5
aNiceKey
h
Specify the key to be a trusted key.
[S4200G]
ntp-service reliable authentication-keyid 42
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...