Nothing Special   »   [go: up one dir, main page]

Sesion 10 Ruteo Estatico

Descargar como ppt, pdf o txt
Descargar como ppt, pdf o txt
Está en la página 1de 37

PANORAMA DE ENRUTAMIENTO

El enrutamiento es el proceso por que un paquete va de


una ubicación a otra.
Para enrutar paquetes de información, un router debe de
realizar las siguientes funciones:

• Conocer la dirección destino.


• Identificar el origen de la información.
• Descubrir posibles rutas.
• Seleccionar las mejores rutas.
• Verificar y mantener la información de enrutamiento.
• La información de enrutamiento que un router aprende,
se almacena en su tabla de enrutamiento.
ENRUTAMIENTO ESTATICO

El enrutamiento estático es definido por el propio


administrador, ingresando los comandos respectivos para
crear las rutas desde el origen al destino a alcanzar.

A D

Ruta 1 = A B D
Ruta 2 = A C D
RUTA OPTIMA
Las decisiones de enrutamiento producen en el dispositivo
de red origen (router). La decisión se toma en base a las
métricas utilizadas para un protocolo de encaminamiento
concreto.
Los protocolos de enrutamiento pueden utilizar algunas de
las métricas siguientes para determinar la mejor ruta hacia
una red destino:

• Longitud del trayecto.


• Fiabilidad.
• Retardo.
• Ancho de banda.
• Carga.
• Coste de las comunicaciones.
RUTAS ESTATICAS VS. DINAMICAS
Hay dos formas de informar a un router sobre donde se
debe reenviar los paquetes que no están conectados
directamente.

Rutas estáticas: Rutas aprendidas por el router a


través del administrador, que establece dicha
ruta manualmente.

Rutas dinámicas: Son rutas aprendidas


automáticamente por el router, una vez que el
administrador ha configurado un protocolo de
enrutamiento que permite el aprendizaje de las
rutas.
RUTA ESTATICA

Conexión punto
A a punto o circuito
conmutado

Solo una simple conexión


de red sin necesidad de
B
actualización de
enrutamiento
“Trozo” de red

La ruta fija para dirigirse a otra red refleja el previo


conocimiento del administrador
CONFIGURACION DE RUTA ESTATICA
Se usa el comando IP Route
La sintaxis es la siguiente:

R1(config)#
R1(config)# ip
ip route
route red
red máscara
máscara dirección/interfaz
dirección/interfaz [distancia]
[distancia] [permanent]
[permanent]

Donde:
Red: Es la red o subred de destino.
Máscara: Es la máscara de subred.
Dirección: Es la IP del router del próximo salto.
Interfaz: Es el nombre de la interfaz para llegar a la red destino.
Distancia: es un parámetro opcional que define la distancia
administrativa.
Permanent: Es un parámetro opcional que especifica que la
ruta no debe de ser eliminada, aunque la interfaz deje de estar
activa.
EJEMPLO DE RUTEO ESTATICO

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

200.1.1.0
192.168.1.0 192.168.2.0
S0/0
255.255.255.0 200.1.1.1 255.255.255.0

RA E0
RB
S0/1
200.1.1.2

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


EJEMPLO DE RUTEO ESTATICO

RA(config)# ip route 192.168.2.0 255.255.255.0 200.1.1.2

200.1.1.0
192.168.1.0 192.168.2.0
S0/0
255.255.255.0 200.1.1.1 255.255.255.0
E0
RA
A B
RB
S0/1
200.1.1.2

RB(config)# ip route 192.168.1.0 255.255.255.0 200.1.1.1


ENRUTAMIENTO
200.1.1.1 200.1.1.2 200.2.2.1 200.2.2.2

200.1.1.0 /24 200.2.2.0 /24


S0/0 S0/1 S0/0 S0/1
RA RB RC
192.168.1.1 192.168.2.1 192.168.3.1

192.168.1.0 /24 192.168.2.0 /24 192.168.3.0 /24

Especificación de la interfaz de salida


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

Comando
Comando Destino
Destinored
red Mascara
Mascara Gateway
Gateway
RB(config)#
RB(config)#ip
iproute
route 192.168.3.0
192.168.3.0 255.255.255.0
255.255.255.0 S0/0
S0/0

Especificación de la dirección IP del siguiente salto


RB(config)#
RB(config)#ip
iproute
route 192.168.1.0
192.168.1.0 255.255.255.0
255.255.255.0 200.1.1.1
200.1.1.1
RB(config)#
RB(config)#ip
iproute
route 192.168.3.0
192.168.3.0 255.255.255.0
255.255.255.0 200.2.2.2
200.2.2.2
TABLA DE ENRUTAMIENTO
200.1.1.1 200.1.1.2 200.2.2.1 200.2.2.2

200.1.1.0 /24 200.2.2.0 /24


