Вы находитесь на странице: 1из 6

GUÍA DE LABORATORIO

Escuela : INGENIERÍA DE SISTEMAS


Asignatura : REDES Y COMUNICACIONES I
Ciclo : VI
Turno : Noche
Semestre : 2018-1
Docente : Mgtr. Carlos Cruzado Puente de la Vega

Tema: Configuración de SYSLOG, NTP y SSH


CONFIGURACION DEL SERVIDOR NTP

Router R1

R1(config)#ntp server 192.168.1.5 <------ El servidor NTP es la PC-A


R1(config)#ntp update-calendar <------ Se actualiza el reloj con el del servidor
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#show ntp status <----- Mostrar el status del NTP


Clock is synchronized, stratum 2, reference is 192.168.1.5
nominal freq is 250.0000 Hz, actual freq is 249.9990 Hz, precision is 2**19
reference time is D5C8FFFF.000001D1 (23:02:23.465 UTC sáb sep 28 2013)
clock offset is 0.00 msec, root delay is 0.00 msec
root dispersion is 0.02 msec, peer dispersion is 0.02 msec.
R1#show clock <-----Reloj que tiene actualizado
*23:4:11.499 UTC sáb sep 28 2013
R1#

Router 2

R2(config)#ntp server 192.168.1.5


R2(config)#ntp update-calendar
R2(config)#exit
R2#
%SYS-5-CONFIG_I: Configured from console by console

R2#show ntp status


Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 000.0000 Hz, actual freq is 000.0000 Hz, precision is 0**00
reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1990)
clock offset is 0.00 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec.
R2#show clock
*0:6:2.514 UTC lun mar 1 1993
R2#

Router R3

R3(config)#ntp server 192.168.1.5


R3(config)#ntp update-calendar
R3(config)#exit
R3#
%SYS-5-CONFIG_I: Configured from console by console

R3#show ntp status


Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 000.0000 Hz, actual freq is 000.0000 Hz, precision is 0**00
reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1990)
clock offset is 0.00 msec, root delay is 0.00 msec
root dispersion is 0.00 msec, peer dispersion is 0.00 msec.
R3#show clock
*0:7:32.267 UTC lun mar 1 1993
R3#

Ya que configuramos los router como servidores NTP le configuramos una estampa de tiempo
en cada router, como se muestra a continuación.

Router R1
R1(config)#service timestamps log datetime msec

Router R2
R2(config)#service timestamps log datetime msec

Router R3
R3(config)#service timestamps log datetime msec
CONFIGURACION DEL SERVIDORES SYSLOG

Router R1

R1(config)#logging 192.168.1.6 <----- El server SYSLOG es la PC-B


R1(config)#
*sep 28, 23:17:30.1717: SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 192.168.1.6 port
514 started - CLI initiated
R1(config)#exit
R1#
*sep 28, 23:17:34.1717: *sep 28, 23:17:34.1717: %SYS-5-CONFIG_I: Configured from console
by console
R1#show logging <-----Mostramos el estado de syslog
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

No Inactive Message Discriminator.


-----more-------
Router R2
R2(config)#logging 192.168.1.6
R2(config)#
*mar 01, 00:19:06.1919: SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 192.168.1.6 port
514 started - CLI initiated
R2(config)#exit
R2#
*mar 01, 00:19:08.1919: *mar 01, 00:19:08.1919: %SYS-5-CONFIG_I: Configured from console
by console
R2#show logging
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

No Inactive Message Discriminator.

Console logging: level debugging, 14 messages logged, xml disabled,


filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: disabled, xml disabled,
filtering disabled

Logging Exception size (4096 bytes)


Count and timestamp logging messages: disabled
Persistent logging: disabled
No active filter modules.
---------more----------
Router R3

R3(config)#logging 192.168.1.6
R3(config)#
*mar 01, 00:20:17.2020: SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 192.168.1.6 port
514 started - CLI initiated
R3(config)#exit
R3#
*mar 01, 00:20:20.2020: *mar 01, 00:20:20.2020: %SYS-5-CONFIG_I: Configured from console
by console
R3#show logging
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)

No Active Message Discriminator.

No Inactive Message Discriminator.

Una vez realizados estos cambios usted puede ver desde el servidor los mensajes enviados en
el servidor syslog desde la pestaña "Config" y el boton "SYSLOG" como la imagen siguiente:
CONFIGURARION DEL SSH EN EL R3

R3>
R3>enable
R3#configure ter
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#ip domain-name arios.com
R3(config)#username SSHadmin privilege 3 secret 123
R3(config)#line vty 0 4
R3(config-line)#login local
R3(config-line)#transport input ssh
R3(config-line)#crypto key generate rsa
The name for the keys will be: R3.arios.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 123


% A decimal number between 360 and 2048
How many bits in the modulus [512]:
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

R3(config)#ip ssh time-out 90


*Jul. 4 10:40:44.739: RSA key size needs to be at least 768 bits for ssh version 2
*Jul. 4 10:40:44.739: %SSH-5-ENABLED: SSH 1.5 has been enabled
R3(config)#ip ssh version 2
Please create RSA keys (of at least 768 bits size) to enable SSH v2.
R3(config)#
R3(config)#exit
R3#
*Jul. 04, 10:45:56.4545: *Jul. 04, 10:45:56.4545: %SYS-5-CONFIG_I: Configured from console by console
R3#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R3#

Вам также может понравиться