我一直在努力设置一个NTP服务器来测试IPv6同步。我无法找到任何帮助,使配置工作。
如果ntp4.2.6和ntpdate 4.2.6表示支持IPv6,那么为什么没有文档说明需要做什么才能使它正常工作。
我的配置:
64 80:1000:2000:3000:1/64。= NTP服务器
NTP服务器接口:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:56:92:18:07 brd ff:ff:ff:ff:ff:ff
inet 10.30.15.1/16 brd 10.30.255.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80:1000:2000:3000::1/64 scope link noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe92:1807/64 scope link noprefixroute
valid_lft forever preferred_lft forever没有注释的ntp.conf =
driftfile /var/lib/ntp/drift
restrict default nomodify notrap nopeer noquery
restrict -6 default nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict ::1
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitorfe80 80:1000:2000:3000::2=没有注释的客户端ntp.conf =
driftfile /var/lib/ntp/drift
restrict 127.0.0.1
restrict ::1
server -6 fe80:1000:2000:3000::1
server -6 DNS-NTP.example.com
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitor我知道我们可以解析IP ->主机名和主机名-> IP
[root@ClientIPv6 ~]# nslookup -query=aaaa = DNS-NTP.example.com
Server: fe80:1000:2000:3000::1
Address: fe80:1000:2000:3000::1#53
DNS-NTP.example.com has AAAA address fe80:1000:2000:3000::1
[root@ClientIPv6 ~]# nslookup -query=aaaa fe80:1000:2000:3000::1
Server: fe80:1000:2000:3000::1
Address: fe80:1000:2000:3000::1#53
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.0.0.0.2.0.0.0.1.0.8.e.f.ip6.arpa name = DNS-NTP.example.com.ntpdate和ntpq -pn没有显示时间同步。
[root@ClientIPv6 ~]# ntpdate -6 -q DNS-NTP.example.com
Error resolving DNS-NTP.example.com: Name or service not known (-2)
31 Jan 13:23:14 ntpdate[25967]: Can't find host DNS-NTP.example.com: Name or service not known (-2)
31 Jan 13:23:14 ntpdate[25967]: no servers can be used, exiting
[root@ClientIPv6 ~]# ntpdate -6 -q fe80:1000:2000:3000::1
31 Jan 13:23:23 ntpdate[25971]: no servers can be used, exiting这显示IPv4地址正常工作,但IPv6不工作。(10.30.15.1是与IPv6接口相同的DNS-NTP.example.com地址.)
[root@ClientIPv6 ~]# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
10.30.15.1 200.160.0.8 3 u - 64 1 0.122 -42.146 0.000
fe80:1000:2000: .INIT. 16 - - 64 0 0.000 0.000 0.000这两台服务器上都没有防火墙来阻止流量。
我的猜测是有一些特殊的方式来配置ntp.conf,但我在网上找不到它。
有人能帮忙吗?如果有其他有用的信息,请告诉我。
发布于 2019-01-31 19:27:55
对于那些跟在后面的人来说,我需要更改罗恩·莫平指出的地址。
我将所有的is更改为fddb:abe7 7:8164:14eb::/64空间,所有这些都在使用上面的配置。
发布于 2020-10-12 12:41:00
从主机文件中删除或注释IPv6本地主机:
#::1 localhost6.localdomain6 localhost6https://serverfault.com/questions/951752
复制相似问题