3Com 5500-SI Switch User Manual


 
Typical NTP Configuration Examples 505
Configure
Authentication-enabled
NTP Server Mode
Network Requirements
Switch 1 sets the local clock as the NTP master clock at stratum 2. Switch 2 sets
Switch 1 as its time server in server mode and itself in client mode and enables
authentication. (Note that Switch 1 must support setting local clock as the NTP
master clock.)
Networking Diagram
See Figure 132.
Configuration Procedure
1 Configure Switch 1:
a Enter System View.
<switch1> system-view
b Set the local clock as the NTP master clock at stratum 2.
[switch1]ntp-service refclock-master 2
2 Configure Switch 2:
a Enter System View.
<switch2> system-view
b Set Switch 1 as time server.
[switch2]ntp-service unicast-server 1.0.1.11
c Enable authentication.
[switch2]ntp-service authentication enable
d Set the key.
[switch2]ntp-service authentication-keyid 42 authentication-mode md5
aNiceKey
e Set the key as reliable.
[switch2]ntp-service reliable authentication-keyid 42
The above examples synchronized Switch 2 by Switch 1. Since Switch 1 has not been
enabled authentication, it cannot synchronize Switch 2. And now let us do the
following additional configurations on Switch 1:
1 Enable authentication.
[switch1]ntp-service authentication enable
2 Set the key.
[switch1]ntp-service authentication-keyid 42 authentication-mode md5
aNiceKey
3 Configure the key as reliable.
[switch1]ntp-service reliable authentication-keyid 42