Translate

23 de agosto de 2014

CONFIGURACIÓN ROUTER

MODO CONFIGURACIÓN DE IOS
Router > enable
Router # configure terminal
Router (config)#
Salir del modo Exec privilegiado
Router (config)#exit
Router #
Router # disable
Router >

PONER NOMBRE AL ROUTER
Router > enable
Router # configure terminal
Router (config)#hostname nombre_deseado
· Cambiar nombre nombre_deseado a nombre a router o nombre estado fabrica

Router #
Router # configure terminal
Router (config)# no hostname

CONTRASEÑA  DE INICIO DE CONSOLA
Router > enable
Router # configure terminal
Router (config)#line console 0
Router (config-if)# password  contraseña_deseada ( cisco para los que estáis cursando la certificación )
Router (config-if)#login
Router (config-if)#exit
MENSAJES NO SOLICITADOS DEL IOS
Para que los mensajes de configuración se mantengan separados de lo que se escribe usaremos el comando logging synchronous.

Router > enable
Router # configure terminal
Router (config)# line console 0
Router (config)# logging synchronous
Router (config-if)#exit
CONTRASEÑA PARA ENTRAR AL MODO EXEC PRIVILEGIADO
Existen dos modos de configuración:

Router > enable
Router # configure terminal
Router (config)# enable secret contraseña_deseada ( cisco para los que estáis cursando la certificación )
Router (config)# enable password contraseña_deseada (esta en desuso)
CONTRASEÑA AUX ATRAVES DE PUERTO AUXILIAR
Router > enable
Router # configure terminal
Router (config)# line aux 0
Router (config-if)#password contraseña_deseada (cisco para los que estáis cursando la certificación)
Router (config-if)#login
Router (config-if)#exit

CONTRASEÑA VTY A TRAVÉS DE TELNET
Router > enable
Router # configure terminal
Router (config)# line vty  0 -  4  (dependiendo del valor se darán permisos a uno o mas usuarios )
Router (config-if)#password  contraseña_deseada  ( cisco para los que estáis cursando la certificación )
Router (config-if)#login
Router (config-if)#exit

MENSAJE DE BIENVENIDA  O BANNER 
Router > enable
Router # configure terminal
Router (config)# banner  motd # mensaje_deseado  #
Router (config)#exit

SALVADO DE CONFIGURACIÓN
Router > enable
Router # copy running-config startup-config
Yes

CONFIGURACION Y VERIFICACION DE ESTADO DE LAS INTERFACES ETHERNET DE UN ROUTER

OBSERVACIÓN DE RUTAS CUANDO SE AÑADEN A LA TABLA DE ENRRUTAMIENTO 

Con este comando se pretende ver cuando las rutas directamente conectadas se añaden a la tabla de enrutamiento y cuando se eliminan.

Router >
Router > enable
Router # debug ip routing
IP routing debugging is on
· Router #

CONFIGURACIÓN DEL PUERTO DE INTERFAZ ETHERNET EN UN ROUTER
Router >
Router > enable
Router #
Router # configure terminal
Router ( config )#
Router ( config )# interface fastethernet 0/1
Router (config-if)# ip address direccion_ip   mascara_subred
Router (config-if)# description    texto_descriptivo
Router (config-if)# no shutdown
Router (config-if)# exit
DESCRIPCIÓN DE LAS INTERFACES(Exec privilegiado)
Router >
Router > enable
Router #
Router # configure terminal
Router (config)#
Router (config)# interface fa 0/0
Router (config-if)# description     texto_descriptivo

VERIFICACIÓN DE LA CONFIGURACION SERIAL  DE UN ROUTER
Comprobación de la configuración de la interfaz serie:


Router # show interfaces  serial 0/0
Router # Show ip interface brief
Uso del comando ping para verificar la conectividad:

Router # ping direccion_ip
Uso del comando show ip Router para verificar la conectividad

Router # show ip route
3 Uso de los comandos para verificar las configuraciones de las interfaces

Router # show running-config

COMANDOS DE ESTADO Y VERIFICACION DE UNA INTERFAZ ESPECÍFICA ETHERNET EN UN ROUTER
Comando show interfaces muestra el estado y una descripción detallada de la interfaz deseada
Router >
Router > enable
Router # show interfaces  fastethernet 0/0
FastEthernet0/0 is up, line protocol is up (connected)
Hardware is Lance, address is 0000.0cce.0ae3 (bia 0000.0cce.0ae3)
Internet address is 192.168.2.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 1 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
1 packets output, 52 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Comandos adicionales para examinar el estado de las interfaces fastethernet:


