Last active
July 7, 2020 15:41
-
-
Save ikurni/76d47c4475e45d3231b40e96cc960396 to your computer and use it in GitHub Desktop.
Configure NTP server without access to internet
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
##Edit /etc/ntp.conf | |
vi /etc/ntp.conf | |
##Add below line to set local server as the NTP server in the server section | |
--- | |
restrict 10.10.10.0 mask 255.255.255.0 nomodify notrap | |
server 127.127.1.0 | |
fudge 127.127.1.0 stratum 10 | |
--- | |
##Restart NTP service | |
systemctl restart ntpd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment