You are on page 1of 70

El Router

El Router usa su tabla de enrutamiento para determinar la mejor ruta para enviar el paquete. Cuando el Router recibe el paquete, examina la direccin IP de destino y busca la mejor coincidencia con una direccin de red en su tabla de enrutamiento. Esta incluir la interfaz usada para enviar el paquete. Cuando se encuentra una coincidencia, el Router encapsula el paquete IP en la trama de enlace de datos de la interfaz de salida, y despus se enva el paquete hacia su destino.

Caractersticas Principales de un Router :


Es un dispositivo Inteligente Procesa y toma decisiones Genera tabla de enrutamiento (Conoce si sus Routers vecinos estn en funcionamiento).

Siempre toma una direccin Lgica.


Tiene varias interfaces (Sirven para interconectarse con las redes LAN o WAN ). Reconoce las redes que tiene directamente conectadas. Mantiene una actualizacin constante de la topologa (Depende del protocolo).

LOS ROUTERS CONECTAN MEDIOS DIFERENTES

De origen.

De destino.

LAN R1 LAN
Los routers dirigen los paquetes hacia el destino adecuado.

LAN

R2

De origen.
R 1# ip route 192.168.3.0 255.255.255.0 F0/1 SERVER 1 SERVER 2

De destino.

LAN- 1
F0/0 F0/1

LAN -3 LAN-2
192.168.2.0/24
F0/0 F0/1

R1

.1

.2

R2

192.168.1.0/24

192.168.3.0/24

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 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 download static route Gateway of last resort is not set C 192.168.1.0/24 is directly connected, fastethernet0/0

NOTA: Los Routers usan la tabla de enrutamiento igual que un mapa para descubrir la mejor ruta a una direccin dada.

C 192.168.2.0/24 is directly connected, fastethernet0/1


S 192.168.3.0/24 is [1/0] via 192.168.2.2

Configuracin de Interfaces
Una interfaz es una conexin entre un dispositivo y un medio de la red. Todas las interfaces tienen tecnologas subyacentes que se usan para transferir datos a travs de un medio fsico, como el cobre o la fibra. Caractersticas:
Las interfaces de un Router forman parte de las redes que estn directamente conectadas al dispositivo (Router). Estas interfaces activas deben llevar una direccin IP y su correspondiente mscara.

Las interfaces de red de tecnologa Ethernet pueden ser: Ethernet, FastEthernet o GigabitEthernet se refieren a las correspondientes velocidades de 10, 100, 1000 Mbps respectivamente.
Sintaxis:
R1(config)# interface Ethernet / fastethernet /Gigabitethernet [Nro. Interfaz] R1(config-if)# ip address [Dir-ip] [Mscara] R1(config-if)#speed [10/100/1000/Auto] R1(config-if)# duplex [Auto/Full/Half] R1(config-if)# no shutdown R1(config-if)# exit

CONFIGURACIN DE INTERFACES FASTETHERNET


RouterB(config)# interface fastethernet 0/1 RouterB(config - if)# ip address 192.168.3.2 255.255.255.0 RouterB(config - if)# no shutdown RouterB(config - if)# exit

F0/1
Switch A

.1 RA F0/0

IP LAN: 192.168.1.0 /24

.2 F0/1

RB
F0/0 Switch B IP LAN : 192.168.2.0/24

RouterA(config)# interface fastethernet 0/0 RouterA(config - if)# ip address 192.168.3.1 255.255.255.0 RouterA(config - if)# no shutdown RouterA(config - if)# exit

CONFIGURACIN DE INTERFACES FASTETHERNET


RouterB(config)# interface fastethernet 0/0 RouterB(config - if)# ip address 192.168.2.1 255.255.255.0 RouterB(config - if)# no shutdown RouterB(config - if)# exit

F0/1
Switch A

.1 RA F0/0

IP LAN: 192.168.1.0 /24

.2 F0/1 RB F0/0 Switch B IP LAN : 192.168.2.0/24

RouterA(config)# interface fastethernet 0/1 RouterA(config - if)# ip address 192.168.1.1 255.255.255.0 RouterA(config - if)# no shutdown

RouterA(config - if)# exit

Configuracin de Interfaces Fastethernet


192.168.2.2 /24 192.168.1.2 /24 192.168.1.1/24 192.168.2.1/24

Switch A
F0/0
LAN 1: 192.168.1.0 /24 192.168.3.1/24

192.168.3.0 /24

Switch B
RB F0/1
LAN 2: 192.168.2.0 /24

RA

F0/1

F0/0
192.168.3.2/24

Router> enable Router# configure terminal Route(config)# hostname RA RA(config)# interface fastethernet 0/1 RA(config - if)# ip address 192.168.3.1 255.255.255.0 RA(config - if)# no shutdown RA(config - if)# exit RA(config)# interface fastethernet 0/0 RA(config - if)# ip address 192.168.1.1 255.255.255.0 RA(config - if)# no shutdown RA(config - if)# exit RA(config)# ip route 192.168.2.0 255.255.255.0 RA(config)# exit RA# write memory 192.168.3.2

Router> enable Router# configure terminal Router(config)# hostname RB RB(config)# interface fastethernet 0/0 RB(config - if)# ip address 192.168.3.2 255.255.255.0 RB(config - if)# no shutdown RB(config - if)# exit RB(config)# interface fastethernet 0/1 RB(config - if)# ip address 192.168.2.1 255.255.255.0 RB(config - if)# no shutdown RB(config - if)# exit RB(config)# ip route 192.168.1.0 255.255.255.0 RB(config)# exit RB# write memory F0/0

Verificando Estado de las Interfaces

El comando
Show interfaces Ethernet/ Fastethernet /Gigabitethernet /Serial

muestra el estado de las interfaces del router.


Sintaxis R1(config)# Show Interfaces

Si la interfaz no estuviera conectada lgicamente y fsica la primera lnea de muestra el estado de la interfaz en Down . (Ethernet is Down,line Protocol is Down)

Si el administrador deshabilita la interfaz mostrara el siguiente estado de la interfaz.


(Ethernet is administratively Down, line protocol is Down) Examinar estado de las interfaces.

Sintaxis

Router# show ip interface brief


10

