In this hands-on lab, we will explore the configuration of `chrony` in SUSE Linux Enterprise. This tool is used to configure the Network Time Protocol (NTP), which is used to set the time on the server and allows the server to use an external reference to ensure its time is synchronized with other systems. This is important because an incorrect system time can impact certificates and keys.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Using YaST, Add the Two Time Servers: `tick.jrc.us` and `tock.jrc.us`
Launch the YaST ncurses interface:
sudo yast
On the left select Network Services.
On the right select NTP Configuration.
Configure
Start NTP daemon
toNow and on Boot
.Tab to Configuration Source, select Dynamic, and arrow down to change it to Static.
Tab down to Servers and select Add.
Replace the existing server with
tick.jrc.us
, select Test to ensure
it is responding, and then go to OK.Tab down to Add, add
tock.jrc.us
, and select Test to make sure it is
reachable.Tab to Quit at the bottom of the page, until you have exited YaST completely.
- On the Command Line, Use `chronyc` to Verify the Time Servers Are Set and Responding
At the shell prompt, run the command:
chronyc sources -v
You will see there is a third time server configured. This server is
provided as a reference. Look at the output of the server at the 169 address and
compare the output oftick
andtock
to ensure they are workking.Run the command again, and check to ensure the RX count has increased and the
servers are running.