Configuration Examples 309# Enable the NTP authentication function.[SW4500] ntp-service authentication enable# Configure an MD5 authentication key, with the key ID being 42 andthe key being aNiceKey.[SW4500] ntp-service authentication-keyid 42 authentication-mode md5aNiceKey# Specify the key as a trusted key.[SW4500] ntp-service reliable authentication-keyid 42[SW4500] ntp-service unicast-server 1.0.1.11 authentication-keyid 42After the above configurations, SW4500 is ready to synchronize with Switch1.Because the NTP authentication function is not enabled on Switch1, SW4500 willfail to be synchronized to Switch1.To synchronize the SW4500 Ethernet switch, you need to perform the followingconfigurations on Switch1.# Enable the NTP authentication function on Switch1.[Switch1] system-view[Switch1] ntp-service authentication enable# Configure an MD5 authentication key, with the key ID being 42 andthe key being aNiceKey.[Switch1] ntp-service authentication-keyid 42 authentication-modemd5 aNiceKey# Specify the key as a trusted key.[Switch1] ntp-service reliable authentication-keyid 42(After the above configurations, the SW4500 Ethernet switch can be synchronizedto Switch1.) View the status of SW4500 after synchronization.[SW4500] display ntp-service statusClock status: synchronizedClock stratum: 3Reference clock ID: 1.0.1.11Nominal frequence: 250.0000 HzActual frequence: 249.9992 HzClock precision: 2^19Clock offset: 0.66 msRoot delay: 27.47 msRoot dispersion: 208.39 msPeer dispersion: 9.63 msReference time: 17:03:32.022 UTC Thu Sep 6 2001 (BF422AE4.05AEA86C)The output information indicates that SW4500 is synchronized to Switch1, with aclock stratum level of 3, one stratum level lower than that Switch1.# View the information about NTP sessions of SW4500 (You can see thata connection is established between SW4500 and Switch1). display ntp-service sessionssource reference stra reach poll now offset delay disper**************************************************************************[5]1.0.1.11 127.127.1.0 2 1 64 1 350.1 15.1 0.0note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured