Typical NTP Configuration Examples 505ConfigureAuthentication-enabledNTP Server ModeNetwork RequirementsSwitch 1 sets the local clock as the NTP master clock at stratum 2. Switch 2 setsSwitch 1 as its time server in server mode and itself in client mode and enablesauthentication. (Note that Switch 1 must support setting local clock as the NTPmaster clock.)Networking DiagramSee Figure 132.Configuration Procedure1 Configure Switch 1:a Enter System View. system-viewb Set the local clock as the NTP master clock at stratum 2.[switch1]ntp-service refclock-master 22 Configure Switch 2:a Enter System View. system-viewb Set Switch 1 as time server.[switch2]ntp-service unicast-server 1.0.1.11c Enable authentication.[switch2]ntp-service authentication enabled Set the key.[switch2]ntp-service authentication-keyid 42 authentication-mode md5aNiceKeye Set the key as reliable.[switch2]ntp-service reliable authentication-keyid 42The above examples synchronized Switch 2 by Switch 1. Since Switch 1 has not beenenabled authentication, it cannot synchronize Switch 2. And now let us do thefollowing additional configurations on Switch 1:1 Enable authentication.[switch1]ntp-service authentication enable2 Set the key.[switch1]ntp-service authentication-keyid 42 authentication-mode md5aNiceKey3 Configure the key as reliable.[switch1]ntp-service reliable authentication-keyid 42