I have two computers connected with an Ethernet cable. The first computer, let's call it the "master" is also connected to the Internet via a wireless network. It's running ntp
and getting its time from 0.ubuntu.pool.ntp.org
, etc. The second computer, let's call it the "slave" is only connected to the master and is running chrony
. I want the slave to track the master for time syncing purposes.
I have set up link-local IPv6 addresses on the master: inet6 fe80::1/128 scope link
and the slave: inet6 fe80::2/128 scope link
The two computers can ping
each other and ssh
into each other using these IPv6 addresses. So far so good.
I'm not sure how to configure /etc/ntp.conf
on the master and /etc/chrony/chrony.conf
on the slave in order to get the slave to track the master.
In the IPv4 case, it seems like what I had to do is these modifications:
# /etc/ntp.conf (master)
restrict 169.254.0.0 mask 255.255.0.0
broadcast 169.254.255.255
# /etc/chrony/chrony.conf (slave)
server 169.254.1.1 minpoll -1 maxpoll 2 prefer
This seems to work (although I have my doubts about its correctness) assuming I've also set the corresponding link-local IPv4 addresses. What's the IPv6 equivalent of this configuration?
PS. avahi
is also running on both computers, which may be complicating things.