Solved

ntp client not working on - while server running fine

Posted on 2013-06-19
7
695 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now