INTERFACES SERIALES
La configuracin de las interfaces seriales son anlogas a las interfaces Ethernet, pero debe tener especial cuidado para determinar quien es el DCE(Equipo de comunicaciones)
El DTE(Equipo terminal del abonado) debido a que el DCE lleva el sincronismo de la comunicacin.
Ejemplo:
R1(config)# interface serial 0/0/1 R1(config-if)# ip address 200.1.1.1 255.255.255.0 R1(config-if)# encapsulation ppp R1(config-if)# no shutdown R1(config-if )# exit

Este se configurar slo en la interfaz serial del DCE, el comando clock rate activar el sincronismo en el enlace. Ejemplo :
R1(config)# interface serial 0/0/1 R1(config-if)# ip address 200.2.2.1 255.255.255.0 R1(config-if)# clock rate 64000 R1(config-if)# encapsulation ppp R1(config-if)# no shutdown R1(config-if )# exit

11

CONFIGURACIN DE INTERFACES SERIALES


RB(config)# interface serial 0/0/1 RB(config - if)# ip address 192.168.3.2 255.255.255.0 RB(config- if)# clock rate 64000 RB(config- if)# encapsulation ppp RB(config - if)# no shutdown RB(config - if)# exit

F0/1
Switch A

RA
IP : 192.168.3.0/24

IP LAN: 192.168.1.0 Mask : 255.255.255.0

DTE

.1

PPP .2 S0/0/1

RB
Switch B DCE

S0/0/0

F0/1 IP LAN : 192.168.2.0

RA(config)# interface serial 0/0 /0 RA(config if)# ip address 192.168.3.1 255.255.255.0 RA(config- if)# encapsulation ppp RA(config - if)# no shutdown RA(config - if)# exit

Mask : 255.255.255.0

12

ENCAPSULAMIENTO CON INTEFACEZ SERIALES

HDLC, PPP, SLIP


Lnea Dedicada

X. 25, Frame Relay, ATM

Conmutacin de paquetes

Proveedor de Servicio

PPP, SLIP, HDLC


Conmutacin de circuitos Compaa Telefnica

ENRUTAMIENTO ESTATICO

RouterB(config)# ip route 192.168.1.0 255.255.255.0 192.168.3.1 RouterB(config)# exit

IP : 192.168.3.0

Switch A
F0/1 IP LAN: 192.168.1.0 Mask : 255.255.255.0 RA

Mask : 255.255.255.0 .1 S0/0/0 .2 S0/0/1 RB F0/1

Switch B

IP LAN : 192.168.2.0

Mask : 255.255.255.0

RouterA(config)# ip route 192.168.2.0 255.255.255.0 192.168.3.2


RouterA(config)# exit
14

CONFIGURACIN DE INTERFACES FASTETHERNET Y SERIALES RA F0/0 LAN 1: 192.168.1.0/24


192.168.3.0 /24

RB F0/0

.2

Switch

.2

PPP
S0/0/0 (DTE) S0/0/1 (DCE)

Switch
192.168.3.2 LAN 2: 192.168.2.0/24

192.168.3.1

Nota: Utilizar el simulador Packet Tracer equipos de comunicacin Switch Generic PT , Router Generic PT.
Router> enable Router# configure terminal Route(config)# hostname RA RA(config)# interface fastethernet 0/0 Router> enable Router# configure terminal Router(config)# hostname RB RB(config)# interface fastethernet 0/0

RA(config - if)# ip address 192.168.1.1 255.255.255.0


RA(config - if)# no shutdown RA(config - if)# exit RA(config)# interface serial 0/0/0 RA(config - if)# ip address 192.168.3.1 255.255.255.0 RA(config - if)# encapsulation ppp RA(config - if)# no shutdown RA(config - if)# exit RA(config)# ip route 192.168.2.0 255.255.255.0 RA(config)# exit RA# write memory S0/0/0

RB(config - if)# ip address 192.168.2.1 255.255.255.0


RB(config - if)# no shutdown RB(config - if)# exit RB(config)# interface serial 0/0/1 RB(config - if)# ip address 192.168.3.2 255.255.255.0 RB(config - if)# encapsulation ppp RB(config - if)# clock rate 64000 RB(config - if)# no shutdown RB(config - if)# exit RB(config)# ip route 192.168.1.0 255.255.255.0 RB(config)# exit S0/0/1

RB# write memory

15

PANORAMA DE ENRUTAMIENTO
El enrutamiento es el proceso por que un paquete valla de una ubicacin a otra. Para enrutar paquetes de informacin, un router debe de realizar las siguientes funciones: Conocer la direccin destino. Identificar el origen de la informacin. Descubrir posibles rutas. Seleccionar las mejores rutas. Verificar y mantener la informacin de enrutamiento. La informacin de enrutamiento que un router aprende, se almacena en su tabla de enrutamiento.

16

ENRUTAMIENTO ESTATICO El enrutamiento esttico es definido por el propio administrador, ingresando los comandos respectivos para crear las rutas desde el origen al destino a alcanzar.

C
Ruta 1 = A B D Ruta 2 = A C D

17

RUTA OPTIMA Las decisiones de enrutamiento producen en el dispositivo de red origen (router). La decisin se toma en base a las mtricas utilizadas para un protocolo de encaminamiento concreto.

Los protocolos de enrutamiento pueden utilizar algunas de las mtricas siguientes para determinar la mejor ruta hacia una red destino:
Longitud del trayecto.
Fiabilidad. Retardo.

Ancho de banda.
Carga. Coste de las comunicaciones.
18

RUTAS ESTATICAS VS. DINAMICAS

Hay dos formas de informar a un router sobre donde se debe reenviar los paquetes que no estn conectados directamente.
Rutas estticas: Rutas aprendidas por el router a travs del administrador, que establece dicha ruta manualmente. Rutas dinmicas: Son rutas aprendidas automticamente por el router, una vez que el administrador ha configurado un protocolo de enrutamiento que permite el aprendizaje de las rutas.

19

RUTA ESTATICA

Las rutas estticas se definen administrativamente y establecen rutas especificas que han de seguir los paquetes para pasar de un puerto de origen hasta un puerto destino. Se establece un control preciso del enrutamiento segn los parmetros del administrador.

20

Configuracin de una Ruta Esttica


Interfaz Local Ruta 1 192.168.1.0/24 S0/0/0 R1 F0/0 .1 PPP Ruta 2 192.168.1.0/24 IP Prximo Salto WAN 200.1.1.0/24 S0/0/1 .2 R2
CONSEGUIR

NOTA: ES NECESARIO CONFIGURAR UNA RUTA ESTATICA EN SENTIDO INVERSO PARA UNA COMUNICACIN EN

AMBAS DIRECCIONES.

F0/0

192.168.2.0/24

Router(config) # Ip route [Red] [Mscara] [Direccin IP/ Interfaz] [Distancia Administrativa] [Permanent]
RED MSCARA DIRECCIN IP/ INTERFAZ DISTANCIA PERMANENT Red o Subred de destino. Mscara de subred de la red destino. Direccin IP del router del prximo salto o la interfaz local que debe usarse para llegar a la red destino. Parmetro opcional, que define la distancia administrativa. Parmetro opcional que especifica que la ruta no debe ser eliminada, aunque la interfaz deja de estar activa. 21

EJEMPLO DE RUTEO ESTATICO RA(config)# ip route 192.168.2.0 255.255.255.0 192.168.3.2


O

RA(config)# ip route 192.168.2.0 255.255.255.0 S0/0/0


192.168.3.0/24 192.168.1.0 255.255.255.0
F0/0

S0/0/0
192.168.3.1

192.168.2.0 255.255.255.0
F0/0

RA A
S0/0/1
192.168.3.2

B RB

RB(config)# ip route 192.168.1.0 255.255.255.0 S0/0/1


O

RB(config)# ip route 192.168.1.0 255.255.255.0 192.168.3.1


22

ENCAPSULAMIENTO

La encapsulacin de una interfaz define el formato de datos envos y el protocolo de enlace de datos de la interfaz. La encapsulacin de una interfaz se

define con el comando de configuracin de interfaz


ENCAPSULATION.

Router(Config)# interface serial 0/0/0


Router(Config-if)#encapsulation PPP/HDLC/FRAMERELAY/X.25/ATM-DXI/

23

HDLC (High-Level Data Link Control)

HDLC (Control de enlace de datos de alto nivel), es

un protocolo sncrona ordenados por bits. Se utiliza


para conectar directamente a un router. Los routers cisco utilizan la encapsulacin HDLC de forma predeterminada en todas las interfaces seriales sncronas. Router(Config)# interface serial 0/0/0 Router(Config-if)# encapsulation HDLC

24

PPP (Point to Point)

PPP (Protocolo de Punto a Punto) es un protocolo de


enlace de datos compatible con los dispositivos cisco. PPP trabaja con varios protocolos de capa de red, como IP, IPX y AppleTalk. PPP funciona tanto como encapsulacin sncrona o asncrona. Router(Config)# interface serial 0/0/0 Router(Config-if)# encapsulation PPP

25

EJEMPLO:
192.168.1.1

WAN IP : 192.168.3.0 Mask : 255.255.255.0 RA RB F0/0


192.168.2.1

PPP
S0/0/0 (DTE) S0/0 /1(DCE)

192.168.2.2

192.168.1.2

Switch
IP LAN 1: 192.168.1.0 Mask : 255.255.255.0
Router> enable Router# configure terminal Route(config)# hostname RA RA(config)# interface fastethernet 0/0

F0/0

Switch
IP LAN 2: 192.168.2.0 Mask : 255.255.255.0

192.168.3.2 192.168.3.1
Router> enable Router# configure terminal Router(config)# hostname RB

RB(config)# interface fastethernet 0/0 RB(config - if)# ip address 192.168.2.1 255.255.255.0 RB(config - if)# no shutdown RB(config - if)# exit RB(config)# interface serial 0/0/1 RB(config - if)# ip address 192.168.3.2 255.255.255.0 RB(config - if)# encapsulation ppp RB(config - if)# clock rate 64000 RB(config - if)# no shutdown 192.168.3.2 RB(config - if)# exit RB(config)# ip route 192.168.1.0 255.255.255.0 RB(config)# exit RB# write memory 192.168.3.1

RA(config - if)# ip address 192.168.1.1 255.255.255.0 RA(config - if)# no shutdown RA(config - if)# exit RA(config)# interface serial 0/0/0 RA(config - if)# ip address 192.168.3.1 255.255.255.0 RA(config - if)# encapsulation ppp RA(config - if)# no shutdown RA(config - if)# exit RA(config)# ip route 192.168.2.0 255.255.255.0 RA(config)# exit RA# write memory

26

EJEMPLO DE RUTEO ESTATICO


S0/0/0 200.1.1.0/24

R1

S0/0/1 .1 DTE PPP .2 DCE

R2

S0/0/0 .1 DTE

192.168.2.0/24

200.2.2.0/24

.2 DCE S0/0/0

192.168.1.0/24

R3

192.168.4.0/24

Router: (R1) R1( Config)# Ip Route 192.168.2.0 R1( Config)# Ip Route 192.168.3.0 R1( Config)# Ip Route 192.168.4.0 R1( Config)# Ip Route 200.2.2.0 255.255.255.0 200.1.1.2 255.255.255.0 200.1.1.2 255.255.255.0 255.255.255.0 S0/0/0 S0/0/0

192.168.3.0/24

Nota: Se debe configurar la ip del prximo salto ( 200.1.1.2, que hace referencia a la direccin de la interfaz del siguiente Router) o el nombre de la interfaz (S 0/0/0) del propio Router por donde saldrn los paquetes hacia el destino .

27

CONFIGURACION DE RUTAS ESTATICAS POR DEFECTO


Cuando el destino al que se pretende llegar son mltiples redes o no se conocen se pueden crear rutas estticas por defecto.

Sintaxis:

Router(Config)# Ip Route 0.0.0.0

0.0.0.0 [Ip del primer salto / interfaz de salida] [Distancia Administrativa ]

R1 S0/0 R3 R2 S0/1

WEB

Router (R3)
R3( Config)# Ip route 0.0.0.0 0.0.0.0 S0/0 28

ENRUTAMIENTO
200.1.1.1 200.1.1.2 200.1.1.0 /24 RA 192.168.1.1 200.2.2.1 200.2.2.0 /24 S0/1 192.168.2.1 RB S0/0 S0/1 192.168.3.1 RC 200.2.2.2

S0/0

192.168.1.0 /24

192.168.2.0 /24

192.168.3.0 /24

Especificacin de la interfaz de salida


