DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   *nix Hardware Configuration (http://www.daniweb.com/forums/forum119.html)
-   -   How To Configure Ntp (time Server) On Red Hat (http://www.daniweb.com/forums/thread71009.html)

bintang Feb 8th, 2007 1:46 pm
How To Configure Ntp (time Server) On Red Hat
 
Dear ALL,

This forum helps me much..and I thank you to everyone who makes this forum useful, even enjoyable.
i'd like to ask to all of you, HOW TO CONFIGURE NTP (TIME SERVER) on Red Hat Linux.?

I've been trying to setting the NTP across my network, but I never make it done.

PS: My computers not connect to Internet, so please let me know how to configure the NTP only on my Local Area Network.

Thnanks a lot for your next reply.

TKS Mar 6th, 2007 6:35 pm
Re: How To Configure Ntp (time Server) On Red Hat
 
Configuring NTP locally is pointless because it will not be able to update from the main pool of time servers which are on the internet.

Really, this is like having a DNS server without the internet as well...which is pretty pointless as well.

But if you still think this is a good idea (which, if it cannot update itself via the internet at the beginning...the ntp server will only show the time that you set it to be)

yum -y install ntp

Open up /etc/ntp.conf and configure it to your liking.

xs2rmittal Jul 17th, 2009 3:06 am
Re: How To Configure Ntp (time Server) On Red Hat
 
Hi,

Can you tell me what should be written in /etc/ntp.conf file for server and client.

Assume my server IP is 192.16.81.10 and client IP is 192.16.81.9.
I do not want any authentication.

I need to synchronize this setup on an urgent basis, so any help is really appreciated.



Quote:

Originally Posted by TKS (Post 325873)
Configuring NTP locally is pointless because it will not be able to update from the main pool of time servers which are on the internet.

Really, this is like having a DNS server without the internet as well...which is pretty pointless as well.

But if you still think this is a good idea (which, if it cannot update itself via the internet at the beginning...the ntp server will only show the time that you set it to be)

yum -y install ntp

Open up /etc/ntp.conf and configure it to your liking.


amaloo047 Nov 18th, 2009 2:36 am
best for u
 
Quote:

Originally Posted by xs2rmittal (Post 920574)
Hi,

Can you tell me what should be written in /etc/ntp.conf file for server and client.

Assume my server IP is 192.16.81.10 and client IP is 192.16.81.9.
I do not want any authentication.

I need to synchronize this setup on an urgent basis, so any help is really appreciated.

on server
# yum install ntp
# chkconfig ntpd on
# vi /etc/ntp.conf
add a line
restrict default ignore
restrict 202.54.1.5 mask 255.255.255.245
server 202.54.1.5
(Replace 202.54.1.5 and mask with actual remote ISP or ntp.org NTP server IP. Save and close the file.)
then client configuration
#vi /etc/ntp.conf
add a line like
server <NTP server IP>
restrict <server IP>mask <subnet mask>
#iptables -F
#ntpdate -b <server IP>
now all is done


All times are GMT -4. The time now is 4:01 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC