InformáticaLinuxSin categoría

Centos Linux Servidor NTP

Agradecer a www.sysadmit.com su ayuda en el proyecto linux CentOS en dominio.

El siguiente codigo se modifico en una maquina centos con el objetivo de sincronizar el NTP con un controlador de dominio Windows antes de meterlo en domino.

yum install ntp -y
cp -a /etc/ntp.conf /etc/ntp.conf.original
# -a copia los permisos originales

vi /etc/ntp.conf

#Comentar:

#restrict default nomodify notrap nopeer noquery

#Añadir:
restrict default nomodify notrap nopeer noquery kod limited

#Comentar:

#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

#Añadir

server 192.168.1.XX iburst
#IP del dns del DC.

systemctl start ntpd
systemctl enable ntpd

#Prueba:

[root@TestLinux ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.1.52    .LOCL.           1 u    9   64    1    0.449  -39469.   0.613

Deja una respuesta