ntp problem :(
Hello, I use a FreeBSD 5.3. I want to synchronize my 2 machines. I tried to connect to a ntp server, but I couldn't. When I type this command "ntpdate -v ntp.imag.fr", I have the following message: "host found ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ...no server suitable for synchronization found" I tried also with adding the server name to ntp.conf and typing this command "/etc/rc.d/ntpdate restart", but I have the same message. the ping to ntp.imag.fr responds very good have you some idea? may be perhaps I have a proxy , but I don't know what I must doing to synchronize my machines. Can you help me please? Many thanks, Souha ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ntp problem
Hi, Running FreeBSD 5.3 IN /etc/ntp.conf I have: server time.nist.gov prefer server tock.gpsclock.com driftfile /etc/ntp.drift logfile /var/log/ntp.log If I run ntpdate from a prompt, I get the following error message: # ntpdate 20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting But if I type: ntpdate time.nist.gov it will update the time. Is there something wrong with my /etc/ntp.conf file? Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ntp problem :(
bannour souha wrote: Hello, I use a FreeBSD 5.3. I want to synchronize my 2 machines. I tried to connect to a ntp server, but I couldn't. When I type this command "ntpdate -v ntp.imag.fr", I have the following message: "host found ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ntpdate (imag.imag.fr) : No route to host ...no server suitable for synchronization found" I tried also with adding the server name to ntp.conf and typing this command "/etc/rc.d/ntpdate restart", but I have the same message. the ping to ntp.imag.fr responds very good have you some idea? may be perhaps I have a proxy , but I don't know what I must doing to synchronize my machines. Can you help me please? Many thanks, Souha the NTP server is not the cause of your problem it seems that *your* machine hasen't a direct access to the Internet. ( no route to host ) -- Cordialement/Regards Frank Bonnet ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ntp problem :(
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bonnet > Sent: Thursday, September 15, 2005 7:12 AM > To: bannour souha > Cc: freebsd-questions@freebsd.org > Subject: Re: ntp problem :( > > > bannour souha wrote: > > Hello, > > > > I use a FreeBSD 5.3. I want to synchronize my 2 > > machines. I tried to connect to a ntp server, but I > > couldn't. When I type this command "ntpdate -v > > ntp.imag.fr", I have the following message: > > "host found > > ntpdate (imag.imag.fr) : No route to host > > ntpdate (imag.imag.fr) : No route to host > > ntpdate (imag.imag.fr) : No route to host > > ntpdate (imag.imag.fr) : No route to host > > ...no server suitable for synchronization found" > > > > I tried also with adding the server name to ntp.conf > > and typing this command "/etc/rc.d/ntpdate restart", > > but I have the same message. > > the ping to ntp.imag.fr responds very good > > > > have you some idea? may be perhaps I have a proxy > > , but I don't know what I must doing to synchronize my > > machines. > > Can you help me please? > > > > Many thanks, > > Souha > > the NTP server is not the cause of your problem > it seems that *your* machine hasen't a direct > access to the Internet. ( no route to host ) > -- > Cordialement/Regards > Frank Bonnet Hmm, pinging from here I see that ntp.imag.fr = imag.imag.fr = 129.80.30.1 so if you can ping that address then you have low level connectivity. One possibility is that something in the middle is blocking port 37. First do a traceroute and see what is in your route to ntp.imag.fr. Could one of the hops stop your ntpdate request? E.g. a firewall? Are you sure that the time service is running? Can you get to it from another machine? Does ntp.imag.fr require that you register to use ntp? If so, their firewall would block you until you register. -gayn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ntp problem :(
> > Hmm, pinging from here I see that ntp.imag.fr = imag.imag.fr = > 129.80.30.1 so if you can ping that address then you have low level > connectivity. One possibility is that something in the middle is Apparently ntpdate is trying to use the IPv6 address that ntp.imag.fr publishes. I don't know how to tell ntpdate to use only IPv4 addresses, so a workaround is to use the IPv4 address directly. ntpdate -v 129.88.30.1 -- Noel Jones ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ntp problem
Lisa Casey wrote: Running FreeBSD 5.3 IN /etc/ntp.conf I have: server time.nist.gov prefer server tock.gpsclock.com driftfile /etc/ntp.drift logfile /var/log/ntp.log If I run ntpdate from a prompt, I get the following error message: # ntpdate 20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting But if I type: ntpdate time.nist.gov it will update the time. Is there something wrong with my /etc/ntp.conf file? Give it some time (15-20 minutes or so). It will start to work like magic. -- Frederique ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ntp problem
Lisa Casey wrote: Hi, Running FreeBSD 5.3 IN /etc/ntp.conf I have: server time.nist.gov prefer server tock.gpsclock.com driftfile /etc/ntp.drift logfile /var/log/ntp.log If I run ntpdate from a prompt, I get the following error message: # ntpdate 20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting But if I type: ntpdate time.nist.gov it will update the time. Is there something wrong with my /etc/ntp.conf file? I don't believe ntpdate uses ntp.conf. Try ntpd -q I don't have 5 running anywhere anymore, but if you read the man pages for 6.3, it's clear that ntpdate is depreciated and on its way out. Or you could just run ntpd as a daemon to maintain your time. -- --Jon Radel j...@radel.com smime.p7s Description: S/MIME Cryptographic Signature
Re: ntp problem
Lisa Casey wrote: > Hi, > > Running FreeBSD 5.3 IN /etc/ntp.conf I have: > > server time.nist.gov prefer > server tock.gpsclock.com > driftfile /etc/ntp.drift > logfile /var/log/ntp.log > > If I run ntpdate from a prompt, I get the following error message: > > # ntpdate > 20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting > > But if I type: > > ntpdate time.nist.gov it will update the time. Is there something wrong > with my /etc/ntp.conf file? > > Lisa Casey /etc/ntp.conf is for ntpd Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ntp problem
Jon Radel wrote: > Lisa Casey wrote: >> Hi, >> >> Running FreeBSD 5.3 IN /etc/ntp.conf I have: >> >> server time.nist.gov prefer >> server tock.gpsclock.com >> driftfile /etc/ntp.drift >> logfile /var/log/ntp.log >> >> If I run ntpdate from a prompt, I get the following error message: >> >> # ntpdate >> 20 Apr 12:02:08 ntpdate[50109]: no servers can be used, exiting >> >> But if I type: >> >> ntpdate time.nist.gov it will update the time. Is there something >> wrong with my /etc/ntp.conf file? > > I don't believe ntpdate uses ntp.conf. Try ntpd -q > > I don't have 5 running anywhere anymore, but if you read the man pages > for 6.3, it's clear that ntpdate is depreciated and on its way out. > > Or you could just run ntpd as a daemon to maintain your time. Exactly. If you wish to use your /etc/ntp.conf file, add this to /etc/rc.conf: ntpd_enable="YES" and start it with /etc/rc.d/ntpd start check /var/log/messages to see when it kicks in. It normally takes some time before it does the first correction. You will see messages like this: Apr 20 18:41:46 atlantis ntpd[783]: time reset +0.416117 s Apr 20 18:41:46 atlantis ntpd[783]: kernel time sync status change 2001 and then you will know it is working. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ntp problem
Thanks guys, I did have ntpd and ntpdate confused. I have things working now. Lisa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ntp problem
On Apr 20, 2009, at 11:19 AM, Lisa Casey wrote: Running FreeBSD 5.3 IN /etc/ntp.conf I have: server time.nist.gov prefer server tock.gpsclock.com Your actual question has already been answered, but I'd like to point out that people really shouldn't be using those NTP servers unless you have a very specific reason to. You will get just as good (or better) time and help distribute load if you use server 0.north-america.pool.ntp.org server 1.north-america.pool.ntp.org server 2.north-america.pool.ntp.org server 3.north-america.pool.ntp.org (I'm assuming that north-america is appropriate for you given you current setting). And if you have a static IP address and a reliable connection and server (good network uptime), please consider joining the pool. It takes negligible resources. http://www.pool.ntp.org/en/join.html And more information about this pool of NTP servers is available at http://www.pool.ntp.org/ -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"