COLECCIN DE COMANDOS DEL ROUTER
1- CONFIGURACIN BSICA
1.1- Nombre del router
Router(config)#hostname R1
R1(config)#
1.2- Poner las contraseas
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#enable secret class
Hemos puesto contrasea sin cifrar a la lnea de consola y a las 5 terminales de telnet
Hemos puesto contrasea encriptada con MD5 para entrar al modo privilegiado
1.3- Configurar una interfaz
R1(config)#interface serial 0
R1(config-if)#ip address [Link] [Link]
R1(config-if)#clock rate 56000
R1(config-if)#bandwidth Kbps
R1(config-if)#no shutdown
%LINK-3-UPDOWN: Interface Serial0, changed state to up
Le hemos puesto una @IP y una mscara de red. Como ste router es el DCE tambin hemos
definido la velocidad de reloj. El ancho de banda suele ser opcional. Por ltimo hemos activado
la interfaz.
Si el otro router an no tiene la interfaz configurada (o el cable est desconectado) saldr esto:
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state
to down
Esto se debe a que aunque la interfaz est activa, configurada y funcionando no recibe seal.
Si hacemos un show interface s0 dir que:
Serial0 is up, line protocol is down
Es decir: Interfaz activada pero no hay conexin.
1.4- Poner una descripcin a una interfaz:
R1(config-if)#description Conexin a R2
Ahora la descripcin sera visible en un show interface/s
R1#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Description: Conexin a R2
()
R1#
1.5- Asignar un nombre a una @IP (tabla de hosts)
R1(config)#ip host R2 [Link]
Podemos comprobarlo haciendo un ping con el nombre asignado
R1#ping R2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Y mirar directamente el contenido de la tabla de hosts del router
R1#show hosts
R2
(perm, OK) 0
IP
[Link]
PC1
PC3
PC2
PC4
(perm,
(perm,
(perm,
(perm,
OK)
OK)
OK)
OK)
0
0
0
0
IP
IP
IP
IP
[Link]
[Link]
[Link]
[Link]
R1#
1.6- Poner un banner MOTD y comprobarlo:
R1(config)#banner motd #
Enter the text followed by the '#' to finish
Bienvenido al Router R1#
R1(config)#
Comprobarlo:
R1#show run
Building configuration...
!
Version 12.1
(...)
interface Serial0
(...)
interface FastEthernet0
(...)
banner motd
Bienvenido al Router R1
(...)
end
R1#
1.7- Guardar la configuracin actual
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Ha copiado la configuracin actual (running-config, que est en la RAM) a el archivo de
configuracin de arranque (startup-config, que est en la NVRAM)
1.8- Copia de seguridad del running-config a un TFTP
R1#copy running-config tftp
Address or name of remote host []?[Link]
Destination filename []?Run-Conf-R1
!
!
!
!
!
[OK]
6780 bytes copied in 1 secs
Se restaura con:
R1#copy tftp running-config
1.9- Copia de seguridad del IOS a un TFTP
Averiguamos el nombre de la IOS con un show version : flash:[Link]
La copiamos al TFTP con:
R1#copy flash tftp
Address or name of remote host []?[Link]
Source filename []? flash:[Link]
Address or name of remote host []?[Link]
Destination filename [flash:[Link]
]?y
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK]
4884648 bytes copied in 34.012 secs
Ahora deberamos comprobar que la imagen se ha copiado correctamente, por si las moscas.
en el hyper-terminal le damos a View>Log File para comprobar que no ha notado ningn error.
Luego debemos comparar en el TFTP que el tamao coincide con el de la flash.
Se restaura con:
R1#copy tftp flash
1.10- Asignar rutas estticas:
R1(config)#ip route [Link] [Link] [Link]
R1(config)#ip route [Link] [Link] s0
Ip route @destino Mscara_Subred @siguiente_salto / interfaz_de_salida
Con show ip route lo comprobamos. Las estticas aparecen marcadas con una S.
1.11- Crear un gateway de ultimo recurso:
Todos los paquetes dirigidos a un destino que no conozca los sacar por ah.
R1(config)#ip route [Link]
[Link] [Link]
R1(config)#ip route [Link]
[Link] s0
Existe otra forma de poner una ruta por defecto:
R1(config)#ip defaultnetwork [Link]
La diferencia entre ambos es
1.12- Especificar una interfaz pasiva:
No mandar sus actualizaciones de enrutamiento por ella.
R1(config-router)#passive-interface s1
1.13- ip classless:
R1(config)#ip classless
R1(config)#no ip classless
Los protocolos de enrutamiento con clase (como RIP e IGRP) dan siempre por sentado que las
@s son normales y no admiten subredes. Al deshabilitarlo cuando el router reciba paquetes
dirigidos a un destino desconocido (todos los dirigidos a subredes) los descartar. Si est
activado (por defecto) los intentar mandar al gateway de ultimo recurso.
1.14- Cambiar la distancia administrativa por defecto de una ruta:
R1(config-router)#distance 50
Hay que ponerlo al configurar el protocolo de enrutamiento.
1.15- Ip subnet-zero:
R1(config)#ip subnet-zero
Permite usar las @s cuya parte de hosts tenga todo ceros (coincidiria con @red) para hacer
subredes y sub-subredes. NO se podrn asignar hosts a esas @s.
2- EL ARRANQUE DEL ROUTER Y RECUPERACIN DE DESASTRES:
2.1- Borrar la configuracin de arranque (startup-config) y reiniciar el router
R1#erase startup-config
Erasing the nvram filesystem Hill remove all files! Continue?
[confirm]
Erase of nvram complete
R1#reload
System configuration has been modified. Save? [yes/no] n
Proceed with reload? [confirm]
Reload request by console.
El router se reiniciar. Al ver que no tiene ninguna configuracin de arranque (startup config)
ofrecer entrar al modo setup:
World you like to enter the initial configuration dialog? [yes/no]
2.2- Cambiar la ubicacin del IOS que cargar en el arranque con boot system
Primero comprobamos la configuracin actual con:
R1#show version
()
System image file is ""flash:[Link]"", booted via
flash
()
Configuration register is 0X2102
Ahora metemos, de forma secuencial, de dnde queremos que vaya intentando cargar el IOS.
R1(config)#boot system flash [Link]
R1(config)#boot system tftp [Link] [Link]
R1(config)#boot system rom
Y con esto arrancar las imgenes especificadas y en ese orden y ubicacin.
2.3- Cambiar la ubicacin del IOS que cargar en el arranque con config-register
R1(config)#config-register 0x2100
El siguiente arranque lo har desde la ROM
Cambiar el ultimo n de la @de registro por 0 hace que arranque desde la ROM
Cambiar el ultimo n de la @de registro por 1 hace que arranque desde
Cambiar el ultimo n de la @de registro por 2 hace que arranque desde
2.4- Copiar una IOS desde un servidor TFTP:
R1#copy tftp flash
2.5- Copiar una IOS desde el puerto AUX con mdem:
Cambiar la velocidad
rommon>confreg
()
change console baud rate? y/n [n]:y (S!!)
Elegimos 115200 bps. Tras esto debemos reiniciar el router y crear una nueva conexin a
115200 bps con el Hyperterminal.
xmodem -c [Link]
Ahora en el HyperTerminal, seleccionamos Transfer > Send File (Transferir > Enviar archivo),
elegimos la imagen, seleccionamos Xmodem como el protocolo e iniciamos la transferencia.
Al acabar dir que la flash ha sido borrada. Luego aparece el mensaje "Download
Complete! "
Antes de arrancar de nuevo el router
rommon#config-register
0x2102
Mientras el router arranca de nuevo, es necesario finalizar la sesin de terminal a 115200 bps e
iniciar una nueva a 9600 bps. (En el T5 se explica con ms detalle)
2.6- Recuperar contrasea perdida:
Miramos el valor de registro de la configuracin de arranque (0x2102)
R1>show version
Entramos al modo rommon pulsando CTRL+Pausa en el hyper-terminal durante el arranque del
router.
Cambiamos el registro del arranque para que se salte el startup-config:
rommon 1 > confreg 0x2142
Reiniciamos
rommon 2 > reset
Pasamos del modo setup, y ponemos todas las contraseas. Copiamos el running-config al
startup-config.
R1#>config-register 0x2102
R1#>reload
3- CONFIGURAR PROTOCOLOS DE ENRUTAMIENTO
3.1- RIP
R1(config)#router rip
R1(config-router)#network [Link]
R1(config-router)#network [Link]
Desactivar el uso del horizonte dividido:
R1(config-if)#no split horizon
Cambiar el temporizador de espera (por defecto 180):
R1(config-router)#holdown timer 121
Cambiar el intervalo de actualizaciones peridicas (por defecto 30):
R1(config-router)#update-timer 20
Evitar que mande paquetes RIP a una @IP (por si usa Frame Relay o similar)
R1(config-router)#neighbor [Link]
Configurar el router para enviar y recibir paquetes RIP v1 o 2
R1(config-router)#version 1 | 2
Configurar la interfaz para recibir paquetes RIP v1,2 o ambas
R1(config-if)#ip rip receive version 1 | 2 | 1 2
Configurar la interfaz para enviar paquetes RIP v1,2 o ambas
R1(config-if)#ip rip send version 1 | 2 | 1 2
Configurar el balanceo de carga:
Con show ip route [@IP] comprobamos si tiene ms de una ruta para un destino. Por
defecto RIP slo usar una. Para que use ms:
R1(config-router)#maximum-path 3
NOTA: El balanceo de carga de RIP es mierdoso y slo manda un paquete por cada interfaz de
forma secuencial, no los manda a la vez.
Para que el router mande sus rutas estticas en las actualizaciones:
R1(router-config)#redistribute static
NOTA: Las rutas estticas que apuntan a la interfaz de salida en vez de a la @IP del siguiente
salto ya se mandan por defecto.
Comprobar la configuracin RIP:
R1#show ip protocols
R1#show ip route
R1#show interface s0
R1#show ip interface s0
R1#show running-config
Solucionar problemas con RIP:
R1#debug ip rip
R1#show ip interface brief
3.2- IGRP
R1(config)#router igrp 1
R1(config-router)#network [Link]
R1(config-router)#network [Link]
Usar balanceo de carga con IGRP:
?#variance 1-128
Modifica el balanceo de carga en una ruta. un 1 lo hace simtrico.
Comprobar la configuracin IGRP:
R1#show interface s0
R1#show running-config
R1#show ip protocols
R1#show ip route
ping
traceroute
Solucionar problemas en IGRP:
debug ip igrp events
debug ip igrp transactions
3.3- OSPF
R1(config)#router ospf 1 (1 es el Id del proceso ospf en el router=
R1(config-router)#network [Link] [Link] area 0
R1(config-router)#network [Link] [Link] area 0
R1(config-router)#
NOTA1: cmo se configura un router Puente entre 2 areas?
NOTA2: el formato es: network @RED @WILDCARD area n_area
Configurar la interfaz loopback:
R1(config)#interface loopback 0
R1(config-if)#ip address [Link] [Link]
La interfaz loopback se pone porque si la interfaz cae (lo cual suele pasar) OSPF al no tener
ninguna interfaz active pierde toda su configuracin. Al tener una virtual que siempre est activa
mantendr su configuracin y sus tablas.
Modificar la prioridad (para llegar a ser DR):
R1(config-if)#ip ospf priority 0-255
NOTA: con 0 nunca sera DR.
Modificar el costo de una ruta (por defecto 108 / ancho de banda):
R1(config-if)#ip ospf cost 1-65.535
Modificar el ancho de banda de la interfaz que usar ospf:
R1(config-if)#bandwidth Kbps
Poner contrasea a la interfaz:
R1(config-if)#ip ospf authentication-key contrasea
Aplicar esa contrasea a toda un rea:
R1(config-if)#area n authentication [message-digest]
NOTA: message-digest es para que esa informacin la mande cifrada.
Hay que poner esto en todos los routers. Con el message-digest deben tener la contrasea
Poner contrasea por boletn de mensaje:
R1(config-if)#ip ospf message-digest-key ID_clave md5 [tipo de
cifrado] contrasea
Modificar los temporizadores hello y dead:
R1(config-if)#ip ospf hello-interval segundos
R1(config-if)#ip ospf dead-interval segundos
NOTA: Por defecto son hello cada 10 segundos y dead cada 40. En redes SIN difusin hello 30
dead 120. La proporcin siempre debe ser 1 a 4.
Propagar la ruta predeterminada:
Si tenemos un servidor que da acceso a Internet a toda la red nos interesa que el router mande
su deireccin, que tendr configurada como gateway por defecto. Para ello:
R1(config-router)#default-information originate
Comprobar configiguracin y resolver errores en OSPF:
R1#show ip protocols
R1#show ip route
R1#clear ip route
R1#clear ip route @IP
R1#show ip ospf interface
R1#show ip ospf
R1#show ip ospf neigbors
R1#show ip ospf neigbor detail
R1#show ip ospf database
R1#debug ip ospf
3.4- EIGRP
R1(config)#router eigrp 1
(1 es el n del Sistema Autnomo)
R1(config-router)#network [Link]
R1(config-router)#network [Link]
Configurar el ancho de banda de la interfaz
R1(config-if)#bandwith kbps
Activar el registro de cambios de adyacencia:
R1(config-if)#eigrp log-neighbor-changes
Evitar el auto resumen de rutas
R1(config-router)#no auto-summary
De normal las subredes las guarda como si fueran @s normales, no siempre interesa esto.
Aadir manualmente una ruta resumida con el auto-summary desactivado:
R1(config-if)#ip summary-address eigrp n_SA @IP @Wildcard
Comprobar la configuracin EIGRP:
Visualizar la tabla de vecinos
R1#show ip eigrp neigbors
Visualizar la tabla de topologa (slo sucesores factibles)
R1#show ip eigrp topology [NSA] [@IP y mascara]
Visualizar la tabla de topologa (rutas activas | pendientes | sin sucesores)
R1#show ip eigrp topology active | pending | zero successors
Visualizar la tabla de topologa (completa)
R1#show ip eigrp topology all-links
Ver el n total de paquetes eigrp enviados y recibidos
R1#show ip eigrp traffic [nSA]
Ver la actividad del successor factible y si se estn instalando y borrando las actualizaciones de
ruta:
R1#debug ip eigrp fsm
Muestra los paquetes eigrp entrantes y salientes
R1#debug ip eigrp packet
4- TESTEOS BSICOS Y COMPROBAR QUE TODO EST BIEN
4.1- Comprobar conectividad (de capa 3) con ping
R1#ping [Link]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1#
Cada ! es un paquete de eco que ha ido y vuelto. Cuando sale un . en vez de un ! es un
paquete que NO ha llegado al destino y vuelto.
4.2- Comprobar conectividad con ping avanzado
R1#ping
Protocol [ip]:
Target IP address: [Link]
Repeat count [5]: 10
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to [Link], timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 1/2/4 ms
R1#
4.3- Traceroute (o trace)
R1#traceroute [Link]
"Type escape sequence to abort."
Tracing the route to [Link]
1 [Link] 0 msec 16 msec 0 msec
2 [Link] 20 msec 16 msec *
R1#
4.4- Conectarse por telnet de un router a otro
Simplemente poner telnet [nombre-router / @IP] y se conecta. Se sale con exit. Y se
puede suspender la conexin con CRTL+SHIFT+6 y luego x. Al darle a Intro reanudar la
sesin. Se puede cerrar una sesin suspendida con disconnect.
Show sessions muestra las sesiones que se han iniciado en el router.
5- CDP
5.1- Show cdp
Muestra la configuracin general del cdp.
R1#show cdp
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
R1#
5.2- Show cdp interface
R1#show cdp interface
Serial0 is up, line protocol is up
encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial1 is down, line protocol is down
encapsulation HDLC
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Ethernet0 is up, line protocol is up
encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
FastEthernet0 is down, line protocol is down
encapsulation ARPA
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
R1#
Muestra de cada interfaz:
- Estado de la interfaz y del protocolo (si est encendida y le llegan mensajes de actividad)
- Tipo de encapsulacin de los paquetes
- Cada cuanto se mandan paquetes CDP por ah
- Tiempo de espera
5.3- Show cdp neigbors
R1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route
Bridge
S -Switch, H - Host, i - IGMP, r - Repeater
Device ID
Local Intrfce
Holdtme Capability Platform Port ID
Switch1900
Eth0
174
T S
1912
1
R2
Ser0
174
R
1720
2
R1#
Muestra los dispositivos directamente conectados indicando:
Nombre Interfaz Tiempo que lleva encendido Tipo de aparato Modelo ID del puerto
5.4- Show cdp neigbors detail
R1#show cdp neighbors detail
------------------------Device ID: Switch1900
Entry address(es):
Platform: Boson 1912 , Capabilities: Trans-Bridge Switch
Interface: Eth0, Port ID (outgoing port): 1
Holdtime: 170 sec
Version :
Boson Operating System Software
Software, Version 12.1(16), RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2001 by Systems, Inc.
Compiled Fri 02-Mar-01 17:34 by dchih
------------------------Device ID: R2
Entry address(es):
IP address: [Link]
Platform: Boson 1720 , Capabilities: Router
Interface: Ser0, Port ID (outgoing port): 2
Holdtime: 170 sec
Version :
Boson Operating System Software
Software, Version 12.1(16), RELEASE SOFTWARE (fc2)
Copyright (c) 1986-2001 by Systems, Inc.
Compiled Fri 02-Mar-01 17:34 by dchih
R1#
Muestra la informacin detallada de las actualizaciones cdp que le llegan al router (de los
dispositivos conectados directamente).
5.5- Show cdp traffic
Muestra todo el trfico de paquetes CDP que ha habido.
R1#show cdp traffic
Packets output: 415, Input: 514
Hdr syntax: 408, Chksum error: 0, Encaps failed: 6
No memory: 0, Invalid packet: 0, Fragmented: 0
R1#
Debug cdp packets debera mostrar la informacin cdp en tiempo real. Se para con
undebug all. El show cdp traffic se puede resetear con clear cdp counters.
6-SHOWS
6.1- Show clock
R1#show clock
*[Link] UTC March 1 1993
Muestra la hora y fecha del router.
Se puede ajustar con:
R1#clock set hh:mm:ss dd mm aaaa
6.2- Show history
Muestra los ltimos 10 comandos que se han ejecutado en el router
6.3- Show flash
R1#show flash
System flash directory:
File Length
Name/status
1
5880916 [Link]
[5880980 bytes used, 2507628 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
Muestra el contenido de la flash:
n de archivo, tamao, nombre
espacio usado, disponible y total
6.4- Show version:
R1#show version
Boson Operating Simulation Software
BOSS (tm) C1700 Software (C1700-Enterprise), Version 12.1, RELEASE
SOFTWARE
Copyright (c) 1998-2003 by Boson Software, Inc.
BOSS ROM: System Bootstrap, Version 12.2, RELEASE SOFTWARE
R1 Uptime Is 0 days, 0 hours, 18 minutes
System restarted by power-on
System image file is ""flash:[Link]"", booted via
flash
Boson 1700 (BOSS) processor (revision 5.0)
1 Fast Ethernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of simulated non-volatile configuration memory.
8192K bytes of simulated System flash (Read/Write)
Configuration register is 0X2102
Muestra:
-Versin IOS que se est ejecutando en la RAM
-Tiempo que lleva el router encendido
-Cmo se reinici la ultima vez.
-Qu IOS carga y de donde
-Modelo de router y micro
-Interfaces
-Memoria NVRAM
-Memoria Flash
-Valor hexadecimal del registro de configuracin
6.5- Show running-cofig (y startup config):
R1#show running-config
Building configuration...
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
enable secret 5 $sdf$6978yhg$jnb76sd
!
ip subnet-zero
!
interface Serial0
description Conexin a R2
ip address [Link] [Link]
no ip directed-broadcast
clock rate 56000
interface FastEthernet0
no ip address
no ip directed-broadcast
shutdown
!
ip classless
no ip http server
!
line con 0
login
transport input none
password cisco
line aux 0
line vty 0 4
login
password cisco
!
no scheduler allocate
end
NOTA: En el tema 5 explica cmo se hace para guardar esta configuracin en un txt
capturndola con hiper-terminal. Es necesario recordar que lo que ponga tras cada ! el router lo
considerar como un comentario y que hay que borrar :
- show running-config
- Building configuration...
- Los --MOREque pueda haber
- Cambiar el enable secret 5 $sdf$6978yhg$jnb76sd por enable secret class
- Los Current configuration: que pueda haber
- Todo lo que salga despus de end
Y que hay que poner a mano en cada interfaz un no shutdown.
6.6- Show arp
R1#show arp
Protocol
Internet
Internet
Internet
Address
[Link]
[Link]
[Link]
Age (min)
3
3
Hardware Addr
000C.3782.8690
000C.1573.8180
000C.7418.9903
Type
ARPA
ARPA
ARPA
Interface
Ethernet0
Ethernet0
Ethernet0
R1#
Muestra de cada @IP conocida la @MAC que le corresponde.
6.7-Show ip route
R1#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
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, * candidate default
U per-user static route
Gateway of last resort is not set
[Link]/24 is subnetted, 1 subnets
[Link] is directly connected, Ethernet0
[Link]/24 is subnetted, 1 subnets
C
[Link] is directly connected, Serial0
[Link]/24 is subnetted, 1 subnets
R
[Link] [120/1] via [Link], [Link], Serial0
Saca por pantalla la tabla de enrutamiento.
Muestra 1 los cdigos
Si hay un Gateway de ltimo recurso y su @IP
Las direcciones y si tienen subredes:
Las que estn directamente conectadas : @Red e interfaz
Las que pilla por un protocolo de enrutamiento:
Protocolo @Red [Distancia administrativa / Mtrica] via @IP_destino, Tiempo que ha pasado
desde la ltima actualizacin, Interfaz de salida.
Tambin podemos indicarle que muestre slo informacin detallada de un protocolo:
R1#show ip route @IP / static / rip / igrp / ospf
C
6.8- Clear ip route:
R1#clear ip route *
R1#clear ip route @IP
Se cargan la informacin de la tabla de enrutamiento o slo una entrada concreta.
6.9- Show controllers:
Router#show controllers s0
HD unit 0, idb = 0x1AE828, driver structure at 0x1B4BA0
buffer size 1524 HD unit 0,V.35 DCE cable
cpb = 0x7, eda = 0x58DC, cda = 0x58F0
RX ring with 16 entries at 0x4075800
DCE V.35 serial cable attached
00 bd_ptr=0x5800 pak=0x1B5E24 ds=0x4079108 status=80 pak_size=13
01 bd_ptr=0x5814 pak=0x1B85B8 ds=0x4080384 status=80 pak_size=13
02 bd_ptr=0x5828 pak=0x1B880C ds=0x4080A40 status=80 pak_size=69
()
cpb = 0x7, eda = 0x6014, cda = 0x6014
TX ring with 1 entries at 0x4076000
bd_ptr=0x6000 pak=0x000000 ds=0x4084574 status=80 pak_size=13
01 bd_ptr=0x6014 pak=0x000000 ds=0x4084574 status=80 pak_size=13
0 missed datagrams, 0 overruns
0 bad datagram encapsulations, 0 memory errors
0 transmitter underruns
0 residual bit errors
Muestra el tipo de cable usado y estadsticas y errores de transmisin de capa 1.
6.10- Show interfaces
Muestra la siguiente informacin detallada de cada interfaz:
R1# show interface s0
Serial0 is up, line protocol is down
Hardware is HD64570
Internet address is [Link]/24
MTU 1500 bytes, BW Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input [Link], output [Link], output hang never
Last clearing of show interface counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 1000 bits/sec, 2 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
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
La interfaz est desactivada, activada o activada y funcionando. Si hay conexin.
Modelo de la pieza de la interfaz
@IP que tenga configurada
Varias estadsticas.
Como se ve en el ejemplo se puede hacer un show interface de cada una por separado. Es
mucho ms cmodo que a pelo porque as no saca varias pantallas y no tenemos que buscar lo
que nos interesa.
6.11- Show ip interface s0
R1#show ip interface s0
Serial0 is up, line protocol is up
Internet address is [Link]/24
Broadcast address is [Link]
MTU 1500 bytes,
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is not set
Inbound access list is not set
Proxy ARP Is Enabled
Security Level Is Default
Split horizon Is Enabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Null turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
router Discovery Is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Probe proxy name replies are disabled
Policy routing Is disabled
Network address translation is disabled
WCCP Redirect outbound is disabled
WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled
6.12- Show ip interface brief:
Router# show ip interface brief
Interface
IP-Address
Protocol
Serial0
up
Ethernet0
up
OK? Method Status
[Link]
YES unset
up
[Link]
YES unset
up
6.10- Show protocols
R1#show protocols
Global values:
Internet Protocol routing is enabled
Serial0 is up, line protocol is up
Internet address is [Link]/24
Serial1 is administratively down, line protocol is down
Ethernet0 is up, line protocol is up
Internet address is [Link]/24
FastEthernet0 is administratively down, line protocol is down
Muestra qu protocolo est usando el router (en este caso RIP).
El estado de la interfaz, si tiene comunicacin o no.
La @IP que tenga configurada
6.11- Show ip protocols
Router#show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 26 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing:
rip
Default version control: send version 1, receive any version
Interface
Send Recv
Key-chain
Serial0
1
1 2
Ethernet0
1
1 2
Routing for Networks:
[Link]
[Link]
Routing Information Sources:
[Link]
120
Distance: (default is 120)
[Link]
6.13- Show ip ospf interface:
R1#show ip ospf interface
Serial0 is up, line protocol is up
Internet Address [Link]/24 , Area 0
Process ID 1, Router ID [Link], Network Type POINT_TO_POINT,
Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT, Priority 1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in [Link]
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor [Link]
Suppress hello for 0 neighbor(s)
Ethernet0 is up, line protocol is up
Internet Address [Link]/24 , Area 0
Process ID 1, Router ID [Link], Network Type POINT_TO_POINT,
Cost: 100
Transmit Delay is 1 sec, State POINT_TO_POINT, Priority 1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in [Link]
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
6.14- Show ip ospf
R1#show ip ospf
Routing Process "ospf 1" with ID [Link]
Supports only single TOS(TOS0) routes
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 0. Checksum Sum 0x0
Number of DCbitless external LSA 0
Number of DoNotAge external LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm executed 4 times
Area ranges are
Number of LSA 3. Checksum Sum 0x2212D
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
6.15- Show ip ospf neighbor
R1#show ip ospf neighbor
Neighbor ID
Pri
State
Interface
[Link]
1
FULL/
Serial0
Dead Time
Address
[Link]
[Link]
6.15- Show ip ospf neighbor detail
R1#show ip ospf neighbor detail
Neighbor [Link], interface address [Link]
In the area 1 via interface Serial0
Neighbor priority is 1, State is FULL, 6 state changes
DR is [Link] BDR is [Link]
Options 2
Dead timer due in
6.16- Show ip ospf database:
R1#show ip ospf database
OSPF Router with ID ([Link]) (Process ID 1)
Router Link States (Area 0)
Link ID
ADV Router
Age
Seq#
Checksum Link
count
[Link]
[Link]
0
0x80000009
0x6280
[Link]
[Link]
0
0x80000005
0x2826
[Link]
[Link]
0
0x80000009
0x4381
6.17- Show ip eigrp neighbors
R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 10
H
Address
Interface
Seq
Num
0
[Link]
Se0
Hold Uptime
SRTT
(sec)
(ms)
5 [Link] 1123
RTO
Q
Cnt
6738
6.18- Show ip eigrp interfaces:
R1#show ip eigrp interfaces
IP-EIGRP interfaces for process 1
Interface
Se0
Et0
Peers
1
1
Xmit Queue
Un/Reliable
0/0
0/0
Mean
SRTT
1968
1968
Pacing Time
Un/Reliable
0/10
0/10
Multicast
Flow Timer
0
0
Pending
Routes
0
0
6.19- Show ip eigrp topology:
R1#show ip eigrp topology
IP-EIGRP Topology Table for process 1
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status
P [Link]/8, 1 successors, FD is 28160
via Summary(28160/0), Null0
P [Link]/24, 1 successors, FD is 28160
via Connected, Serial0
6.20- Show ip eigrp traffic:
R1#show ip eigrp traffic
Muestra el total de paquetes eigrp enviados y recibidos. Boson no lo pilla.
7- DEBUGS
NOTA: Los debugs tiran mucho de CPU y pueden ocasionar mal funcionamiento de la red. Se
desactiva con undebug all.
7.2- Debug ip rip:
Router# debug ip rip
RIP protocol debugging is on
Router#
RIP: sending update to [Link] via Serial0 ([Link])
subnet [Link], metric 1
RIP: sending update to [Link] via Ethernet0 ([Link])
subnet [Link], metric 1
subnet [Link], metric 2
RIP: received update from [Link] on Serial0
[Link] in 1 hops
7.3- Debug ip rip database:
Muestra la base de datos privada RIP. Boson no lo pilla.
7.3- Debug ip igrp events:
Router#debug ip igrp events
IGRP event debugging is on
IGRP: sending update to [Link] via Serial0 ([Link])
IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
IGRP: Total routes in update: 1
IGRP: sending update to [Link] via Ethernet0 ([Link])
IGRP: Update contains 0 interior, 2 system, and 0 exterior routes.
IGRP: Total routes in update: 2
IGRP: received update from [Link] on Serial0
IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
IGRP: Total routes in update: 1
7.4- Debug ip igrp transactions:
Router#debug ip igrp transactions
IGRP protocol debugging is on
IGRP: sending update to [Link] via Serial0 ([Link])
subnet [Link], metric=1
IGRP: sending update to [Link] via Ethernet0 ([Link])
subnet [Link], metric=1
subnet [Link], metric=296
IGRP: received update from [Link] on Serial0
network [Link], metric 651 (neighbor 1)
7.5- Debug ip packet detail:
Muestra todo el trfico de paquetes entrante y saliente, tambin los paquetes que ha
bloqueado. Boson no lo saca :(
7.6- Debug ip ospf:
Muestra todo el trafico de paquetes ospf. Boson no lo saca.
7.8- Debug ip eigrp fsm:
Muestra la actividad de sucesor factible y si se estn instalando y borrando las actualizaciones
de ruta. (boson)
7.9- Debug eigrp packet
Muestra los paquetes eigrp entrantes y salientes (boson)
R1#debug ip eigrp packet