This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:ryoung12:portfolio:ntp:client [2010/05/20 20:21] – ryoung12 | user:ryoung12:portfolio:ntp:client [2010/05/21 20:58] (current) – ryoung12 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Configuring a NTP Client on a Virtual Machine===== | ||
+ | < | ||
+ | <cli> | ||
+ | sudo vim / | ||
+ | </ | ||
+ | < | ||
+ | <code bash> | ||
+ | # / | ||
+ | # Disable the panic threshold to allow irregular clock offsets | ||
+ | tinker panic 0 | ||
+ | |||
+ | # Local clock oscillation file | ||
+ | driftfile / | ||
+ | |||
+ | # Allow statistics to be logged. | ||
+ | statsdir / | ||
+ | |||
+ | # Logging configuration | ||
+ | statistics loopstats peerstats clockstats | ||
+ | filegen loopstats file loopstats type day enable | ||
+ | filegen peerstats file peerstats type day enable | ||
+ | filegen clockstats file clockstats type day enable | ||
+ | |||
+ | # Access control configuration | ||
+ | restrict default kod nomodify notrap nopeer noquery # Deny everybody by default | ||
+ | restrict 127.0.0.1 | ||
+ | |||
+ | # NTP servers to syncronise with | ||
+ | server vmserver03.student.lab | ||
+ | </ | ||
+ | < | ||
+ | We need to do some additional configuration before we restart the NTP service to apply the changes on our virtual macines.</ | ||
+ | |||
+ | ====Special Settings for Virtual Machines==== | ||
+ | < | ||
+ | <cli> | ||
+ | sudo sh -c "mkdir /etc/ntp && vim / | ||
+ | </ | ||
+ | <code bash> | ||
+ | # / | ||
+ | vmserver03.student.lab | ||
+ | </ | ||
+ | \\ | ||
+ | < | ||
+ | <cli> | ||
+ | sudo / | ||
+ | </ |