S0/0 S0/1 S0/0 S0/1
RA RB RC
192.168.1.1 192.168.2.1 192.168.3.1

192.168.1.0 /24 192.168.2.0 /24 192.168.3.0 /24

RB#
RB#show
showipiproute
route

CC 200.1.1.0/24
200.1.1.0/24isisdirectly
directlyconnected,
connected,Serial0/1
Serial0/1

CC 200.2.2.0/24
200.2.2.0/24isisdirectly
directlyconnected,
connected,Serial0/0
Serial0/0

SS 192.168.1.0
192.168.1.0[1/0]
[1/0]via
via200.1.1.1
200.1.1.1

SS 192.168.3.0
192.168.3.0[1/0]
[1/0]via
via200.2.2.2
200.2.2.2

CC 192.168.2.0
192.168.2.0[1/0]
[1/0]isisdirectly
directlyconnected,
connected,FastEthernet0/1
FastEthernet0/1
CONFIGURANDO PUERTOS 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

Switch A RouterA
F0/0 PPP
IP : 192.168.3.0
Mask : 255.255.255.0
IP LAN: 192.168.1.0
S0/0 (DTE) RouterB
Mask : 255.255.255.0
Switch B
S0/0 (DCE)

F0/0

IP LAN : 192.168.2.0
Mask : 255.255.255.0

RouterA(config)# interface fastethernet 0/0


RouterA(config - if)# ip address 192.168.1.1 255.255.255.0
RouterA(config - if)# no shutdown
RouterA(config - if)# exit
CONFIGURANDO PUERTOS SERIALES
RouterB(config)# interface serial 0/0
RouterB(config-if)# ip address 192.168.3.2 255.255.255.0
RouterB(config-if)# encapsulation ppp
RouterB(config-if)# clock rate 64000
RouterB(config-if)# no shutdown
RouterB(config-if)# exit
Switch A PPP
IP :
RouterA 192.168.3.0
IP LAN: 192.168.1.0 Mask :
Mask : 255.255.255.0 F0/0 255.255.255.0
S0/0 (DTE) RouterB
IP LAN :
S0/0 (DCE) Switch B 192.168.2.0
Mask :
F0/0 255.255.255.0

RouterA(config)# interface serial 0/0


RouterA(config-if)# ip address 192.168.3.1 255.255.255.0
RouterA(config-if)# encapsulation ppp
RouterA(config-if)# no shutdown
RouterA(config-if)# exit
ENRUTAMIENTO ESTATICO

RouterB(config)# ip route 192.168.1.0 255.255.255.0 192.168.3.1


RouterB(config)# exit

RouterA PPP
Switch A IP : 192.168.3.0
Mask : 255.255.255.0
F0/0
S0/0 (DTE)
RouterB
IP LAN: 192.168.1.0
Mask : 255.255.255.0
S0/0 (DCE)
Switch B
F0/0

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
ENCAPSULAMIENTO

La encapsulación de una interfaz define el formato


de datos envios y el protocolo de enlace de datos de
la interfaz. La encapsulación de una interfaz se
define con el comando de configuración de interfaz
ENCAPSULATION.

Router(Config)# interface serial 0/0


Router(Config)# encapsulation PPP/HDLC/FRAME-
RELAY/X.25/ATM-DXI/
HDLC (High-Level Data Link Control)

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


un protocolo síncrona ordenados por bits. Se utiliza
para conectar directamente a un router. Los routers
cisco utilizan la encapsulación HDLC de forma
predeterminada en todas las interfaces seriales
síncronas.
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 encapsulación síncrona o


asíncrona.
EJEMPLO:
WAN
IP : 192.168.3.0 192.168.2.1
192.168.1.1
Mask : 255.255.255.0
RB 192.168.2.2
RA PPP
F0/0
192.168.1.2
F0/0 S0/0 (DTE) S0/0 (DCE)
Switch Switch
192.168.3.2
192.168.3.1 IP LAN 2: 192.168.2.0
IP LAN 1: 192.168.1.0
Mask : 255.255.255.0
Mask : 255.255.255.0

Router> enable Router> enable


Router# configure terminal Router# configure terminal
Route(config)# hostname RA Router(config)# hostname RB
RA(config)# interface fastethernet 0/0 RB(config)# interface fastethernet 0/0
RA(config - if)# ip address 192.168.1.1 255.255.255.0 RB(config - if)# ip address 192.168.2.1 255.255.255.0
RA(config - if)# no shutdown RB(config - if)# no shutdown
RA(config - if)# exit RB(config - if)# exit
RA(config)# interface serial 0/0 RB(config)# interface serial 0/0
RA(config - if)# ip address 192.168.3.1 255.255.255.0 RB(config - if)# ip address 192.168.3.2 255.255.255.0
RA(config - if)# encapsulation ppp RB(config - if)# encapsulation ppp
RA(config - if)# no shutdown RB(config - if)# clock rate 64000
RA(config - if)# exit RB(config - if)# no shutdown
RA(config)# ip route 192.168.2.0 255.255.255.0 RB(config - if)# exit
192.168.3.2 RB(config)# ip route 192.168.1.0 255.255.255.0
RA(config)# exit 192.168.3.1
RA# write memory RB(config)# exit
RB# write memory
EJEMPLO: ENRUTAMIENTO ESTATICO

