RHCSA Training Labs

These are some labs I have crafted to prep for the RHCSA exam.  Hopefully you will find this useful!

Brakertech’s RHCSA Training Labs

Objective: Configure NTP Client to sync against a custom NTP server

Configure Local NTP Server

The first step is to get your local ntp server running

Install Required Package

Modify /etc/ntp.conf

  • replace 38.106.177.10 with your primary external ntp server to sync with
  • change 192.168.0.0 to the local subnet you would like to accept connections from

Confirm local ntp server machine can retrieve ntp updates from external server

Set ntp to start on boot

Disable selinux and iptables

Configure ntp client

The client machine must be another machine on your local network (ex: in 192.168.0.0 mask 255.255.255.0 network i specified in the above server config)

 

Install Required Package

Modify /etc/ntp.conf

  • change 192.168.0.4 to the ip of your local ntp server
  • Alternatively you can set the ntp server by running system-config-date & from terminal

Test our ntp client’s ability to sync time with the local ntp server

Follow these steps:

  1. stop ntpd
  2. set a different local time on the client machine with date -s
  3. run ntpdate -u three times
  4. start ntpd
  5. check time with date command

Troubleshooting NTP

Here are some basic troubleshooting steps when dealing with ntp

  • Change your client’s timezone to the same timezone as your server’s, instructions here
  • Check for selinux blocking ntp requests on client and server
  • Verify firewall rules allow UDP traffic on source/destination port 123 between your server and the Stratum 1/2 server with which you are synchronizing.
  • use ntpq to determine if you are properly syncronized with your local ntp server: