I'm using Linux Debian Wheezy.I have problem to sync time & date between my server & PC,and the ntp servers looks like pointing at itself not internet.In this case,Fig is my NTP server.root@fig [5156]# ntpq -p     remote           refid      st t when poll reach   delay   offset  jitter============================================================================== fig.nta-monitor .INIT.          16 u    - 1024    0    0.000    0.000   0.000My NTP Server ntp.conf file:root@fig [5155]# less /etc/ntp.conf# /etc/ntp.conf, configuration for ntpddriftfile /var/lib/ntp/ntp.driftstatsdir /var/log/ntpstats/statistics loopstats peerstats clockstatsfilegen loopstats file loopstats type day enablefilegen peerstats file peerstats type day enablefilegen clockstats file clockstats type day enableserver 0.my.pool.ntp.org iburstserver 1.my.pool.ntp.org iburstserver 2.my.pool.ntp.org iburstserver 3.my.pool.ntp.org iburstserver 0.asia.pool.ntp.org iburstserver 1.asia.pool.ntp.org iburst# ... and use the local system clock as a reference if all else fails# NOTE: in a local network, set the local stratum of *one* stable server# to 10; otherwise your clocks will drift apart if you lose connectivity.server 127.127.1.0fudge 127.127.1.0 stratum 13# By default, exchange time with everybody, but don't allow configuration.restrict -4 default kod notrap nomodify nopeer noqueryrestrict -6 default kod notrap nomodify nopeer noquery# Local users may interrogate the ntp server more closely.restrict 127.0.0.1 nomodifyThis is the information for my server & clientNTP Server = 192.168.120.104 (Fig) Client = 192.168.120.65 (Banana) Please advice.ThanksNow the issue is why my NTP server used itself as ntp server?This is what I ping for the pool from NTP server(fig)root@fig [5246]# ping 0.my.pool.ntp.orgPING 0.my.pool.ntp.org (202.45.138.123) 56(84) bytes of data.But got reply when i ping to yahoo.comroot@fig [5247]# ping yahoo.comPING yahoo.com (98.138.253.109) 56(84) bytes of data.64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_req=1 ttl=39 time=333 ms64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_req=2 ttl=39 time=332 ms64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_req=3 ttl=39 time=332 ms64 bytes from ir1.fp.vip.ne1.yahoo.com (98.138.253.109): icmp_req=4 ttl=39 time=335 ms^C--- yahoo.com ping statistics ---5 packets transmitted, 4 received, 20% packet loss, time 4003msrtt min/avg/max/mdev = 332.398/333.454/335.464/1.263 msThis is the output when I run ps -ef | grep [n]tp commandroot@fig [5213]# ps -ef | grep [n]tpntp      22526     1  0 13:24 ?        00:00:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -c /var/lib/ntp/ntp.conf.dhcp -u 101:108This is the result when I run ntpdate -qu 202.45.138.123 commandroot@fig [5215]# ntpdate -qu 202.45.138.123server 202.45.138.123, stratum 2, offset -135.572409, delay 0.06105 1 Sep 19:18:29 ntpdate[27420]: step time server 202.45.138.123 offset -135.572409 sec
NTP Servers not Sync with other machines
ntp
Your ntpd is not using your expected configuration file /etc/ntp.conf.Looking at the output of ps -ef | grep [n]tp you can see that the configuration file is /var/lib/ntp/ntp.conf.dhcp, which will probably contain data from DHCP.There are a couple of great answers over on Server Fault that explain how to fix this. The summary is that you need to tell fig not to configure NTP from DHCP.Edit /etc/dhclient.conf and uncomment the line request with  something like this:request subnet-mask, broadcast-address, routers, domain-name, domain-name-servers, host-name;Especially, if ntp-servers is present, remove it. Under some  distribution ( aka Fedora ) it is sent by default, so you have to put  this line explicitly so that the default is overridden.You may also need to remove /var/lib/ntp/ntp.conf.dhcp once you've got a new DHCP lease.