200.20.20.0 /24

200.20.20.1 /24
R2 .1
S0/0 F0/0
.2
R1 S0/0 .1 DCE S0/1
DCE .1
DTE
192.168.1.0 /24
F0/0 .1
192.168.2.0 /24

.2
DTE S0/0

R3 .1
F0/0

200.10.10.0 /24

200.30.30.0 /24
SOLUCION

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

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

Router3

Interfaces:
Fastethernet 0/0 : 200.30.30.1/24
Serial 0/0 : 192.168.2.2/24
SOLUCION

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
SOLUCION

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
SOLUCION

Router1
Router> enable
Router# configure terminal
Router(config)# hostname Router1
Router1(config)# interface ethernet 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
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
SOLUCION
Router2
Router> enable
Router# configure terminal
Router(config)# hostname Router2
Router2(config)# interface ethernet 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
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/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
SOLUCION
Router3
Router> enable
Router# configure terminal
Router(config)# hostname Router3
Router3(config)# interface ethernet 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
ENRUTAMIENTO POR DEFAULT O PREDETERMINADA
La ruta predeterminada es un tipo especial de ruta estática 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 información relativa a todas las rutas posibles.
La ruta predeterminada se conoce también como gateway de
último destino. 10.0.1.0
30.0.1.0 red
WAN: 172.16.2.0
PPP
30.0.1.2 S0/0
S0/0

172.16.2.1 172.16.2.2

30.0.1.3 20.0.1.0
red

Router(config)# ip route 0.0.0.0 0.0.0.0 172.16.2.2


RUTEO ESTATICO & RUTEO POR DEFAULT
Se tiene la siguiente topología 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 estáticas.
Mostrar la tabla de ruteo de cada uno del os routers.

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

LAN 2 LAN 4
LAN 1 192.168.1.0 / 24
192.168.2.0 / 24
192.168.4.0 / 24
RUTEO ESTATICO & RUTEO POR DEFAULT

LAN 2 192.168.3.0 /
24

WAN 2 :
WAN 1 200.20.20.0 / 30
200.10.10.0/30
PPP Fe 0/0: .1
PPP
S 0/0: .1 S 0/1: .1
DCE S 0/0: .2 S 0/0: .2
R1 R DTE DCE R3
R2 Fe 0/0: .1
Fe 0/0: .1 DTE
1 Fe 0/1: .1

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

(*) Ruta estática por default.


Router(config)#ip route 0.0.0.0 0.0.0.0 200.20.20.2
1
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
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
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
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

R2(config)# interface serial 0/0


R2(config-if)# ip address 200.20.20.2 255.255.255.252
R2(config-if)# encapsulation ppp
R2(config-if)# no shutdown
R2(config-if )# exit
RUTEO ESTATICO & RUTEO POR DEFAULT

Router “R2”

R2(config)# interface serial 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
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 200.20.20.1/32 is directly connected, Serial0/0
S 192.168.4.0/24 [1/0] via 200.20.20.1
S 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 200.10.10.0/30 is directly connected, Serial0/1
C 200.10.10.2/32 is directly connected, Serial0/1
C 192.168.2.0/24 is directly connected, FastEthernet0/1
C 192.168.3.0/24 is directly connected, FastEthernet0/0
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
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
RUTEO ESTATICO & RUTEO POR DEFAULT
R3# show ip route
R3 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
S 192.168.4.0/24 [1/0] via 200.10.10.1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
200.10.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 200.10.10.0/30 is directly connected, Serial0/0
C 200.10.10.1/32 is directly connected, Serial0/0
S 192.168.2.0/24 [1/0] via 200.10.10.1
S 192.168.3.0/24 [1/0] via 200.10.10.1
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 básicas de una red deben desarrollarse en
secuencia desde una capa del modelo de referencia OSI.

7 Aplicación Show interface

6 presentación

5 Sesión

4 Transporte Ping
Trace
3 Red Show ip route
Show interface
2 Enlace de Datos

1 Física
COMANDO PING

Es un paquete (Mensaje ICMP) que se utiliza para


comprobar la conexión entre dos o mas nodos en una
red. El comando ping envía 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.
COMANDO PING

E0=192.168.1.1 E0=192.168.2.1
Echo Request

Echo Reply
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>

También podría gustarte