Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: HOWTO: Set Up an NTP Server

  1. #11
    Join Date
    May 2011
    Beans
    11

    Re: HOWTO: Set Up an NTP Server

    Possibly a very stupid question but I'm going to ask it anyway:

    Is it possible to set a Ubuntu machine up as an NTP server without it having any external clocks to reference to?

    The reason I want to do this is that the machine itself has no Internet connectivity, typically, and is used to monitor Customer networks only so is intended to be secured and isolated from the Internet.

    I assume this must be possible but wanted to ask first in case someone can very quickly answer for me.

    Cheers,

    John

  2. #12
    Join Date
    Jan 2011
    Beans
    3

    Re: HOWTO: Set Up an NTP Server


  3. #13
    Join Date
    May 2011
    Beans
    11

    Re: HOWTO: Set Up an NTP Server

    Thanks Thug. After some searching around I had figured this out. Unfortunately it's not helping me much as the Cisco switches I am trying to get to synchronise to my NTP server seem to not want to. They are seeing the stratum correctly (fudge+1) NTP server is directly connected into the switch in the NTP association but they are just refusing to use the server most of the time. On occasion, for no discernible reason, they will synch up but a reboot normally quickly fixes that. Most, most frustrating as if I install an NTP server on my Windows it work every time

  4. #14
    Join Date
    May 2011
    Beans
    11

    Re: HOWTO: Set Up an NTP Server

    Right, I have actually finally figured this out completely and the fault does not lie with the Ubuntu NTP server but rather with the switches. Even though the configuration guide claims that, if the switches are synchronised to an external time source they can provide time for other clients, this appears to be either a lie or there is an undocumented bug. Whenever I try to "serve" time from a switch to another switch for some reason the NTP server becomes unreachable to the original switch. This mean that the swtch become unsynchronised and thus no other switches will then synchronise to it! My fix, albeit not the cleanest ever, is to have all switches use the Linux server as the source for time (there is an IPSec tunnel between the network and the Linux machine hence it's not really a very nice solution!).
    Now, my major problem seems to be that NTP on Ubuntu does not support authentication. Even the restrict part doesn't seem to stop the server sharing time with anything outside of the restrict list. Is there a definitive way to secure NTP, preferably by some sort of key exchange if possible?

    Thanks,

    John

  5. #15
    Join Date
    Mar 2011
    Beans
    33

    Re: HOWTO: Set Up an NTP Server

    Just FYI: ntpd no longer reports synchronization in syslog, or anywhere else. This was relayed to me on the mailing list. Apparently, it was considered too "noisy". So, you should no longer use the "tail -f /var/log/syslog" command to look for entries of the type:

    hostname ntpd[xxxx]: synchronized to x.x.x.x, stratum 2

    to confirm synchronization.

    S.
    Dell Latitude D830, 2.4GHz, 3GB RAM, 80GB HDD, Gigabit LAN

  6. #16
    Join Date
    Jan 2012
    Beans
    1

    Cool Re: HOWTO: Set Up an NTP Server

    Hi,
    I have connected my Ubuntu 11.04 system on a LAN. On the other machine(MC 2) we have Ubuntu 11.04. I wanna sync my computer to (MC 2) with atleast nanosecond precision. Can someone throw some light on it?

  7. #17
    Join Date
    Oct 2005
    Location
    Maryland
    Beans
    50

    Smile Re: HOWTO: Set Up an NTP Server

    by the time we get to Xubuntu 12.04 ntpd seems to be absent from the archives.

    however:

    sudo aptitude install ntp

    installed ntp and allowed me to set Applications>Settings>Time and Date

    to the setting:

    Keep synchronized with Internet servers

    For what it is worth

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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