View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Configurar NTP/NTPDATE en los ordenadores de SICO

Servidor de NTP

Se ha puesto como servidor de NTP a chibiko (3.0.1.44).

1. Instalar el paquete ntp y ntpdate
 # apt-get install ntp ntpdate
2. Configurarlo
 # vi /etc/ntp.conf
Comentar las líneas que empiezan por "server" existentes, y añadir:
server hora.rediris.es iburst dynamic
server ntp.ubuntu.com iburst dynamic
restrict 3.0.1.0 mask 255.255.255.0
broadcast 3.0.1.255
disable auth

3. Sincronizar la hora y arrancar el servicio
 # /etc/init.d/ntp stop
 # ntpdate hora.rediris.es
 # ntpdate hora.rediris.es
 # /etc/init.d/ntp start
4. Para comprobar que lo está haciendo bien, usar un "ntpq -p", debería tener un "*" antes de la línea de "hora.rediris.es". Si tiene una "X" es que algo está mal.


Cliente NTP Debian GNU/Linux 5.0 y Ubuntu


1. Instalar el paquete ntp y ntpdate
 # apt-get install ntp ntpdate
2. Configurarlo
 # vi /etc/ntp.conf
Comentar las líneas que empiezan por "server" existentes, y añadir:
server 3.0.1.44

3. Sincronizar la hora y arrancar el servicio
 # /etc/init.d/ntp stop
 # ntpdate hora.rediris.es
 # ntpdate hora.rediris.es
 # /etc/init.d/ntp start
4. Para comprobar que lo está haciendo bien, usar un "ntpq -p", debería tener un "*" antes de la línea de "3.0.1.44/chibiko/...". Si tiene una "X" es que algo está mal.


Cliente NTP Debian GNU/Linux 2.2 a 3.1


1. Instalar el paquete ntp y ntpdate
 # apt-get install ntp-server ntpdate
2. Configurarlo
 # vi /etc/ntp.conf
Comentar las líneas que empiezan por "server" existentes, y añadir:
server 3.0.1.44

3. Sincronizar la hora y arrancar el servicio
 # /etc/init.d/ntp-server stop
 # ntpdate hora.rediris.es
 # ntpdate hora.rediris.es
 # /etc/init.d/ntp-server start
4. Para comprobar que lo está haciendo bien, usar un "ntpq -p", debería tener un "*" antes de la línea de "3.0.1.44/chibiko/...". Si tiene una "X" es que algo está mal.


Cliente NTP NetBSD 5.0


1. Configurarlo
 # vi /etc/ntp.conf
Comentar las líneas que empiezan por "server" existentes, y añadir:
server 3.0.1.44

2. Añadirlo para que arranque en el inicio del sistema
 # echo "ntpd=YES" >> /etc/rc.conf
3. Sincronizar la hora y arrancar el servicio
 # /etc/rc.d/ntpd stop
 # ntpdate hora.rediris.es
 # ntpdate hora.rediris.es
 # /etc/rc.d/ntpd start
4. Para comprobar que lo está haciendo bien, usar un "ntpq -p", debería tener un "*" antes de la línea de "3.0.1.44/chibiko/...". Si tiene una "X" es que algo está mal.


Cliente NTP Solaris 7


1. Configurarlo
 # vi /etc/inet/ntp.conf
Añadir:
server 3.0.1.44

3. Sincronizar la hora y re-arrancar el servicio
 # /etc/init.d/xntpd stop
 # ntpdate hora.rediris.es
 # ntpdate hora.rediris.es
 # /etc/init.d/xntpd start
4. Para comprobar que lo está haciendo bien, usar un "ntpq -p", debería tener un " "(un espacio) antes de la línea de "3.0.1.44/chibiko/...". Si tiene una "X" es que algo está mal.

NOTA: En solaris el ntpd arranca por defecto en rc2.d.