User Tools

Site Tools


informatica:linux:ntp

This is an old revision of the document!


Table of Contents

NTP

ntp ntpq time

Servidor

1. Instalar paquetes:

sudo aptitude install ntp ntpdate ntp-server

2. Actualizar configuracion:

sudo mv /etc/ntp.conf /etc/ntp.conf.old
sudo vim /etc/ntp.conf
TBD

3. Para NTP:

sudo /etc/init.d/ntp stop

4. Sincronizar (en este ejemplo el servidor es 0.es.pool.ntp.org)

ntpdate 0.es.pool.ntp.org

5. Arrancar NTP:

sudo /etc/init.d/ntp start

Cliente

1. Instalar paquetes:

sudo aptitude install ntp ntp-simple ntpdate

2. Actualizar configuracion:

sudo mv /etc/ntp.conf /etc/ntp.conf.old
sudo vim /etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
server time-1.dev.jj.com
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1

3. Para NTP:

sudo /etc/init.d/ntp stop

4. Sincronizar (en este ejemplo el servidor es time-1.dev.jj.com)

ntpdate time-1.dev.jj.com

5. Arrancar NTP:

sudo /etc/init.d/ntp start
informatica/linux/ntp.1339513279.txt.gz · Last modified: 2015/04/13 20:19 (external edit)