LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   NTP Local Server Configuration (http://www.linuxquestions.org/questions/red-hat-31/ntp-local-server-configuration-492396/)

saqis 10-14-2006 02:09 PM

NTP Local Server Configuration
 
Hello,
I have total 4 servers on which Redhat AS 3.0 installed all server time are different with each other, i want to sync one time to all servers..for that i want to use ntp server configuration...As there is no internet connection..so from these 4 server ..i have to made one local ntp server and the rest its client ntp servers...As i want steps how to configure local ntp server and its client so that the time appears to be same in all servers.. the ip address and host name are as follows

for ntp server
ip=172.22.36.110 hostname=ABC_UDB01
for client ntp servers
ip=172.22.36.112 hostname=ABC_UDB02
ip=172.22.36.114 hostname=ABC_UAPP01
ip=172.22.36.116 hostname=ABC_UAPP02

so kindly tell me steps so that i can configure ntp server and ntp client on Redhat Linux AS 3.0

Waiting for your reply as soon as poosible

Omer Fadul 10-16-2006 05:45 AM

NTP Configuration
 
hi,
for ntp server configuration:
choose one of ur server to be your primary NTP server i.e. 172.22.36.110. then follow the following instructions:
1- backup current configuration file: cp /etc/ntp.conf ~ntp/ntp.conf.yymmdd.UID
2- Specify the servers you are interested on them to the configuration file"/etc/ntp.conf":
server 127.0.0.1.
3- Restrict the type of access you allow these servers:
restrict 172.22.36.0 mask 255.255.255.0 notrust nomodify notrap
4- Restart the ntpd server:
/etc/init.d/ntpd restart
On the client side:
1- repeate step 1
2- repeate step 2 but change 127.0.0.1 to map to your ntp server.
3- repeate step 3 and 4.
4- Synchronize your local time with the server(do it 3 times):
ntpdate -u 172.22.36.112
5- Determining if the NTP is synchronized properly
ntpq p
thats all folks.


All times are GMT -5. The time now is 12:30 PM.