ntpdate works only with -d option - NTP

This is a discussion on ntpdate works only with -d option - NTP ; Hi. I'm having trouble getting ntp set up on my network. If I run ntpdate -d 0.north-america.pool.ntp.org I get lots of very proper looking output like this: server 216.52.237.153, port 123 stratum 2, precision -16, leap 00, trust 000 refid ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: ntpdate works only with -d option

  1. ntpdate works only with -d option

    Hi.

    I'm having trouble getting ntp set up on my network. If I run

    ntpdate -d 0.north-america.pool.ntp.org

    I get lots of very proper looking output like this:

    server 216.52.237.153, port 123
    stratum 2, precision -16, leap 00, trust 000
    refid [216.52.237.153], delay 0.05374, dispersion 0.00017
    transmitted 4, in filter 4
    reference time: c987ef72.c8fb381a Thu, Feb 22 2007 2:31:14.785
    originate timestamp: c987f29a.e403144f Thu, Feb 22 2007 2:44:42.890
    transmit timestamp: c987f384.8d159c49 Thu, Feb 22 2007 2:48:36.551
    filter delay: 0.05443 0.05374 0.05426 0.05534
    0.00000 0.00000 0.00000 0.00000
    filter offset: -233.675 -233.675 -233.675 -233.676
    0.000000 0.000000 0.000000 0.000000
    delay 0.05374, dispersion 0.00017
    offset -233.675759

    Unfortunately, if I run the same as above without -d (trying to actually set
    my system time):

    ntpdate 0.north-america.pool.ntp.org

    I get an error:

    22 Feb 02:50:46 ntpdate[7808]: no server suitable for synchronization
    found

    I'd really like to get ntp working on my machines but I'm at a total loss to
    explain this! Can anyone help?

    Thanks!

    -Will Sheffler
    Baker Lab
    Dept. Genome Sciences
    University of Washington
    _______________________________________________
    questions mailing list
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


  2. Re: ntpdate works only with -d option

    William,

    William Sheffler wrote:
    > I'm having trouble getting ntp set up on my network. If I run
    >
    > ntpdate -d 0.north-america.pool.ntp.org
    >
    > I get lots of very proper looking output like this:

    [...]
    > Unfortunately, if I run the same as above without -d (trying to actually
    > set my system time):
    >
    > ntpdate 0.north-america.pool.ntp.org
    >
    > I get an error:
    >
    > 22 Feb 02:50:46 ntpdate[7808]: no server suitable for synchronization
    > found
    >
    > I'd really like to get ntp working on my machines but I'm at a total loss
    > to explain this! Can anyone help?


    If you run ntpdate with -d or -q then it sends it request to the server from
    an unpriviledged port.

    If none of those parameters are used it sends its request from the standard
    NTP port 123, which is a priviledged port (this also prevents using ntpdate
    if ntpd is already running since then port 123 is has already been opened
    by ntpd).

    Sounds like a firewall and/or router/NAT problem which doesn't allow
    outgoing and/or incoming UDP packets on port 123.

    Martin
    --
    Martin Burnicki

    Meinberg Funkuhren
    Bad Pyrmont
    Germany

+ Reply to Thread