Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-16-2007, 01:18 AM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 12
Rep:
|
NTP time sync with windows 2000 AD time
I have 5 servers running on RHEL 4 update 4, namely L2, L6, L15, L16 and L18. All the servers are running in NTP for time synchronization. L6, L15, L16 and L18 are synchronizing time from L2. There is no issue in it.
But my requirement is to synchronize time of L2 with windows 2000 AD Time running on U1 server, which is synchronized with some NTP Server. An NTP service is running on U1. In the ntp.conf of L2 has been directed to sync time from U1 but it is always sync to local.
[root@l2 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
===============================================================
u1.xxxad.com 0.0.0.0 2 u 51 64 0 0.000 0.000 4000.00
*LOCAL(0) LOCAL(0) 3 l 50 64 37 0.000 0.000 0.004
Now, What I like know is how to synchronize with Windows 2000 AD time? What changes required in ntp.conf in L2, if any, or what are the parameters or services needs to be checked in U1 so that it can sync L2?
my ntp.conf as follows:
restrict default nomodify notrap noquery
restrict 127.0.0.1
# - CLIENT NETWORK -------
#restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
# --- OUR TIMESERVERS -----
#server 0.pool.ntp.org iburst
#server 1.pool.ntp.org iburst
#server 2.pool.ntp.org iburst
server u1.xxxad.com.sg iburst
server 127.127.1.0
# --- NTP MULTICASTCLIENT ---
# --- GENERAL CONFIGURATION ---
# Undisciplined Local Clock.
fudge 127.127.1.0 stratum 3
# Drift file.
driftfile /var/lib/ntp/drift
broadcastdelay 0.004
# Keys file.
keys /etc/ntp/keys
Please don’t hesitate if you require further clarification. Thanking you in advance.
|
|
|
04-17-2007, 10:54 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
I think the problem is that the Windows machine may be synchronizing but it isn't running the NTP server service. If it were running NTP server service then you would just be able to point the NTP client on Linux to that Windows machine. If that isn't working then I think that the Windows machine needs to be configured as an NTP server.
http://support.microsoft.com
Or maybe the Linux box needs to be a member of the AD. That would probably require the use of Samba on the Linux box.
Last edited by stress_junkie; 04-17-2007 at 11:02 AM.
|
|
|
04-17-2007, 01:18 PM
|
#3
|
Member
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174
Rep:
|
IIRC, Windows Time Service might only be a SNTP server, and not a full NTP server. There's no problem for a SNTP client to sync time with a NTP server, but I'm not sure if its possible for an NTP client to sync time with a SNTP server.
|
|
|
04-18-2007, 03:33 AM
|
#4
|
LQ Newbie
Registered: Jul 2006
Posts: 12
Original Poster
Rep:
|
Thank you for a quick reply.
I am providing some more details that may help you.
SNTP service running on windows2000.
The nmap -sU on u1 server output is as follows:
123/udp open|filtered ntp
but the ntptrace output as follows
[root@l2 ~]# ntptrace u1.xxxad.com.sg
u1.xxxad.com.sg: timed out, nothing received
***Request timed out
All the servers in same domain i.e., xxxad.com.sg
What are the alternative to time sync with ADtime.
|
|
|
04-18-2007, 08:13 AM
|
#5
|
Member
Registered: Nov 2006
Posts: 344
Rep:
|
When I was stuck with AD in addition to Unix boxes I would just sync them to the same source...
|
|
|
04-19-2007, 07:24 AM
|
#6
|
LQ Newbie
Registered: Jul 2006
Posts: 12
Original Poster
Rep:
|
Thanks for your suggestion. But unfortunately I dont want to sync to the same source. Also I feel that there is no other solution available.
|
|
|
04-24-2007, 02:10 AM
|
#7
|
LQ Newbie
Registered: Jul 2006
Posts: 12
Original Poster
Rep:
|
Hey guys,
I have got the solution and support from RedHat and it really worked out the way I just require. I have just used the net TIME SET command. This is just share with all of you.
Thanks you all.
|
|
|
02-24-2012, 03:46 PM
|
#8
|
LQ Newbie
Registered: Feb 2012
Posts: 8
Rep:
|
FYI for late readers
net time set -I ipaddressofyouradserver
works quite nicely for me. I have a phone system purposely VLANed out of being able to contact NTP servers on the internet. The CEO complains that the time on the phone system (CENTOS) is off by minutes. Routing is set up so that it can communicate to the other subnet. This fix worked great.
|
|
|
All times are GMT -5. The time now is 11:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|