Find the answer to your Linux question:
Results 1 to 4 of 4
Hey! i'm sure that the NTP issue has been mentioned several times.. but i could not find my specific problem.. i'll brief you about my situation.. im running 3 HP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2

    NTP Bridge between Win & Lin


    Hey!

    i'm sure that the NTP issue has been mentioned several times.. but i could not find my specific problem..

    i'll brief you about my situation..

    im running 3 HP ProLiant Towers with ProxMox VE (Open Source!!!) i have 15 VM's on each Tower (Windows, RedHat, Fedora & Mandriva) + 4 HP Workstations running RedHat 3 now i have to create an NTP server for all of the VM's on the Tower's.. i used all 4 Workstation as peers - and all of the Linux Machines are perfectly synced. ntpq -p results working and the "date" command is at the second perfect.. So i am not doubting my .conf files...but i could be wrong... so the problem is this, all windows VM's are running on a different VLAN, i have just one XP machine that i want to use as a Bridge for the NTP server, he has 2 NIC's one on the NTP range and one for the other Windows VM's so my idea was to let the XP machine sync the time with the peers and then become at the same time the server for the rest of the Windows VM's... the situation is strange because the ntp server monitor (meinberg) shows me that he is syncing with the peer - and he has the right time but on his own IP he won't sync all values are "0" and the consequent of that is that no Win VM has the right time... i will past all of my .conf files - lets see if someone can give me a hand...

    ntp.conf (server linux machines)


    server SERVER1 minpoll 0 maxpoll 0
    server SERVER2 minpoll 0 maxpoll 0
    server SERVER3 minpoll 0 maxpoll 0
    server SERVER4 minpoll 0 maxpoll 0

    server 127.127.1.0 minpoll 2 maxpoll 6
    fudge 127.127.1.0 stratum 0

    peer SERVER1 minpoll 2 maxpoll 6
    peer SERVER2 minpoll 2 maxpoll 6
    peer SERVER3 minpoll 2 maxpoll 6
    peer SERVER4 minpoll 2 maxpoll 6

    restrict 0.0.0.0 netmask 0.0.0.0 ignore
    restrict 127.0.0.1 netmask 255.255.255.255
    restrict SERVER1 netmask 255.255.255.255
    restrict SERVER2 netmask 255.255.255.255
    restrict SERVER3 netmask 255.255.255.255
    restrict SERVER4 netmask 255.255.255.255

    ------------------------------------------------------------------------------------------------------

    ntp.conf (client linux machines)

    server 127.127.1.0 minpoll 2 maxpoll 6
    fudge 127.127.1.0 stratum 12

    server SERVER1 minpoll 0 maxpoll 0
    server SERVER2 minpoll 0 maxpoll 0
    server SERVER3 minpoll 0 maxpoll 0
    server SERVER4 minpoll 0 maxpoll 0

    peer SERVER1 minpoll 2 maxpoll 6
    peer SERVER2 minpoll 2 maxpoll 6
    peer SERVER3 minpoll 2 maxpoll 6
    peer SERVER4 minpoll 2 maxpoll 6

    ------------------------------------------------------------------------------------------
    ntp.conf (windows server / client bridge)


    server 192.168.1.1 minpoll 0 maxpoll 0
    server 192.168.1.2 minpoll 0 maxpoll 0
    server 192.168.1.3 minpoll 0 maxpoll 0
    server 192.168.1.4 minpoll 0 maxpoll 0
    server 192.168.10.1 minpoll 0 maxpoll 0 (different range because he has to transmit the time on a different vlan!)

    server 127.127.1.0 minpoll 2 maxpoll 6
    fudge 127.127.1.0 stratum 0

    peer 192.168.1.1 minpoll 2 maxpoll 6
    peer 192.168.1.2 minpoll 2 maxpoll 6
    peer 192.168.1.3 minpoll 2 maxpoll 6
    peer 192.168.1.4 minpoll 2 maxpoll 6
    peer 192.168.10.1 minpoll 2 maxpoll 6 (different range because he has to transmit the time on a different vlan!)

    restrict 0.0.0.0 netmask 0.0.0.0 ignore
    restrict 127.0.0.1 netmask 255.255.255.255
    restrict 192.168.1.1 netmask 255.255.255.255
    restrict 192.168.1.2 netmask 255.255.255.255
    restrict 192.168.1.3 netmask 255.255.255.255
    restrict 192.168.1.4 netmask 255.255.255.255
    restrict 192.168.10.1 netmask 255.255.255.255 (different range because he has to transmit the time on a different vlan!)

    ---------------------------------------------------------------------------------------------------------

    ntp.conf (client windows)

    server 127.127.1.0 minpoll 2 maxpoll 6
    fudge 127.127.1.0 stratum 12

    server 192.168.10.1 minpoll 0 maxpoll 0

    peer 192.168.10.1 minpoll 2 maxpoll 6


    as mentioned before, the Linux machines are perfect - the problem is that the xp vm does not sync it self as server to pass the right time to all the VM's in its VLAN.

    any idea's ???

    thank you...

    Ri

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,173
    Your VMs will get their base time from the host, so don't bother with NTP for the VMs. Just make sure the host has ntpd running and is kept synchronized with some reasonable time base, such as NIST.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2
    i wish it would be that simple.

    all of my host's and vm's are offline they are a test bed that has to stay OFF LINE! + they are all in the Greenwich Time zone (and we are in rome here!) and all have to be synced perfectly in order for the application to run.

    any idea's ?

    thanks

    Ri

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,173
    All you need is one host that is kept sync'd with the global time base, and that can be an NTP server for all the others.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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