Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTP always prefer itself as the best

Status
Not open for further replies.

parazhang

MIS
May 13, 2003
42
0
0
US
NTP always prefer itself as the best

I want to use one linux box B as both ntp client and ntp server--

win-ntp-server-B------linux-server-B-------linux-client-C

here is my linux server ntp.conf:
-------------------------------------------
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (server winboxA
#server 1.centos.pool.ntp.org
#server 2.centos.pool.ntp.org

#broadcast 192.168.1.255 key 42 # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 key 42 # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 key 42 # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
-------------------------------------------
[root@linuxboxB~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==================================================
winboxA .LOCL. 4 u 130 256 357 0.427 -259605 238141.
*LOCAL(0).LOCL. 10 l 60 64 377 0.000 0.000 0.001

We can see that the * is one line of LOCAL(0).
Why it use local ntp server but not winboxA?? I have changed A's stratum to 4,it is higher than linux box B's 10.

Thanks in advance.

Regards.

PZ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top