$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens192
iface ens192 inet static
address 177.75.176.40/27
gateway 177.75.176.33
iface ens192 inet6 static
address 2804:694:3000:8000::40/64
gateway 2804:694:3000:8000::
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 177.75.176.25 2804:694:4c00:4001::1
dns-search juntotelecom.com.br
$ sudo hostnamectl set-hostname kube-ctrl-pl-01.juntotelecom.com.br
$ sudo timedatectl set-time '2022-05-05 15:30:00'
$ sudo timedatectl set-timezone America/Sao_Paulo
$ timedatectl status
Local time: ter 2022-04-05 15:31:30 -03
Universal time: ter 2022-04-05 18:31:30 UTC
RTC time: ter 2022-04-05 18:31:30
Time zone: America/Sao_Paulo (-03, -0300)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
$ sudo apt update
$ sudo apt install chrony
$ sudo vim /etc/chrony/chrony.conf
[...]
#pool 2.debian.pool.ntp.org iburst
pool pool.ntp.br iburst
[...]
$ sudo timedatectl set-ntp true
$ sudo systemctl restart chronyd
$ chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- b.ntp.br 2 6 17 24 -186us[ -186us] +/- 45ms
^? a.st1.ntp.br 0 7 0 - +0ns[ +0ns] +/- 0ns
^? gps.jd.ntp.br 0 7 0 - +0ns[ +0ns] +/- 0ns
^? c.ntp.br 0 7 0 - +0ns[ +0ns] +/- 0ns
^? a.ntp.br 0 7 0 - +0ns[ +0ns] +/- 0ns
^* a.ntp.br 2 6 17 26 +303us[ -54us] +/- 3343us
^? b.ntp.br 0 7 0 - +0ns[ +0ns] +/- 0ns
^- c.ntp.br 2 6 17 25 +1166us[+1166us] +/- 38ms
$ chronyc tracking
Reference ID : C8A00008 (a.ntp.br)
Stratum : 3
Ref time (UTC) : Tue Apr 05 18:35:49 2022
System time : 0.000000057 seconds fast of NTP time
Last offset : -0.000357560 seconds
RMS offset : 0.000357560 seconds
Frequency : 26.038 ppm fast
Residual freq : -24.961 ppm
Skew : 0.250 ppm
Root delay : 0.002586446 seconds
Root dispersion : 0.003777417 seconds
Update interval : 0.8 seconds
Leap status : Normal
$ chronyc sourcestats
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
b.ntp.br 5 5 71 +13.665 80.742 +1093us 104us
a.st1.ntp.br 0 0 0 +0.000 2000.000 +0ns 4000ms
gps.jd.ntp.br 0 0 0 +0.000 2000.000 +0ns 4000ms
c.ntp.br 0 0 0 +0.000 2000.000 +0ns 4000ms
a.ntp.br 0 0 0 +0.000 2000.000 +0ns 4000ms
a.ntp.br 5 3 70 -2.523 42.783 -68us 238us
b.ntp.br 0 0 0 +0.000 2000.000 +0ns 4000ms
c.ntp.br 5 3 71 -0.930 6.718 +1140us 25us