RB(config)# ip route 192.168.1.0 255.255.255.0 S0/1

Comando RB(config)# ip route

Destino red 192.168.3.0

Mascara 255.255.255.0

Gateway S0/0

Especificacin de la direccin IP del siguiente salto RB(config)# ip route RB(config)# ip route 192.168.1.0 192.168.3.0 255.255.255.0 200.1.1.1 255.255.255.0 200.2.2.2
29

TABLA DE ENRUTAMIENTO
200.1.1.1 200.1.1.2 200.1.1.0 /24 RA 192.168.1.1 200.2.2.1 200.2.2.0 /24 S0/1 192.168.2.1 RB S0/0 S0/1 192.168.3.1 RC 200.2.2.2

S0/0

192.168.1.0 /24

192.168.2.0 /24

192.168.3.0 /24

RB# show ip route

C
C

200.1.1.0/24 is directly connected, Serial0/1


200.2.2.0/24 is directly connected, Serial0/0 S S 192.168.1.0 [1/1] via 200.1.1.1 192.168.3.0 [1/1] via 200.2.2.2

192.168.2.0 is directly connected, FastEthernet0/1


30

Ejemplo 1
Objetivos : Implementacin de Redes locales, (Ethernet ) y Remotas (Wan).

Configuracin de interfaces Fast-Ethernet y Seriales.


Configuracin de Enrutamiento Esttico. Manejo del Simulador Packet Tracer 5.3.1

31

INSTALACIN DE INTERFAZ EN EL PACKET TRACER FASTETHERNET Y SERIALES


Interfaz Fast-Ethernet (ROUTER 2811) Primer paso: Para poder configurar cualquier dispositivo de red dentro del simulador Packet Tracer tendrn que dar doble clic, en el dispositivo a configurar y luego podrn adicionar la interfaz de red que necesitamos. Segundo paso: Apagamos el Router(1) para poder agregar el mdulo NM-2FE2W (2) seleccionar la mencionada tarjeta luego arrastramos la interfaz de red (3) hacia el Slot libre del Router (4) finalmente ir al paso N (1) para encender el Router . Si desea agregar mas interfaces repita los pasos anteriores.

32

Interfaz Serial (ROUTER 2811) Primer paso: Para poder configurar cualquier dispositivo de red dentro del simulador Packet Tracer tendrn que dar doble clic, en el dispositivo a configurar y luego podrn adicionar la interfaz de red que necesitamos.

Segundo paso:
Apagamos el Router(1) para poder agregar el mdulo WIC-2T (2) seleccionar la mencionada tarjeta luego arrastramos la interfaz de red (3) hacia el Slot libre del Router (4) finalmente ir al paso N (1) para encender el Router. Si desea agregar mas interfaces repita los pasos anteriores.

4 1

2
3

33

Interfaz Fast-Ethernet (ROUTER GENERIC PT) Primer paso: Para poder configurar cualquier dispositivo de red dentro del simulador Packet Tracer tendrn que dar doble clic, en el dispositivo a configurar y luego podrn adicionar la interfaz de red que necesitamos. Segundo paso: Apagamos el Router(1) para poder agregar el mdulo NM-1CFE (2) seleccionar la mencionada tarjeta luego arrastramos la interfaz de red (3) hacia el Slot libre del Router (4) finalmente ir al paso N (1) para encender el Router. Si desea agregar mas interfaces repita los pasos anteriores.

2
1 4

3
34

Interfaz Serial (ROUTER GENERIC PT) Primer paso: Para poder configurar cualquier dispositivo de red dentro del simulador Packet Tracer tendrn que dar doble clic, en el dispositivo a configurar y luego podrn adicionar la interfaz de red que necesitamos.

Segundo paso:
Apagamos el Router(1) para poder agregar el mdulo NM-1SS (2) seleccionar la mencionada tarjeta luego arrastramos la interfaz de red (3) hacia el Slot libre del Router (4) finalmente ir al paso N (1) para encender el Router. Si desea agregar mas interfaces repita los mismos pasos en un Slot disponible.

1
4

35

TOPOLOGA
Sw1 F1/0 .1 .1 F0/0 .2 F1/0 .1

200.1.1.0 /24

192.168.1.0 /24

F6/0 .1

R1
S2/0 (DCE) .1 (DCE) S3/0 .1

R2

F6/0 .1 F0/0

Sw5

Sw2

192.168.3.0 /24 PPP 192.168.2.0 /24


.2 .2

PPP
S2/0 (DTE)

LEYENDA :
* Router Generic -PT (R1,R2,R3,R4) * Switch Generic-PT (SW1, SW2, SW3, SW4, SW5, SW6) * Simulador Packet Tracer 6.0.1 Cable Directo Cable Cruzado Cable Serial

S3/0 (DTE)

F1/0

.2

R4
F0/0 .1 F1/0 .1

R3
.1 F0/0

Sw3

Sw4

Sw6

192.168.6.0 /24

192.168.5.0 /24

192.168.4.0 /24

Nota: Agregar interfaces FastEthernet (F6/0) en los Routers ( R1 y R2).

36

CONFIGURACIN ROUTER R1
Router> enable Router# configure terminal Router(config)# hostname R1 R1(config)# interface FastEthernet 0/0 R1(config - if)# ip address 200.1.1.1 255.255.255.0 R1(config - if)# no shutdown R1(config - if)# exit R1(config)# interface FastEthernet 1/0 R1(config - if)# ip address 192.168.1.1 255.255.255.0 R1(config - if)# no shutdown R1(config - if)# exit R1(config)# interface FastEthernet 6/0 R1(config - if)# ip address 192.168.2.1 255.255.255.0 R1(config - if)# no shutdown R1(config - if)# exit R1(config)# interface serial 2/0 R1(config - if)# ip address 200.3.3.1 255.255.255.0 R1(config - if)# encapsulation ppp R1(config - if)# clock rate 64000 R1(config - if)# no shutdown R1(config - if)# exit R1(config)# ip route 192.168.3.0 255.255.255.0 F0/0 R1(config)# ip route 192.168.4.0 255.255.255.0 F0/0 R1(config)# ip route 192.168.5.0 255.255.255.0 S2/0 R1(config)# ip route 192.168.6.0 255.255.255.0 S2/0 R1(config)# ip route 200.4.4.0 255.255.255.0 F0/0 R1(config)# ip route 200.2.2.0 255.255.255.0 F0/0 R1(config)# exit R1 # write memory

