今天配置ntp服务器客户端在同步时间的时候总是提示错误
[root@inth-rac02 ~]# ntpdate 192.168.47.135
29 Nov 23:13:35 ntpdate[8107]: no server suitable for synchronization found
开始以为是防火墙的问题,把防火墙关闭
[root@inth-rac02 ~]# service iptables stop
问题照旧
查看ntp.conf的配置
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
#restrict default nomodify notrap
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
#restrict 127.0.0.1
restrict 192.168.47.0 mask 255.255.255.0 nomodify notrust notrap
# -- CLIENT NETWORK -------
# Permit systems on this network to synchronize with this
# time service. Do not permit those systems to modify the
# configuration of this service. Also, do not use those
# systems as peers for synchronization.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# --- OUR TIMESERVERS -----
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool ( http://www.pool.ntp.org/join.html)
结果还是一样
用ntpdate -d提示错误
[root@inth-rac02 ~]# ntpdate -d
29 Nov 23:10:01 ntpdate[8073]: ntpdate 4.2.0a@1.1190-r Wed Apr 23 07:36:43 EDT 2008 (1)
29 Nov 23:10:01 ntpdate[8073]: no servers can be used, exiting
[root@inth-rac02 ~]# ntpdate 192.168.47.135
29 Nov 23:13:35 ntpdate[8107]: no server suitable for synchronization found
开始以为是防火墙的问题,把防火墙关闭
[root@inth-rac02 ~]# service iptables stop
问题照旧
查看ntp.conf的配置
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
#restrict default nomodify notrap
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
#restrict 127.0.0.1
restrict 192.168.47.0 mask 255.255.255.0 nomodify notrust notrap
# -- CLIENT NETWORK -------
# Permit systems on this network to synchronize with this
# time service. Do not permit those systems to modify the
# configuration of this service. Also, do not use those
# systems as peers for synchronization.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# --- OUR TIMESERVERS -----
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool ( http://www.pool.ntp.org/join.html)
结果还是一样
用ntpdate -d提示错误
[root@inth-rac02 ~]# ntpdate -d
29 Nov 23:10:01 ntpdate[8073]: ntpdate 4.2.0a@1.1190-r Wed Apr 23 07:36:43 EDT 2008 (1)
29 Nov 23:10:01 ntpdate[8073]: no servers can be used, exiting