From the course: Ubuntu Linux: Service Configuration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure a client to communicate with an NTP server

Configure a client to communicate with an NTP server

From the course: Ubuntu Linux: Service Configuration

Start my 1-month free trial

Configure a client to communicate with an NTP server

- [Instructor] We can configure a client system to connect it to a specific NTP pool, one or more servers, or one or more of its peers. Usually, a system's configured to get time information from a pre-configured pool of servers that's defined by the distro's maintainers. This is fine for a one-off client, but in an enterprise or organization deployment, it can be advantageous to configure clients to get time from specific servers we control and define. And it makes a lot of sense to have local time servers be in sync with each other if there are more than one. Here in my client system I'll install chrony with apt install chrony. Then, I'll open up the configuration file at etc/chrony/chrony.conf. At the top of the file is a space where we can set which pools, servers, and peers to connect to. I'll comment out this pool here with a pound or hash sign. And on the next line, I'll add a specific server, the one I just configured. I'll write server 10.0.2.5. That'll tell this client to…

Contents