Configuracin de Interfaz F0/0 Configuracin de Interfaz F1/0

Configuracin de Interfaz F6/0

Configuracin de Interfaz S2/0

Habilitar el Enrutamiento Esttico


37

Grabar en NVRAM

CONFIGURACIN ROUTER R2
Router> enable Router# configure terminal Router(config)# hostname R2 R2(config-line)#exit R2(config)# interface FastEthernet 0/0 R2(config - if)# ip address 200.4.4.1 255.255.255.0 R2(config - if)# no shutdown R2(config - if)# exit R2(config)# interface FastEthernet 1/0 R2(config - if)# ip address 200.1.1.2 255.255.255.0 R2(config - if)# no shutdown R2(config - if)# exit R2(config)# interface FastEthernet 6/0 R2(config - if)# ip address 192.168.3.1 255.255.255.0 R2(config - if)# no shutdown R2(config - if)# exit R2(config)# interface serial 3/0 R2(config - if)# ip address 200.2.2.1 255.255.255.0 R2(config - if)# encapsulation ppp R2(config - if)# clock rate 64000 R2(config - if)# no shutdown R2(config - if)# exit R2(config)# ip route 192.168.1.0 255.255.255.0 F1/0 R2(config)# ip route 192.168.2.0 255.255.255.0 F1/0 R2(config)# ip route 192.168.4.0 255.255.255.0 F0/0 R2(config)# ip route 192.168.5.0 255.255.255.0 S3/0 R2(config)# ip route 192.168.6.0 255.255.255.0 S3/0 R2(config)# ip route 200.3.3.0 255.255.255.0 F1/0 R2(config)# exit R2 # write memory

Configuracin de Interfaz F0/0 Configuracin de Interfaz F1/0

Configuracin de Interfaz F6/0

Configuracin de Interfaz S3/0

Habilitar el Enrutamiento Esttico

Grabar en NVRAM

38

CONFIGURACIN ROUTER R3
Router> enable Router# configure terminal Router(config)# hostname R3 R3(config)# interface FastEthernet 0/0 R3(config - if)# ip address 192.168.4.1 255.255.255.0 Configuracin de Interfaz R3(config - if)# no shutdown F0/0 R3(config - if)# exit R3(config)# interface FastEthernet 1/0 Configuracin de Interfaz R3(config - if)# ip address 200.4.4.2 255.255.255.0 F1/0 R3(config - if)# no shutdown R3(config - if)# exit R3(config)# ip route 192.168.1.0 255.255.255.0 F1/0 R3(config)# ip route 192.168.2.0 255.255.255.0 F1/0 R3(config)# ip route 192.168.3.0 255.255.255.0 F1/0 Habilitar el Enrutamiento R3(config)# ip route 192.168.5.0 255.255.255.0 F1/0 Esttico R3(config)# ip route 192.168.6.0 255.255.255.0 F1/0 R3(config)# ip route 200.1.1.0 255.255.255.0 F1/0 R3(config)# ip route 200.2.2.0 255.255.255.0 F1/0 R3(config)# ip route 200.3.3.0 255.255.255.0 F1/0 R3(config)# exit Grabar en NVRAM R3 # write memory

39

CONFIGURACIN ROUTER R4
Router> enable Router# configure terminal Router(config)# hostname R4 R4(config)# interface FastEthernet 0/0 R4(config - if)# ip address 192.168.6.1 255.255.255.0 R4(config - if)# no shutdown R4(config - if)# exit R4(config)# interface FastEthernet 1/0 R4(config - if)# ip address 192.168.5.1 255.255.255.0 R4(config - if)# no shutdown R4(config - if)# exit R4(config)# interface serial 2/0 R4(config - if)# ip address 200.2.2.2 255.255.255.0 R4(config - if)# encapsulation ppp R4(config - if)# no shutdown R4(config - if)# exit R4(config)# interface serial 3/0 R4(config - if)# ip address 200.3.3.2 255.255.255.0 R4(config - if)# encapsulation ppp R4(config - if)# no shutdown R4(config - if)# exit R4(config)# ip route 192.168.1.0 255.255.255.0 S3/0 R4(config)# ip route 192.168.2.0 255.255.255.0 S3/0 R4(config)# ip route 192.168.3.0 255.255.255.0 S2/0 R4(config)# ip route 192.168.4.0 255.255.255.0 S2/0 R4(config)# ip route 200.1.1.0 255.255.255.0 S2/0 R4(config)# ip route 200.4.4.0 255.255.255.0 S2/0 R4(config)# exit R4 # write memory

Configuracin de Interfaz F0/0


Configuracin de Interfaz F1/0 Configuracin de Interfaz S2/0

Configuracin de Interfaz S3/0

Habilitar el Enrutamiento Esttico

Grabar en NVRAM

40

EJEMPLO 2
192.168.3.0/24 R1 F0/0

PPP
DCE S0/2/0 200.1.1.0/24 DTE S0/2/0

R2

F0/0

S0/2/1

192.168.2.0/24

PPP

200.2.2.0/24

S0/2/1 DCE F0/0 R3 192.168.1.0/24 192.168.4.0/24 F0/1

SWITCH 2960 ROUTER 2811 (Adicionar Interfaces Seriales)


41

ROUTER 1 Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/2/0 R1(config-if)#ip address 200.1.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#encapsulation ppp R1(config-if)#no shutdown R1(config-if)#exit R1(config)#ip route 200.2.2.0 255.255.255.0 200.1.1.2 R1(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.2 R1(config)#ip route 192.168.4.0 255.255.255.0 200.1.1.2 R1(config)#ip route 192.168.3.0 255.255.255.0 200.1.1.2 R1(config)#exit R1# write memory R1#show ip route S 192.168.1.0/24 [1/0] via 200.2.2.1 C 192.168.2.0/24 is directly connected, FastEthernet0/0 S 192.168.3.0/24 [1/0] via 200.1.1.2 S 192.168.4.0/24 [1/0] via 200.2.2.1 C 200.1.1.0/24 is directly connected, Serial0/2/0 S 200.2.2.0/24 [1/0] via 200.1.1.2

42

