Results 1 to 6 of 6

Thread: NPT Server - NTP Client no syn

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default NPT Server - NTP Client no sync

    hi guys

    since I got a secure area my linux servers don't not have internet connection at all...

    so I've configured an NTP Linux server with this configuration but my NTP Linux Client are not syns the time with the NTP Server

    network: 192.168.3.0

    1. I sync my NTP server to itselft
    Code:
    # ntpdate -du ntpserver
    #service ntpd start
    2. I syn my linux clients
    Code:
    # ntpdate -du ntpserver
    ntp service for clients is stop

    now my NTP server configuration

    --------------------------------------------
    Code:
    # Permit time synchronization with our time source, but do not
    # permit the source to query or modify the service on this system.
    restrict default kod nomodify notrap nopeer noquery
    restrict -6 default kod nomodify notrap nopeer noquery
    
    # 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 -6 ::1
    
    # Hosts on local network are less restricted.
    restrict 192.168.3.0 mask 255.255.255.0 nomodify notrap
    
    # Use public servers from the pool.ntp.org project.
    # Please consider joining the pool (http://www.pool.ntp.org/join.html).
    
    #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
    
    # Drift file.  Put this in a directory which the daemon can write to.
    # No symbolic links allowed, either, since the daemon updates the file
    # by creating a temporary in the same directory and then rename()'ing
    # it to the file.
    driftfile /var/lib/ntp/drift
    
    # Key file containing the keys and key identifiers used when operating
    # with symmetric key cryptography.
    keys /etc/ntp/keys
    --------------------------------------------

    when I run to sync my clients
    Code:
    #ntpdate -du ntpserver
    results see the last line it says client is not sync by 87 secs...so what I have to do? which command so the time in my NTP client is the same as my NTP server?

    Code:
    13 Feb 15:19:14 ntpdate[7820]: ntpdate 4.2.2p1@1.1570-o Thu May 14 13:00:58 UTC 2009 (1)
    Looking for host ntpserver and service ntp
    host found : ntpserver
    transmit(192.168.3.2)
    receive(192.168.3.2)
    transmit(192.168.3.2)
    receive(192.168.3.2)
    transmit(192.168.3.2)
    receive(192.168.3.2)
    transmit(192.168.3.2)
    receive(192.168.3.2)
    transmit(192.168.3.2)
    server 192.168.3.2, port 123
    stratum 11, precision -20, leap 00, trust 000
    refid [192.168.3.2], delay 0.02582, dispersion 0.00012
    transmitted 4, in filter 4
    reference time:    cf2195ee.d011023f  Sat, Feb 13 2010 15:19:42.812
    originate timestamp: cf219629.6559ce6f  Sat, Feb 13 2010 15:20:41.395
    transmit timestamp:  cf2195d2.35601ffb  Sat, Feb 13 2010 15:19:14.208
    filter delay:  0.02824  0.02586  0.02582  0.02585 
             0.00000  0.00000  0.00000  0.00000 
    filter offset: 87.18836 87.18729 87.18728 87.18726
             0.000000 0.000000 0.000000 0.000000
    delay 0.02582, dispersion 0.00012
    offset 87.187280
    
    13 Feb 15:19:14 ntpdate[7820]: step time server 192.168.3.2 offset 87.187280 sec
    thanks a lot
    Last edited by kopper; 14th February 2010 at 02:28 AM.

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Hyderabad, AP, India
    Posts
    806
    Thanks
    44
    Thanked 55 Times in 48 Posts
    Rep Power
    13

    Default

    I am not good at NTP server.. but you can try below steps.. for debugging..

    1)try register your machine with out any options..

    Code:
    ntpdate ntp-server
    2)Try to check logs at this time on both the machines such as
    /var/log/messages and /var/log/ntp etc..

    3)Try using TCPdump to check how communication happening..

    Let us know the status..
    Thanks,
    Surendra Kumar Anne
    Linux: Fast, friendly, flexible and .... free!
    Support Open source.
    http://www.linuxnix.com

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 804 Times in 511 Posts
    Rep Power
    10

    Default

    CentOS / Red Hat Configure an NTP Client And Server

    Follow above tutorial and if you still have problem post it back an error message.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  4. #4
    Junior Member
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by nixcraft View Post
    CentOS / Red Hat Configure an NTP Client And Server

    Follow above tutorial and if you still have problem post it back an error message.

    but that tutorial is when you have the chance to connect your NTP Server to external atomic clocks on internet in my case I don't have that chance and tutorial does not mention how to do it

  5. #5
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 804 Times in 511 Posts
    Rep Power
    10

    Default

    Quote Originally Posted by kopper View Post
    but that tutorial is when you have the chance to connect your NTP Server to external atomic clocks on internet in my case I don't have that chance and tutorial does not mention how to do it
    Your NTPD will connect to one external server to keep its clock in sync.
    All your ntp clients on LAN will connect to your NTPD server.
    This is how it works. How will your ntpd server keep correct time? Are you without the Internets for NTPD server?
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  6. #6
    Junior Member
    Join Date
    Nov 2009
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by nixcraft View Post
    Your NTPD will connect to one external server to keep its clock in sync.
    All your ntp clients on LAN will connect to your NTPD server.
    This is how it works. How will your ntpd server keep correct time? Are you without the Internets for NTPD server?

    yeah no internet access at all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to install and configure NFS on Server and Client
    By Santosh Sharma in forum Getting started tutorials
    Replies: 4
    Last Post: 20th August 2014, 10:32 PM
  2. Login Windows Client in SLES Server
    By subakaran in forum Novell Suse / OpenSuse
    Replies: 1
    Last Post: 13th February 2009, 06:44 AM
  3. Squid server and outlook client
    By santanu.santanu in forum Getting started tutorials
    Replies: 2
    Last Post: 4th July 2008, 09:57 AM
  4. Client-Server Programming in TCP
    By sureshvaikundam in forum Networking, Firewalls and Security
    Replies: 0
    Last Post: 8th April 2008, 05:57 PM
  5. Faxing server and client
    By satimis in forum Ubuntu / Debian
    Replies: 0
    Last Post: 21st March 2008, 08:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •