The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
configuring boot server kumarmani SUN Solaris 9 09-30-2009 02:33 PM
Client/Server Socket Application - Preventing Client from quitting on server crash varun.nagpaal High Level Programming 2 08-27-2009 10:57 PM
configuring NIM server pchangba AIX 3 06-13-2009 02:05 PM
configuring web server sriram.s SUN Solaris 3 07-25-2006 08:30 AM
configuring same /bash for 4 computer which is thin client niravuchat Linux 0 03-11-2004 02:12 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 3 Weeks Ago
bigjim33 bigjim33 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 2
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 (permalink)  
Old 3 Weeks Ago
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
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 (permalink)  
Old 3 Weeks Ago
bigjim33 bigjim33 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 2
Thanks! I suppose that line should be added in the ntp.conf, isn't it?
Should I add anything to rc.conf?
  #4 (permalink)  
Old 2 Weeks Ago
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Just add to ntp.conf
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0