Solved

ntp client not working on - while server running fine

Posted on 2013-06-19
7
684 Views
Last Modified: 2013-06-28
Hi All,

I am facing issues while configuring ntp client - my server running fine but when i am configuring

ntp client on my client machine its not working - tell me what could be the possible cause and how to troubleshoot it?
0
Comment
Question by:apunkabollywood
7 Comments
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 150 total points
ID: 39259014
Hi, could be firewall related. Are you running a physical or virtual Linux server? You have to make sure port 123 is allowed through the firewall.

What error do you get from your ntp client?
0
 
LVL 4

Assisted Solution

by:apreed
apreed earned 50 total points
ID: 39259025
How do you know the client is not working? Any errors or logs? What NTP server is it configured with? Can you use the "nc" command to see the NTP server on UDP port 123?
0
 
LVL 6

Accepted Solution

by:
xeroxzerox earned 200 total points
ID: 39259029
hi,

Make sure the following line exists in /etc/ntp.conf

server ntp.server.com  {you can also try with IPaddress like this}
server 192.168.X.X
 
#restart ntp service

Update your firewall settings, open /etc/sysconfig/iptables.
Add the following line

-A RH-Firewall-1-INPUT -s 192.168.X.X/24 -m state --state NEW -p udp --dport 123 -j ACCEPT

restart ntpd service
service iptables save
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:apunkabollywood
ID: 39263200
we have no firewall enabled and servers ntp working fine but still on client side it dosent give any output of ntpq -p - no strange logs too any other way to find the issue behind this ?
0
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 150 total points
ID: 39264491
If you haven't already try: service ntpd restart and then: ntpq -pd
0
 
LVL 3

Assisted Solution

by:rajeev2353
rajeev2353 earned 100 total points
ID: 39265394
hi

if you are using to  dhcp server and client connect to dhcp

please enter the some line in dhcp.conf file

#vi /etc/dhcp.conf
option ntp-servers              ntp server ip;

save this file and restart the service

or if you are not using dhcp server then go to client system
click to time & date then click internet zone and enter the ntp server ip and update it.
0
 

Author Closing Comment

by:apunkabollywood
ID: 39285287
Thank you all and it works some problem was with DNS too.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now