Show ip interface brief:  se utiliza para ver una porción de la información de las interfaces  en formato resumido
Show runing-config:  se utiliza para ver la configuración que el router está utilizando actualmente
MODIFICACION DE LA DIRECCION DE RED DE UNA INTERFAZ FASTETHERNET DE UN ROUTER
1
Router # debug ip routing
Router # configure terminal
Router (config) # interface fastethernet 0/0
Router (config) # shutdown
Router (config) # no ip address
Router (config) # end
Router # undebug all
Router # show ip route
CONFIGURACION DE INTERFACES SERIE

OBSERVACIÓN DE RUTAS CUANDO SE AÑADEN A LA TABLA DE ENRRUTAMIENTO 

Con este comando se pretende ver cuando las rutas directamente conectadas se añaden a la tabla de enrutamiento y cuando se eliminan.

Router >
Router > enable
Router # debug ip routing
IP routing debugging is on

Router #

CONFIGURACIÓN DE LAS INTERFACES SERIE DE UN ROUTER(Exec privilegiado)
Router >
Router > enable
Router #
Router # configure terminal
Router (config)#
Router (config) # interface serial 0/0/0
Router (config-if)# Ip address direccion_ip     mascara_subred
Router (config-if)# clock rate 5600
Router (config-if)# description  texto_descriptivo
Router (config-if)# no shutdown
Router (config-if)# exit
Router (config)#


MODIFICACION DE LA DIRECCION DE RED DE UNA INTERFAZ SERIAL DE UN ROUTER
Router # debug ip routing
  Router # configure terminal
Router (config) # interface serial 0/0
Router (config) # shutdown
Router (config) # no ip address
Router (config) # end
Router # undebug all
Router # show ip route

COMANDO PARA DETERMINAR EL TIPO DE CABLE SERIE QUE SE ESTA UTILIZANDO
En caso de no estar etiquetado ningún cable podemos usar el comando show controllers para determinar que extremo del cable está conectado a esa interfaz
Router >
Router > enable
Router # show controllers serial 0/0
Interface Serial0/0
Hardware is PowerQUICC MPC860
DTE V.35 TX and RX clocks detected


COMANDOS DE ESTADO Y VERIFICACION DE UNA INTERFAZ ESPECÍFICA  SERIAL EN UN ROUTER
Comando show interfaces muestra el estado y una descripción detallada de la interfaz deseada

Router >
Router > enable
Router # show interfaces  serial 0/0
Serial0/0 is up, line protocol is up (connected)
Hardware is HD64570
Internet address is 10.0.0.1/24
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 96 kilobits/sec
5 minute input rate 15 bits/sec, 0 packets/sec
5 minute output rate 13 bits/sec, 0 packets/sec
51 packets input, 2652 bytes, 0 no buffer
Received 51 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
50 packets output, 2600 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up

Comandos adicionales para examinar el estado de las interfaces serial:

Show ip interface brief:  se utiliza para ver una porción de la información de las interfaces  en formato resumido.
Show running-config:  se utiliza para ver la configuración que el router está utilizando actualmente.
   Ping dirección de red

Comprobación de la configuración de la interfaz serie:

Router # show interfaces  serial 0/0
Router # Show ip interface brief


VERIFICACIÓN DE LA CONFIGURACION SERIAL  DE UN ROUTER
   Uso del comando ping para verificar la conectividad:

  Router # ping direccion_ip
   Uso del comando show ip Router para verificar la conectividad

  Router # show ip route

   Uso de los comandos para verificar las configuraciones las interfaces :

   Router # show running-config

PROTOCOLOS DE ENRUTAMIENTO
OBSERVACION  DE ESTADO   DE LA TABLA DE ENRRUTAMIENTO
Router > enable
Router # debug ip routing
RUTA ESTATICA CON DIRECCIONES DE SIGUIENTE SALTO EN INTERFACES SERIE
Router > enable
Router # debug ip routing
Router # configure terminal
Router (config) # ip route  dirección_de_red      mascara_de_subred   dirección_ip_de_salida
RECONFIGURACION O ELIMINACION DE UNA RUTA ESTATICA CON DIRECCIONES DE SIGUIENTE SALTO EN INTERFACES SERIE
Router > enable
Router # configure terminal
Router (config) # no ip route  dirección_de_red    mascara_de_subred   dirección_ip_de_salida
Para verificar la ruta estática usaremos el comando:
Router # show ip route
RUTA ESTATICA  CON INTERFACE DE SALIDA EN INTERFACES SERIE
Router > enable
Router # configure terminal
Router (config) # ip route  dirección_de_red      mascara_de_subred   Interfaz_de_salida
VERIFICACION DE CAMBIOS DE UNA RUTA ESTATICA
Router # show ip route
Router # ping dirección_de_red
Router # show running-config