ROUTER 2 Router>enable Router#configure terminal Router(config)#hostname R2 R2(config)#interface fastEthernet 0/0 R2(config-if)#ip address 192.168.3.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/2/0 R2(config-if)#ip address 200.1.1.2 255.255.255.0 R2(config-if)#encapsulation ppp R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/2/1 R2(config-if)#ip address 200.2.2.2 255.255.255.0 R2(config-if)#encapsulation ppp R2(config-if)#no shutdown R2(config-if)#exit R2(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.1 R2(config)#ip route 192.168.1.0 255.255.255.0 200.2.2.2 R2(config)#ip route 192.168.4.0 255.255.255.0 200.2.2.2 R2(config)#exit R2# write memory R2#show ip route S 192.168.1.0/24 [1/0] via 200.2.2.1 S 192.168.2.0/24 [1/0] via 200.1.1.1 C 192.168.3.0/24 is directly connected, FastEthernet0/0 S 192.168.4.0/24 [1/0] via 200.2.2.1 C 200.1.1.0/24 is directly connected, Serial0/2/0 C 200.2.2.0/24 is directly connected, Serial0/2/1

43

ROUTER 3 Router>enable Router#configure terminal Router(config)#hostname R3 R3(config)#interface fastEthernet 0/0 R3(config-if)#ip address 192.168.1.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastEthernet 0/1 R3(config-if)#ip address 192.168.4.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 0/2/1 R3(config-if)#ip address 200.2.2.1 255.255.255.0 R3(config-if)#clock rate 64000 R3(config-if)#encapsulation ppp R3(config-if)#no shutdown R3(config-if)#exit R3(config)#ip route 200.1.1.0 255.255.255.0 200.2.2.1 R3(config)#ip route 192.168.2.0 255.255.255.0 200.2.2.1 R3(config)#ip route 192.168.3.0 255.255.0 200.2.2.1 R3(config)#exit R3# write memory R3#show ip route C 192.168.1.0/24 is directly connected, FastEthernet0/0 S 192.168.2.0/24 [1/0] via 200.1.1.1 S 192.168.3.0/24 [1/0] via 200.2.2.2 C 192.168.4.0/24 is directly connected, FastEthernet0/1 S 200.1.1.0/24 [1/0] via 200.2.2.2 C 200.2.2.0/24 is directly connected, Serial0/2/1

44

EJEMPLO 3
192.168.1.0/24

192.168.3.0/24

R1
F0/0 F0/1 DCE

S0/2/0 DCE S0/2/1

PPP
200.1.1.0/24

S0/2/0 DTE

R3

F0/0

F0/1

192.168.4.0/24

200.2.2.0/24

R2
S0/2/1 DTE

F0/0
F0/1

192.168.2.0/24

192.168.6.0/24

ACCESS POINT GENERIC


SWITCH 2960
192.168.5.0/24

ROUTER 2811 (Adicionar Interfaces Seriales)


45

ROUTER 1 Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface fastEthernet 0/1 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/2/0 R1(config-if)#ip address 200.1.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#encapsulation ppp R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/2/1 R1(config-if)#ip address 200.2.2.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#encapsulation ppp R1(config-if)#no shutdown R1(config)#ip route 192.168.3.0 255.255.255.0 200.1.1.2 R1(config)#ip route 192.168.4.0 255.255.255.0 200.1.1.2 R1(config)#ip route 192.168.5.0 255.255.255.0 200.2.2.2 R1(config)#ip route 192.168.6.0 255.255.255.0 200.2.2.2 R1(config)#exit R1# write memory

46

ROUTER 2 Router>enable Router#configure terminal Router(config)#hostname R2 R2(config)#interface fastEthernet 0/0 R2(config-if)#ip address 192.168.3.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastEthernet 0/1 R2(config-if)#ip address 192.168.4.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/2/0 R2(config-if)#ip address 200.1.1.2 255.255.255.0 R2(config-if)#encapsulation ppp R2(config-if)#no shutdown R2(config-if)#exit R2(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1 R2(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.1 R2(config)#ip route 200.2.2.0 255 255.255.0 200.1.1.1 R2(config)#ip route 192.168.5.0 255.255.255.0 200.2.2.2 R2(config)#ip route 192.168.6.0 255.255.255.0 200.2.2.2 R2(config)#exit R2# write memory

47

ROUTER 3 Router>enable Router#configure terminal Router(config)#hostname R3 R3(config)#interface fastEthernet 0/0 R3(config-if)#ip address 192.168.6.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface fastEthernet 0/1 R3(config-if)#ip address 192.168.5.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 0/2/1 R3(config-if)#ip address 200.2.2.2 255.255.255.0 R3(config-if)#encapsulation ppp R3(config-if)#no shutdown R3(config-if)#exit R3(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1 R3(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.1 R3(config)#ip route 200.1.1.0 255.255.255.0 200.2.2.1 R3(config)#ip route 192.168.3.0 255.255.255.0 200.1.1.2 R3(config)#ip route 192.168.4.0 255.255.255.0 200.1.1.2 R3(config)#exit R3# write memory 48

TABLAS DE RUTEO
ROUTER 1 R1#show ip route C C S S S S C C 192.168.1.0/24 is directly connected, FastEthernet0/0 192.168.2.0/24 is directly connected, FastEthernet0/1 192.168.3.0/24 [1/0] via 200.1.1.2 192.168.4.0/24 [1/0] via 200.1.1.2 192.168.5.0/24 [1/0] via 200.2.2.2 192.168.6.0/24 [1/0] via 200.2.2.2 200.1.1.0/24 is directly connected, Serial0/2/0 200.2.2.0/24 is directly connected, Serial0/2/1

ROUTER 2 R2#show ip route S S C C S S C S 192.168.1.0/24 [1/0] via 200.1.1.1 192.168.2.0/24 [1/0] via 200.1.1.1 192.168.3.0/24 is directly connected, FastEthernet0/0 192.168.4.0/24 is directly connected, FastEthernet0/1 192.168.5.0/24 [1/0] via 200.2.2.2 192.168.6.0/24 [1/0] via 200.2.2.2 200.1.1.0/24 is directly connected, Serial0/2/0 200.2.2.0/24 [1/0] via 200.1.1.1 49

