NTP

Linux/CentOS / / 2021. 8. 27. 16:57
반응형

### NTP Server(192.168.0.1)

# yum -y install ntp

# vi /etc/ntp.conf

restrict 127.0.0.1

restrict ::1

### 192.168.1.0/24 Network에서의 NTP 요청을 허용

restrict 192.168.1.0 mask 255.255.255.0 no modify notary

 

server time.kriss.re.kr     iburst

server time2.kriss.re.kr    iburst 

server ntp.kornet.net       iburst

server ntp.postech.ac.kr    iburst

server gps.bora.net         iburst

 

#  systemctl enable ntpd && systemctl restart ntpd

 

# ntpq -p    

 

 

### Client(192.168.0.2)

# yum -y install ntp

# vi /etc/ntp.conf

server 192.168.0.1 iburst

 

 

# systemctl enable ntpd && systemctl start ntpd

# ntpq -p

+192.168.0.1 ~~~~

반응형

'Linux > CentOS' 카테고리의 다른 글

[error] yum groupinstall  (0) 2022.01.05
Local Repository  (0) 2021.09.03
GLIBC, GLIBCXX  (0) 2021.08.23
pdsh  (0) 2020.10.15
[CentOS]fdupes - CentOS7 중복 파일 찾기 및 제거  (0) 2020.08.20
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기