User Tools

Site Tools


wiki:centos_ntp_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:centos_ntp_server [2019/10/04 14:44] – [NTP Clients] walkeradminwiki:centos_ntp_server [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 17: Line 17:
 \\  \\ 
 In this example, I have three CentOS systems, and the first will be the NTP server, with the second two being NTP clients. I did this for a <color #00a2e8>Split ABR Encoding</color> system, so I did not have to rely on any external NTP servers. In this example, I have three CentOS systems, and the first will be the NTP server, with the second two being NTP clients. I did this for a <color #00a2e8>Split ABR Encoding</color> system, so I did not have to rely on any external NTP servers.
 +\\ 
 +\\ 
 +If you have installed the OS from a MediKind .ISO (as opposed to using the CentOS minimal .ISO) then you will have to do the following:
 +<file>
 +1. Create the CentOS-Base.repo in /etc/yum.repos.d
 +2. Ensure you have access to the internet
 +3. Ensure DNS is running (or you won't connect to any repos)
 +
 +You will still have to perform steps 2 and 3 if you used the CentOS Minimal install.
 +</file>
 \\  \\ 
 \\  \\ 
Line 117: Line 127:
 systemctl enable ntpd systemctl enable ntpd
 </file> </file>
 +Use the command line 'date' to check the time and date of each server, and check they are the same. Synchronization normally only takes up to 10 seconds.
 +\\ 
 +<file>
 +# date
 +Fri Oct  4 13:45:46 UTC 2019
 +</file>
 +\\ 
 +\\ 
  
- 
- 
-date 
wiki/centos_ntp_server.1570196682.txt.gz · Last modified: 2023/03/09 22:35 (external edit)