Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Enrutamiento IP
Fundamentos y aplicación - P1
Fredy Campos A.
f.campos@ieee.org
2015
Objetivos
● Conceptos previos
● Enrutamiento IP
● Sistemas autónomos
El mismo principio
para clase B y C.
R1 R4
SW1 SW2
. .. . ..
R6 R5
200.1.1.160/30
200.1.1.152/30
R1 R4
SW1 SW2
6 7 8
. .. . ..
5 3
200.1.1.144/30
R6 R5
Prefijo
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 8
SUPER-REDES O AGREGACIÓN
200.10.4.0 255.255.255.0 S0
200.10.5.0 255.255.255.0 S0
200.10.4.0/24
200.10.4.0/24 200.10.6.0/24
200.10.6.0/24 200.10.6.0 255.255.255.0 S0
200.10.7.0 255.255.255.0 S0
S0
200.10.5.0/24
200.10.5.0/24 200.10.7.0/24
200.10.7.0/24
200.10.4.0 255.255.252.0 S0
Enrutamiento
LAN destino Máscara Salto sigte LAN destino Máscara Salto sigte
200.1.2.5 200.1.2.6
Router 1 Router 6
Red A Directo
Red B Router 1 Red A Router 6
Red B Directo
Router a Router b
Router 4 Router 5
j Dato
i Dato
PC j PC i
Red A Red B
Host
Ethernet
SWITCH FastEthernet ROUTER Serial o
GigaEthernet Tecnología Ethernet
WAN
WAN
Configuración de
router
Consola
Cable directo o
Straight-through
ROUTER A ROUTER B
SWITCH
Cable directo o E0
Straight-through
E1 Cable directo o
Straight-through
HUB
Cable directo o
Straight-through
Cable cruzado o
Crossover
♦Interfaz LAN
♦Interfaz WAN
♦Interfaz Consola/AUX
♦Tablas de enrutamiento
♦Caché ARP ♦Diagnóstico de encendido
♦Colas de espera de paquetes ♦Software del sistema operativo
♦Espacio para ejecutar IOS
running-config
running-config
startup-config
startup-config
flash
flash
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 19
MODOS DEL ROUTER
MODO
MODOEXEC
EXEC
USUARIO Router> enable
USUARIO
Router#
MODO
MODOEXEC
EXEC
PRIVILEGIADO
PRIVILEGIADO
Router# configure terminal
Router(config)#
Modos específicos
MODO
MODODEDE MODO
MODODE
DE
CONFIGURACION
CONFIGURACION CONFIGURACION
CONFIGURACION
DEL
DELROUTER
ROUTER DE
DEINTERFAZ
INTERFAZ
Router(config-router)# Router(config-if)#
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 20
COMANDO BÁSICOS DE LOS ROUTERS
Comando hostname
Router(config)#hostname LIMA
LIMA(config)#hostname
► Asigna nombre a un router.
Comando interface Depende de cada
router
LIMA(config)#interface serial 0/0
LIMA(config-if)#
► Ingresa a la interface serial 0 del router.
Comando ip address <dirección IP> <mascara>
LIMA(config-if)#ip address 10.1.2.1 255.255.255.252
► Asigna una dirección IP a la interfaz seleccionada.
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 23
ENRUTAMIENTO ESTÁTICO
Fa0/0
R6 PC 2
Fa0/1
3
Fa0/0 R2
S0/1 S0/0
2 4
PC 1 R5 R1 WAN 200.1.2.0/24 R3 R7 PC 3
Fa0/0
Fa0/1
Fa0/1
Fa0/0
S0/0 S0/1
1 5
LAN 210.9.8.0/24
Fa0/0
Fa0/0
S0/1 S0/0
con 62 IP máximo
en cada LAN
0 6
S0/0 S0/1
R4 Fa0/0
7
Fa0/1
PC 4 R8
Fa0/0
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 24
ENRUTAMIENTO ESTÁTICO
Fa0/0
R6 PC 2 210.9.8.64/26
Fa0/1
.65
.14
200.1.2.12/30
3
.13 Fa0/0 R2
S0/1 S0/0
.10 .17
200.1.2.8/30
2 200.1.2.16/30
4
.9 .18
WAN 200.1.2.0/27
200.1.2.20/30
200.1.2.4/30
PC 1 R5 R1 R3 R7 PC 3
Fa0/0
Fa0/1
Fa0/1
Fa0/0
S0/0 S0/1
.5 .21
1 5
.1 .6 LAN 210.9.8.0/24 .22 .129
Fa0/0
Fa0/0
S0/1 S0/0
.2 con 62 IP máximo .25
en cada LAN
210.9.8.0/26 210.9.8.128/26
200.1.2.0/30
0 200.1.2.24/30
6
.1 .26
S0/0 S0/1
R4 Fa0/0 .29
200.1.2.28/30
7
Fa0/1 .30
210.9.8.192/26 PC 4 .193 R8
Fa0/0
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 25
CONFIGURACIÓN BÁSICA
Algunos
IOS no
requieren
configurar
clock rate
VERIFIQUE!
Router R1
Red
Red de
de destino
destino Máscara
Máscara Salto
Salto siguiente
siguiente
200.1.2.12
200.1.2.12 255.255.255.252
255.255.255.252 200.1.2.10
200.1.2.10
200.1.2.16
200.1.2.16 255.255.255.252
255.255.255.252 200.1.2.10
200.1.2.10
200.1.2.20
200.1.2.20 255.255.255.252
255.255.255.252 200.1.2.10
200.1.2.10
200.1.2.24
200.1.2.24 255.255.255.252
255.255.255.252 200.1.2.1
200.1.2.1
200.1.2.28
200.1.2.28 255.255.255.252
255.255.255.252 200.1.2.1
200.1.2.1
210.9.8.0
210.9.8.0 255.255.255.192
255.255.255.192 200.1.2.6
200.1.2.6
210.9.8.64
210.9.8.64 255.255.255.192
255.255.255.192 200.1.2.10
200.1.2.10
210.9.8.128
210.9.8.128 255.255.255.192
255.255.255.192 200.1.2.10
200.1.2.10
210.9.8.192
210.9.8.192 255.255.255.192
255.255.255.192 200.1.2.1
200.1.2.1
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 28
TABLA DE ENRUTAMIENTO DEL EJEMPLO
R1 R2
► interface loopback 1
ip address 200.1.2.3 255.255.255.0
no shutdown
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 31
ENRUTAMIENTO POR DEFECTO
INTERNET
RED
RED11
10.0.56.4/30
S0 S1 RED
REDnn
10.0.56.5/30 10.0.56.6/30
RED
RED22
Salto siguiente
Cualquier máscara
Cualquier red
El ASN no es estructurado.
2015 | Fredy Campos | f.campos@ieee.org Enrutamiento IP - Fundamentos y aplicación - P1 34
PROTOCOLO ENRUTADO-vs-ENRUTAMIENTO
tabla
--
-- -- -- -- -- --
-- --
-- --
-- --
-- --
-- --
--
--
-- -- -- -- -- --
-- -- --
-- -- --
-- -- --
-- --
Dato
tabla
-- -- -- tabla
-- -- --
--
-- -- --
-- -- --
-- -- --
-- --
EGP: BGP
AS AS
iBGP