Solved

ntp client not working on - while server running fine

Posted on 2013-06-19
7
707 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 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

726 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