ROUTER 3 R3#show ip route S 192.168.1.0/24 [1/0] via 200.1.1.1 S 192.168.2.0/24 [1/0] via 200.1.1.1 S 192.168.3.0/24 [1/0] via 200.1.1.2 S 192.168.4.0/24 [1/0] via 200.1.1.2 C 192.168.5.0/24 is directly connected, FastEthernet0/1 C 192.168.6.0/24 is directly connected, FastEthernet0/0 S 200.1.1.0/24 [1/0] via 200.2.2.1 C 200.2.2.0/24 is directly connected, Serial0/2/1

50

EJEMPLO: ENRUTAMIENTO ESTATICO


200.20.20.0 /24 200.20.20.1 /24
S0/0/0R2 .1 F0/0 .2 DCE S0/0/1 .1 DCE

R1 S0/0/0
F0/0 .1

.1 DTE

192.168.1.0 /24

192.168.2.0 /24
.2

DTE

S0/0/0 .1

R3
F0/0

200.10.10.0 /24 200.30.30.0 /24

51

SOLUCIN
Router1 Interfaces: Fastethernet 0/0 Serial 0/0/0 : 200.10.10.1/24 : 192.168.1.1/24

Router2 Interfaces: Fastethernet 0/0 Serial 0/0/0 Serial 0/1 : 200.20.20.1/24 : 192.168.1.2/24 : 192.168.2.1/24

Router3 Interfaces: Fastethernet 0/0 Serial 0/0/0 : 200.30.30.1/24 : 192.168.2.2/24 52

SOLUCIN
Rutas del Router1

Ruta1: Para llegar a la LAN 2.

Router1(config) ip route 200.20.20.0 255.255.255.0 192.168.1.2

Ruta 2: Para llegar a la WAN 2. Router1(config) ip route 192.168.2.0 255.255.255.0 192.168.1.2

Ruta 3: Para llegar a LAN 3. Router1(config) ip route 200.30.30.0 255.255.255.0 192.168.1.2

Rutas del Router2 Ruta1: Para llegar a la LAN 1. Router2(config) ip route 200.10.10.0 255.255.255.0 192.168.1.1

Ruta 2: Para llegar la LAN 2. Router2(config) ip route 200.30.30.0 255.255.255.0 192.168.2.2

53

SOLUCIN

Rutas del Router3

Ruta1: Para llegar a la LAN 2. Router3(config) ip route 200.20.20.0 255.255.255.0 192.168.2.1

Ruta2: Para llegar a la WAN1. Router3(config) ip route 192.168.1.0 255.255.255.0 192.168.2.1

Ruta3: Para llegar a la LAN 1. Router3(config) ip route 200.10.10.0 255.255.255.0 192.168.2.1


54

SOLUCIN
Router1 Router> enable Router# configure terminal Router(config)# hostname Router1 Router1(config)# interface Fastethernet 0/0 Router1(config-if)# ip address 200.10.10.1 255.255.255.0 Router1(config-if)# no shutdown Router1(config-if)# exit Router1(config)# interface serial 0/0/0

Router1(config-if)# ip address 192.168.1.1 255.255.255.0


Router1(config-if)# encapsulation ppp Router1(config-if)# no shutdown Router1(config-if)# exit Router1(config) ip route 200.20.20.0 255.255.255.0 192.168.1.2 Router1(config) ip route 192.168.2.0 255.255.255.0 192.168.1.2 Router1(config) ip route 200.30.30.0 255.255.255.0 192.168.1.2 55

SOLUCIN
Router2 Router> enable Router# configure terminal Router(config)# hostname Router2 Router2(config)# interface fastethernet 0/0 Router2(config-if)# ip address 200.20.20.1 255.255.255.0 Router2(config-if)# no shutdown Router2(config-if)# exit Router2(config)# interface serial 0/0/0 Router2(config-if)# ip address 192.168.1.2 255.255.255.0 Router2(config-if)# encapsulation ppp Router2(config-if)# clock rate 64000 Router2(config-if)# no shutdown

Router2(config-if)# exit
Router2(config)# interface serial 0/0/1 Router2(config-if)# ip address 192.168.2.1 255.255.255.0 Router2(config-if)# encapsulation ppp Router2(config-if)# clock rate 64000 Router2(config-if)# no shutdown Router2(config-if)# exit Router2(config) ip route 200.10.10.0 255.255.255.0 192.168.1.1 Router2(config) ip route 200.30.30.0 255.255.255.0 192.168.2.2

56

SOLUCIN
Router3
Router> enable Router# configure terminal Router(config)# hostname Router3 Router3(config)# interface Fastethernet 0/0 Router3(config-if)# ip address 200.30.30.1 255.255.255.0 Router3(config-if)# no shutdown Router3(config-if)# exit Router3(config)# interface serial 0/0 Router3(config-if)# ip address 192.168.2.2 255.255.255.0 Router3(config-if)# encapsulation ppp Router3(config-if)# no shutdown Router3(config-if)# exit Router3(config) ip route 200.20.20.0 255.255.255.0 192.168.2.1

Router3(config) ip route 192.168.1.0 255.255.255.0 192.168.2.1


Router3(config) ip route 200.10.10.0 255.255.255.0 192.168.2.1 57

ENRUTAMIENTO POR DEFAULT O PREDETERMINADA La ruta predeterminada es un tipo especial de ruta esttica que se utiliza cuando no se conoce una ruta hasta un destino determinado, o cuando no es posible almacenar en la tabla de enrutamiento la informacin relativa a todas las rutas posibles. La ruta predeterminada se conoce tambin como gateway de ltimo destino. 10.0.1.0
30.0.1.0 WAN: 172.16.2.0 PPP 30.0.1.2 S0/0/0 172.16.2.1 S0/0/0 172.16.2.2 20.0.1.0 red red

30.0.1.3

Router(config)# ip route 0.0.0.0

0.0.0.0

172.16.2.2
58

RUTEO ESTATICO & RUTEO POR DEFAULT Se tiene la siguiente topologa de red, se le pide a Ud. Configurar cada uno de los routers. Configurar el router R1 con una ruta por default. Configurar el router R2 y R3, con rutas estticas.

Mostrar la tabla de ruteo de cada uno del os routers.


LAN 3 192.168.3.0 / 24
WAN 2 200.10.10.0 / 30 PPP
R2 R3

WAN 1 200.20.20.0 / 30 PPP


R1

LAN 1 192.168.4.0 / 24

LAN 2 192.168.2.0 / 24

LAN 4 192.168.1.0 / 24
59

