Created
December 2, 2013 11:47
-
-
Save metahertz/7748362 to your computer and use it in GitHub Desktop.
Quick NTP enable for temporary POC env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install ntp | |
| cat << EOF > /etc/ntp.conf | |
| driftfile /var/lib/ntp/ntp.drift | |
| 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 | |
| server ntp.esl.cisco.com | |
| server 0.pool.ntp.org | |
| restrict -4 default kod notrap nomodify nopeer noquery | |
| restrict -6 default kod notrap nomodify nopeer noquery | |
| restrict 127.0.0.1 | |
| restrict ::1 | |
| EOF | |
| /etc/init.d/ntp restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment