Request for help in NTP Sync between Windows and Ubuntu

Anonymous
2024-08-20T09:41:18+00:00

I'm facing an issue with time synchronization between my Windows PC and an Ubuntu NTP server for a month now and I wanted to ask for some help. Here's my setup and what I've tried so far:

Setup: Ubuntu PC:

  • IP Address: 1**.***.*.**0
  • NTP Server: ntpd running and synchronized with multiple servers.
  • Firewall (UFW): Disabled

Windows PC:

  • IP Address: 192.***.*.**
  • Windows Time service (w32time): Running
  • Firewall: Added rule to allow UDP traffic on port 123

Steps Taken: Ubuntu NTP Configuration: Added the following lines to /etc/ntp.conf:

restrict 192.***.*.* mask 255.255.255.0 nomodify notrap
server 0.ubuntu.pool.ntp.org iburst
server 1.ubuntu.pool.ntp.org iburst
server 2.ubuntu.pool.ntp.org iburst
server 3.ubuntu.pool.ntp.org iburst

Restarted NTP service: (sudo systemctl restart ntp). Verified NTP status (ntpq -p) shows synchronization with upstream servers.

Windows Configuration: Added firewall rule to allow NTP traffic:

netsh advfirewall firewall add rule name="Allow NTP" protocol=udp dir=in localport=123 
action=allow

Configured NTP server:

w32tm /config /manualpeerlist:1**.***.*.*** /syncfromflags:manual /reliable:YES /update

Restarted Windows Time service:

net stop w32time
net start w32time

Resynchronization:

w32tm /resync

Issue: Despite these configurations, my Windows PC continues to use the local CMOS clock as the time source. The output of w32tm /query /status shows:

Source: Local CMOS Clock
ReferenceID: 0x4C4F434C (LOCL)
Stratum: 1

Running w32tm /stripchart /computer:1**.***.*.**0 /samples:5 /dataonly results in timeout errors:

Tracking 1**.***.*.**0 [1**.***.*.**0:123].
Collecting 5 samples.
The current time is 19/08/2024 14:57:27.
14:57:27, +1956.0418399s
14:57:29, +1956.0418009s
14:57:31, +1956.0417711s
14:57:33, +1956.0417003s
14:57:35, +1956.0416871s

PS C:\WINDOWS\system32> w32tm /query /peers 

#Peers: 1 
Peer: 1**.***.*.**0 
State: Pending 
Time Remaining: 0.0000000s 
Mode: 0 (reserved) 
Stratum: 0 (unspecified) 
PeerPoll Interval: 0 (unspecified) 
HostPoll Interval: 0 (unspecified)

Additional Information:

  1. I can ping the Ubuntu PC from the Windows PC without any issues.
  2. The Ubuntu NTP server is synchronized with its upstream servers.
  3. On Ubuntu, sudo iptables -L INPUT -v -n returns the default policy is ACCEPT.
  4. Using a second Windows PC on a different network (10.221.xx.xx), I am able to sync successfully, but not using the 192.168.0.x network.

More Details :

  • Microsoft Windows 10 Enterprise OS Version: 10.0.18362 N/A Build 18362 System Manufacturer: System Model: System Type: x64-based PC Processor(s): 1 Processor(s) Installed.
  • BIOS Version: American Megatrends Inc. 5.12, 05/03/2018
  • Time on Windows : 2024-08-19 23:22:13
  • Time on Ubuntu : Mon 19 Aug 2024 11:54:59 PM +08 ( I had set the time to be few minutes behind the ubuntu to check if the synchronisation is taking place)
  • Microsoft Windows : [Version 10.0.18362.356]
  • Enabled Windows Time Service debug logging.(But not sure how to use it)

Any advice on why the Windows PC isn't syncing with the Ubuntu NTP server and continues to use the local CMOS clock? Are there additional configurations or diagnostics I should try on the Windows side? Is there anything specific to the 192.168.0.x network that could be causing this issue? I have been trying to resolve this for 1 month now and would greatly appreciate any help or insights. Thank you.

***Personal information deleted by the moderator. Please see the *Microsoft Community Frequently Asked Questions* for more information on how you can protect your privacy.***

***Moved from Windows / Windows 10 / Settings***

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-22T06:58:19+00:00

    Hello,

    Thank you for posting in Microsoft Community forum.

    Based on your description, this issue is beyond the scope of our support.

    To be able to get a quick and effective handling of your issue, I recommend that you repost your question in the stackexchange, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for stackexchange.

    https://networkengineering.stackexchange.com/questions/tagged/bgp

    Click the "Ask a Question" button in the upper right corner to post your question and select tags related to your products.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    

    Regards,

    Jill Zhou

    0 comments No comments
  2. Anonymous
    2024-08-22T07:14:50+00:00

    Hi Jill,

    Thank you for your reply.

    Okay I will post it on StackExchange.

    0 comments No comments
  3. Anonymous
    2024-08-26T02:37:23+00:00

    Hi Jill,

    There was a question I was curious about.

    I have tried a lot but I have been unable to resolve despite trying numerous solutions. I'm wondering if upgrading to Windows 11 might solve the problem. For context, here are the current specifications of my machine:

    • OS: Microsoft Windows 10 Enterprise
    • Version: 10.0.18362 N/A Build 18362
    • System Type: x64-based PC
    • Processor: 1 Processor Installed

    It's worth noting that the system hasn't been updated since September 2019 (Version 10.0.18362.356) and has been offline for an extended period.

    Given these circumstances, do you think a Windows 11 upgrade could be a viable solution?

    I'd greatly appreciate your insights on this matter.

    Thank you for your time and expertise.

    0 comments No comments