RUTA ESTATICA CON DIRECCIONES DE SIGUIENTE SALTO EN INTERFACES FASTETHERNET
Router > enable
Router # debug ip routing
Router # configure terminal
Router (config) # ip route  dirección_de_red      mascara_de_subred   dirección_ip_de_salida
RECONFIGURACION O ELIMINACION DE UNA RUTA ESTATICA CON DIRECCIONES DE SIGUIENTE SALTO EN INTERFACES SERIE
Router > enable
Router # configure terminal
Router (config) # no ip route  dirección_de_red    mascara_de_subred   dirección_ip_de_salida
Para verificar la ruta estática usaremos el comando:
Router # show ip route
VERIFICACION DE CAMBIOS DE UNA RUTA ESTATICA
Router # show ip route
Router # ping dirección_de_red
Router # show running-config

CONFIGURACION DEL PROTOCOLO DE ENRRUTAMIENTO RIP 
Router > enable
Router # configure terminal
Router (config) # router rip
Router (config-router) #network dirección ip  (sin mascara )
Router (config-router)# network dirección ip ( sin mascara )
Router (config-router)# exit
Router (config) #
COMPROBACION DE CAMBIOS EN LA TABLA DE ENRUTAMIENTO
El comando show ip route revela el contenido de las tablas de enrutamiento
Router >
Router > enable
Router # show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial0/0
R 172.168.0.0/16 [120/1] via 10.0.0.2, 00:00:12, Serial0/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0

OBSEVACION DE RUTAS CUANDO SE AÑADEN A LA TABLA DE ENRUTAMIENTO
Los comandos debug ip routing visualizan cualquier cambio que el Router efectué al añadir una nueva ruta

Router >
Router > enable
Router # debug ip routing
      IP routing debugging is on
Se pueden desactivar los comandos debug ip routing con los comandos undebug ip routing o undebug all.

Router # undebug ip routing
Router # undebug all
     IP routing debugging is off

RESTABLECER, ELIMINAR Y  SALVADOS DE CONFIGURACION

ELIMINAR TODAS LAS CONFIGURACIONES DE UN ROUTER (MODO FABRICA)(Exec privilegiado)
Router >
Router > enable
Router #
Router # erase startup-config
Yes
RESTABLECER LA CONFIGURACIÓN DE INICIO DE UN ROUTER(Exec privilegiado)
Router >
Router > enable
Router #
Router # reload
Yes
COPIAS DE SEGURIDAD DE LAS CONFIGURACIONES MEDIANTE HYPER TERMINAL Y TERATERM 

·         HYPER TERMINAL

TRANSFER > CAPTURE TEXT
LOCALIZACION
START
ROUTER # SHOW RUNNING-CONFIG O ROUTE#STARTAUP-CONFIG
REVISION

·          TERATERM

FILE > LOG
LOCALIZACION
ROUTER # SHOW RUNNING-CONFIG O ROUTE#SHOW STARTUP-CONFIG
ESPERAR CAPTURA COMPLETA Y CLOSE
REVISAR
RESPALDAR UNA COPIA DE SEGURIDAD  DEL ARCHIVO GUARDADO MEDIANTE HYPERTERMINAL Y TERATERM

·          HYPER TERMINAL

LOCALIZA EL ARCHIVO Y ABRIR EL DOCUMENTO

COPIAR TEXTO

EDITAR> PASTE HOST
·         TERATERM

SELECIONAMOS FILE> SEND FILE

LOCALIZAMOS EL ARCHIVO A COPIAR EN EL DISPOSITIVO CISCO Y HACEMOS CLIC EN OPEN

TERATERM COPIARA EL ARCHIVO EN EL DISPOSITIVO
COPIAS DE SEGURIDAD OFFLINE DE LAS CONFIGURACIONES (Exec privilegiado)
Router  > enable
Router  #
Router  # copy running-config tftp
Direccion_ip
Guardar_como
Yes (para confirmar)

No hay comentarios:

Publicar un comentario