RUTEO ESTATICO & RUTEO POR DEFAULT


LAN 2 192.168.3.0 / 24 WAN 2 : 200.10.10.0/30 PPP
S 0/0/1: .1 DCE S 0/0/0: .2 DTE

WAN 1 200.20.20.0 / 30 Fe 0/0: .1 PPP


S 0/0/0: .1

DCE R1 R Fe 0/0: .1 1

S 0/0/0: .2 DTE

R2 Fe 0/1: .1

R3

Fe 0/0: .1

*
LAN 1: 192.168.4.0/24 LAN 2 192.168.2.0 / 24

LAN 4 192.168.1.0 / 24

(*) Ruta esttica por default.


Router(config)#ip route 0.0.0.0 0.0.0.0 200.20.20.2 1
60

RUTEO ESTATICO & RUTEO POR DEFAULT Router R1 Router> enable Router# configure temrinal Router(config)# hostname R1 R1(config)# interface FastEthernet 0/0 R1(config-if)# ip address 192.168.4.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface Serial 0/0/0 R1(config-if)# ip address 200.20.20.1 255.255.255.252 R1(config-if)# encapsulation ppp R1(config-if)# clockrate 64000 R1(config-if)# no shutdown R1(config-if)# exit R1(config)# ip route 0.0.0.0 0.0.0.0 200.20.20.2 R1(config)# exit

61

RUTEO ESTATICO & RUTEO POR DEFAULT


TABLA DE RUTEO DEL ROUTER R1
R1

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 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 200.20.20.2 to network 0.0.0.0 200.20.20.0/24 is variably subnetted, 2 subnets, 2 masks C 200.20.20.0/30 is directly connected, Serial0/0 C 200.20.20.2/32 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, FastEthernet0/0 S* 0.0.0.0/0 [1/0] via 200.20.20.2
62

RUTEO ESTATICO & RUTEO POR DEFAULT Router R2 Router# configure temrinal Router(config)# hostname R2 R2(config)# interface fastethernet 0/0 R2(config-if)# ip address 192.168.3.1 255.255.255.0 R2(config-if)# no shutdown R2(config-if)# exit

R2(config)# interface fastethernet 0/1 R2(config-if)# ip address 192.168.2.1 255.255.255.0 R2(config-if)# no shutdown R2(config-if)# exit
63

RUTEO ESTATICO & RUTEO POR DEFAULT Router R2

R2(config)# interface serial 0/0/1


R2(config-if)# ip address 200.10.10.1 255.255.255.252 R2(config-if)# clock rate 64000 R2(config-if)# encapsulation ppp R2(config-if)# no shutdown R2(config-if )# exit R2(config)# ip route 192.168.1.0 255.255.255.0 200.10.10.2 R2(config)# ip route 192.168.4.0 255.255.255.0 200.20.20.1 R2(config)# exit R2# write memory
64

TABLA DE RUTEO DEL ROUTER R1

R2

R2#show ip route Gateway of last resort is not set 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
200.20.20.0/24 is variably subnetted, 2 subnets, 2 masks C 200.20.20.0/30 is directly connected, Serial0/0

C
S S

200.20.20.1/32 is directly connected, Serial0/0


192.168.4.0/24 [1/0] via 200.20.20.1 192.168.1.0/24 [1/0] via 200.10.10.2 200.10.10.0/24 is variably subnetted, 2 subnets, 2 masks

C C C C

200.10.10.0/30 is directly connected, Serial0/1 200.10.10.2/32 is directly connected, Serial0/1 192.168.2.0/24 is directly connected, FastEthernet0/1 192.168.3.0/24 is directly connected, FastEthernet0/0

65

RUTEO ESTATICO & RUTEO POR DEFAULT


Router R3 Router> enable Router# configure temrinal Router(config)# hostname R3 R3(config)# interface fastethernet 0/0 R3(config-if)# ip address 192.168.1.1 255.255.255.0 R3(config-if)# no shutdown R3(config-if)# exit R3(config)# interface serial 0/0/0 R3(config-if)# ip address 200.10.10.2 255.255.255.252 R3(config-if)# encapsulation ppp R3(config-if)# exit R3(config)# ip route 192.168.2.0 255.255.255.0 200.10.10.1 R3(config)# ip route 192.168.3.0 255.255.255.0 200.10.10.1 R3(config)# ip route 192.168.4.0 255.255.255.0 200.10.10.1 R3(config)# ip route 200.20.20.0 255.255.255.252 200.10.10.1 R3(config)# exit R3# write memory 66

RUTEO ESTATICO & RUTEO POR DEFAULT


R3# 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 200.20.20.0/30 is subnetted, 1 subnets S 200.20.20.0 [1/0] via 200.10.10.1

R3

S
C

192.168.4.0/24 [1/0] via 200.10.10.1


192.168.1.0/24 is directly connected, FastEthernet0/0 200.10.10.0/24 is variably subnetted, 2 subnets, 2 masks

C C S S

200.10.10.0/30 is directly connected, Serial0/0 200.10.10.1/32 is directly connected, Serial0/0 192.168.2.0/24 [1/0] via 200.10.10.1 192.168.3.0/24 [1/0] via 200.10.10.1

67

PROBAR LA CONECTIVIDAD DE LA RED Los problemas comunes que se producen en las redes IP son causadas por errores en el esquema de direccionamiento. Las pruebas bsicas de una red deben desarrollarse en secuencia desde una capa del modelo de referencia OSI.

7 6 5 4 3 2 1

Aplicacin presentacin Sesin Transporte Red Enlace de Datos Fsica

Show interface

Ping Trace Show ip route

Show interface
68

COMANDO PING

Es un paquete (Mensaje ICMP) que se utiliza para comprobar la conexin entre dos o mas nodos en una red. El comando ping enva un paquete de host destino y luego espera un paquete de respuesta de ese host. Los resultados de este protocolo de eco pueden ayudar a evaluar la confiabilidad de ruta de host, las demoras en la ruta, si se puede acceder al host o si ste est funcionando.

69

COMANDO PING
E0=192.168.1.1
Echo Request Echo Reply

E0=192.168.2.1

RouterA

RouterB

RouterA>ping 192.168.2.1
Type escape sequence abort Sending 5, 100 byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!
Success rate is 100 percent, round-trip min/avg/max= 1/3/4 ns Router>

70

You might also like