configuring an NTP client/server


 
Thread Tools Search this Thread
Operating Systems Linux configuring an NTP client/server
# 1  
Old 10-30-2009
configuring an NTP client/server

I need to configure an NTP daemon on a "bridge-PC" connected on 2 LANs. It is expected to read the correct time on a time server on the first LAN and behave as a server for the second LAN.
Can I do both the things with ntpd?
In other words, is ntpd able to work as client and server at the same time?
I've configured ntp.conf with the external NTP server address on the first LAN, and inserted ./ntdp in the rc.local. The daemon runs correctly, it reads and updates its time, but the other PCs in the second LAN (the "internal"one) do not recognize the "bridge-PC" as an NTP server (even if they are able to ping it).

What should be going wrong?

Thanks,
M.
# 2  
Old 10-30-2009
Quote:
is ntpd able to work as client and server at the same time?
Yes. This is a fairly common configuration.

On your 'bridge-PC" you need to configure ntpd to allow the ntp clients on the second lan to get their information from it. Typically this is done by adding a line such as
Code:
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap

The ntp clients on the second lan should be configured to point to the "bridge-PC"
Code:
server bridge-PC

# 3  
Old 10-31-2009
Thanks! I suppose that line should be added in the ntp.conf, isn't it?
Should I add anything to rc.conf?
# 4  
Old 11-04-2009
Just add to ntp.conf
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

2. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

3. UNIX for Dummies Questions & Answers

Configuring mail to send email from server to client

Hi, I want to send an email from server to my gmail account for all critical messages reported in the server. Kindly help me in configuring the same. Regards Rochit (1 Reply)
Discussion started by: rochitsharma
1 Replies

4. Solaris

NTP server to support IPv4 and IPv6 client

Hi I am looking to have an NTP server that will support both ipv4 and ipv6 clients. Is there anything specific about the configuration that I should be looking at? (7 Replies)
Discussion started by: eeisken
7 Replies

5. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

6. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

7. UNIX for Advanced & Expert Users

configuring NTP in Solaris/Windows/Linux environment.

Can anybody please explain the below table to monitor NTP daemon status This contains many columns like remote,refid,st....various values corresponding to those columns If possible provide me any link to study about these quantities clearly. It is very much required for my project please... (3 Replies)
Discussion started by: sgand
3 Replies

8. UNIX for Dummies Questions & Answers

configuring NTP in Solaris/Windows/Linux environment.

configuring NTP in Solaris/Windows/Linux environment. Can anybody please explain the below table to monitor NTP daemon status This contains many columns like remote,refid,st....various values corresponding to those columns If possible provide me any link to study about... (1 Reply)
Discussion started by: sgand
1 Replies

9. AIX

configuring ntp

Hi, I want to configure ntp on aix server as per IST but isp option is not there,how can i configure as IST (0 Replies)
Discussion started by: manoj.solaris
0 Replies

10. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies
Login or Register to Ask a Question