Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to setup an SNTP server for testing purposes that

  1. can be set to any arbitrary value (for example testing DST behaviour of the device under test)
  2. serve only on eth1 on my RedHat Enterprise box. I want to limit it into a single interface (or 192.168.1.255/24 network) so that it does not disrupt anything.

What is the easiest way to create such a setup? My must be always online on the other interface for e-mail etc. so I cannot set its time randomly.

share|improve this question
    
@Chris S who deleted my answer, claiming it did not answer the question. I reread the question and as far as I can tell. it precisely answered the question. Again, AFAICT, the accepted answer below does not answer the question. –  LostInTheTrees Mar 20 at 20:35
    
@LostInTheTrees I agree that it was a valid answer. –  Atilla Filiz Mar 24 at 16:35
    
Thanks. Alas I know of no way to message Chris S. to get him to undo his damage. –  LostInTheTrees Mar 25 at 0:27

2 Answers 2

up vote 3 down vote accepted

ntpdsim is what you want:

The ntpdsim program is an adaptation of the ntpd operating system daemon. The program operates as a discrete time simulator using specified systematic and random driving sources. It includes all the mitigation and discipline algorithms of the actual daemon, but with the packet I/O and system clock algorithms driven by simulation. Most functions of the real ntpd remain intact, including the monitoring, statistics recording, trace and host name resolution features. Further information on the simulator is on the NTP Discrete Event Simulator page.

The simulator is most useful to study NTP behavior in response to time and/or frequency transients under specific conditions of network jitter and oscillator wander. For this purpose the daemon can be driven by pseudorandom jitter and wander sample sequences characteristic of real networks and oscillators. The jitter generator produces samples from a Poisson distribution, while the wander generator produces samples from a Guassian distribution.

http://www.eecis.udel.edu/~mills/ntpsim.html

http://www.eecis.udel.edu/~mills/ntp/html/ntpdsim.html

share|improve this answer

Why do you just want SNTP and not regular NTP? either way the best way is the usual 'ntpd', OpenNTP or 'clockspeed'.

share|improve this answer
    
+1 Have a look at the tinker command for ntpd to skew the clock, YMMV: eecis.udel.edu/~mills/ntp/html/miscopt.html#tinker –  gravyface Feb 14 '11 at 14:29
    
tinker is for adjusting a clock against ntp's better judgement. the OP wanted to test a server/client installation. ntpdsim does just that without mucking with the system clock –  dfc Oct 25 '11 at 20:15
    
OpenNTP and clockspeed actually set the system clock. he wants to test things. (you forgot chrony, another ntp server) –  dfc Oct 25 '11 at 20:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.