Descargar como pdf o txt
Descargar como pdf o txt
Está en la página 1de 25

FACULTAD DE CIENCIAS E INGENIERÍAS

DEPARTAMENTO DE TECNOLOGÍA
INGENIERÍA EN ELECTRONICA

“2023: SEGUIREMOS AVANZANDO EN VICTORIAS EDUCATIVAS”

Laboratorio de configuración OSPF Multi-Área

Managua, junio 2023

¡A la libertad por la Universidad!


Contenido
Introducción............................................................................................................................ 3
Tabla de Direccionamiento IP ................................................................................................. 6
Configuraciones de los Routers .............................................................................................. 7
Pruebas de Verificación .......................................................................................................... 9
Configuraciones de los Routers obtenidas con el comando show run................................. 11
Tarea: OSPF Multi-Área......................................................................................................... 25
Introducción
Al trabajar con el protocolo de enrutamiento dinámico OSPF, podemos crear un área única,
o varias de éstas. Cuando en nuestra topología de red tenemos solamente un área, decimos
que, hacemos uso de OSPF de área única. Por otro lado, si tenemos más de un área OSPF,
entonces decimos que estamos trabajando con OSPF Multiárea.
En escenarios donde solo tenemos un área OSPF, lo que se utiliza es un área especial llamada
área backbone o área cero. El área cero es el área que, por defecto utiliza el protocolo OSPF
para el intercambio de LSA entre vecinos.
Por otro lado, cuando en nuestra topología se utilizan más de un área, decimos que, se está
haciendo uso de OSPF multiárea. Y en este escenario, además del área cero, existen otras
áreas que se conectan a la primera para comunicarse entre sí.
¿Cuándo utilizar OSPF de área única?
Tanto OSPF de área única, como OSPF multiárea tienen su campo de acción. Primero
hablemos de cuándo utilizar el primero. OSPF de una sola área se utiliza en redes con pocos
enrutadores, quizá algún par de decenas de ellos.
Esto es así, porque mientras menos routers tengamos en la topología, menor será el tamaño
de la LSDB de cada uno. Y el gran beneficio de tener una base de datos pequeña es que, los
routers podrán realizar cada fase muy rápida y eficientemente.
Además de lo anterior, podemos mencionar que, el tiempo de convergencia de los routers
es rápido cuando la LSDB es pequeña. Si por el contrario, tenemos una LSDB enorme,
entonces le llevará más tiempo al router poder completar cada fase. Y además, cuando
ocurre un problema en algún punto de la red, todos los routers deben converger. Y esto
último se logrará en tiempos más prolongados cuando la LSDB es muy grande.
¿Cuándo utilizar OSPF Multiárea?
Aplicar varias áreas OSPF (OSPF Multiárea), solo tiene sentido en redes enormes, con varias
decenas de routers. Si por ejemplo, tenemos más de 200 enrutadores, y cada uno tiene
conectado más de 100 subredes. ¡Imagínense el tamaño de la LSDB resultante de cada
router!. Recuerden que, en OSPF todos los routers deben conocer toda la red, por lo tanto,
cada uno de ellos construye una LSDB idéntica.
Entonces, al tener una base de datos enorme, el router tendrá que emplear más recursos
(RAM y CPU) para procesarla. Y esto resulta no solo en una perdida de recursos valiosos,
sino también, en una pérdida de tiempo.
Por lo tanto, OSPF multiárea debe aplicarse en redes enormes, con cientos de enrutadores.
Y esto con el fin de ahorrar recursos del router, y agilizar los procesos de OSPF.
¿Qué beneficios trae utilizar OSPF Multiárea?
El mayor beneficio es el ahorro de recursos del router (RAM y CPU). Pero, además, haciendo
uso de OSPF de área múltiple, obtenemos tiempos cortos en cada fase. En otras palabras,
todo el proceso de OSPF se realizará más rápido.
Y por si fuera poco, cuando tenemos un entorno multiárea, el proceso de convergencia es
bastante rápido. Pero, ¿por qué pasa esto? Te explicaré de forma fácil.
Al crear varias áreas OSPF, estamos aislando de manera lógica grupos de enrutadores. Y este
aislamiento sirve para que, solamente aquellos routers dentro del mismo grupo puedan
compartirse LSAs entre sí. Con esto logramos que, cada router del grupo forme una LSDB
pequeña. De esta manera, cada router tendrá suficientes recursos para realizar sus procesos
OSPF de manera rápida.
Pero, además, como se está aislando a un grupo de enrutadores del resto, lo que suceda en
el resto de la red no afectará al grupo creado. Asombrosamente, esto es de gran beneficio
durante el proceso de convergencia.
Montar la topología como lo muestra la figura:
Tabla de Direccionamiento IP

Dispositivo Interfaz Dirección IP Máscara de subred

GigabitEthernet2/0 192.168.1.1 255.255.255.0


R1
GigabitEthernet3/0 192.168.2.1 255.255.255.0
GigabitEthernet2/0 192.168.1.2 255.255.255.0
R2
GigabitEthernet3/0 192.168.3.1 255.255.255.0
Fa0/0 192.168.30.1 255.255.255.0
R4 GigabitEthernet3/0 192.168.3.2 255.255.255.0
Fa0/0 192.168.20.1 255.255.255.0
R3 GigabitEthernet3/0 192.168.2.2 255.255.255.0
GigabitEthernet2/0 192.168.4.1 255.255.255.0
Fa0/0 192.168.40.1 255.255.255.0
R5 GigabitEthernet2/0 192.168.4.2 255.255.255.0
Fa0/0 192.168.50.1 255.255.255.0
255.255.255.0
PC4 Ethernet0 192.168.30.10 255.255.255.0
PC1 Ethernet0 192.168.20.10 255.255.255.0
PC3 Ethernet0 192.168.40.1 255.255.255.0
PC2 Ethernet0 192.168.50.10 255.255.255.0
Configuraciones de los Routers
R1#conf t
R1(config)#interface gigabitEthernet 2/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface gigabitEthernet 3/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 192.168.2.0 0.0.0.255 area 0
R1(config-router)#exit
R1(config-if)#

R2#conf t
R2(config)#interface gigabitEthernet 2/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#interface gigabitEthernet 3/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/0
R2(config-if)#ip address 192.168.30.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
R2(config-router)#network 192.168.3.0 0.0.0.255 area 2
R2(config-router)#network 192.168.30.0 0.0.0.255 area 2
R2(config-router)#

R4#conf t
R4(config)#interface gigabitEthernet 3/0
R4(config-if)#ip address 192.168.3.2 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastEthernet 0/0
R4(config-if)#ip address 192.168.20.1 255.255.255.0
R4(config-if)#no shutdown
R4(config)#router ospf 1
R4(config-router)#router-id 4.4.4.4
R4(config-router)#network 192.168.3.0 0.0.0.255 area 2
R4(config-router)#network 192.168.20.0 0.0.0.255 area 2
R4(config-router)#end
R4#

R3#conf t
R3(config)#interface gigabitEthernet 3/0
R3(config-if)#ip address 192.168.2.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface gigabitEthernet 2/0
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 fastEthernet 0/0
R3(config-if)#ip address 192.168.40.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router ospf 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 192.168.2.0 0.0.0.255 area 0
R3(config-router)#network 192.168.4.0 0.0.0.255 area 3
R3(config-router)#network 192.168.40.0 0.0.0.255 area 3
R3(config-router)#end
R3#

R5#conf t
R5(config)#interface gigabitEthernet 2/0
R5(config-if)#ip address 192.168.4.2 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface fastEthernet 0/0
R5(config-if)#ip address 192.168.50.1 255.255.255.0
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#router ospf 1
R5(config-router)#router-id 5.5.5.5
R5(config-router)#network 192.168.4.0 0.0.0.255 area 3
R5(config-router)#network 192.168.50.0 0.0.0.255 area 3
R5(config-router)#end
R5#

Pruebas de Verificación
Aplicando el comando de mostrar obtenemos

R4#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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

O 192.168.30.0/24 [110/2] via 192.168.3.1, 00:01:46, GigabitEthernet3/0


O IA 192.168.40.0/24 [110/4] via 192.168.3.1, 00:01:46, GigabitEthernet3/0
O IA 192.168.4.0/24 [110/4] via 192.168.3.1, 00:01:46, GigabitEthernet3/0
C 192.168.20.0/24 is directly connected, FastEthernet0/0
O IA 192.168.50.0/24 [110/5] via 192.168.3.1, 00:01:46, GigabitEthernet3/0
O IA 192.168.1.0/24 [110/2] via 192.168.3.1, 00:01:46, GigabitEthernet3/0
O IA 192.168.2.0/24 [110/3] via 192.168.3.1, 00:01:46, GigabitEthernet3/0
C 192.168.3.0/24 is directly connected, GigabitEthernet3/0
R4#

Puebas de conexión entre las PC

PC4> sh ip

NAME : PC4[1]
IP/MASK : 192.168.30.10/24
GATEWAY : 192.168.30.1
DNS :
MAC : 00:50:79:66:68:03
LPORT : 20054
RHOST:PORT : 127.0.0.1:20055
MTU : 1500

PC4> ping 192.168.20.10


84 bytes from 192.168.20.10 icmp_seq=1 ttl=62 time=53.904 ms
84 bytes from 192.168.20.10 icmp_seq=2 ttl=62 time=38.881 ms
84 bytes from 192.168.20.10 icmp_seq=3 ttl=62 time=37.295 ms
84 bytes from 192.168.20.10 icmp_seq=4 ttl=62 time=44.990 ms
84 bytes from 192.168.20.10 icmp_seq=5 ttl=62 time=43.397 ms

PC4> ping 192.168.40.10

84 bytes from 192.168.40.10 icmp_seq=1 ttl=61 time=60.822 ms


84 bytes from 192.168.40.10 icmp_seq=2 ttl=61 time=43.725 ms
84 bytes from 192.168.40.10 icmp_seq=3 ttl=61 time=41.659 ms
84 bytes from 192.168.40.10 icmp_seq=4 ttl=61 time=67.900 ms
84 bytes from 192.168.40.10 icmp_seq=5 ttl=61 time=71.742 ms

PC4> ping 192.168.50.10

84 bytes from 192.168.50.10 icmp_seq=1 ttl=60 time=82.639 ms


84 bytes from 192.168.50.10 icmp_seq=2 ttl=60 time=80.467 ms
84 bytes from 192.168.50.10 icmp_seq=3 ttl=60 time=88.887 ms
84 bytes from 192.168.50.10 icmp_seq=4 ttl=60 time=79.228 ms
84 bytes from 192.168.50.10 icmp_seq=5 ttl=60 time=57.769 ms

PC4> trace 192.168.50.10


trace to 192.168.50.10, 8 hops max, press Ctrl+C to stop
1 192.168.30.1 13.808 ms 8.892 ms 9.640 ms
2 192.168.1.1 37.112 ms 31.175 ms 30.234 ms
3 192.168.2.2 66.181 ms 55.534 ms 41.111 ms
4 192.168.4.2 81.031 ms 122.683 ms 64.843 ms
5 *192.168.50.10 74.907 ms (ICMP type:3, code:3, Destination port unreachable)

PC4> trace 192.168.50.10


trace to 192.168.50.10, 8 hops max, press Ctrl+C to stop
1 192.168.30.1 16.819 ms 21.540 ms 9.713 ms
2 192.168.1.1 41.536 ms 32.214 ms 32.290 ms
3 192.168.2.2 55.110 ms 57.324 ms 58.331 ms
4 192.168.4.2 40.002 ms 44.711 ms 86.778 ms
5 *192.168.50.10 107.581 ms (ICMP type:3, code:3, Destination port unreachable)

PC4>
Configuraciones de los Routers obtenidas con el comando show run
R1#show running-config
Building configuration...

Current configuration : 1707 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
ip tcp synwait-time 5
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
ip address 192.168.1.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet3/0
ip address 192.168.2.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet4/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet5/0
no ip address
shutdown
negotiation auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
!
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
control-plane
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end

R1#

R2#show running-config
Building configuration...

Current configuration : 1760 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.30.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
ip address 192.168.1.2 255.255.255.0
negotiation auto
!
interface GigabitEthernet3/0
ip address 192.168.3.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet4/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet5/0
no ip address
shutdown
negotiation auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 192.168.1.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 2
network 192.168.30.0 0.0.0.255 area 2
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
gatekeeper
shutdown
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
end
R2#

R4#show running-config
Building configuration...

Current configuration : 1709 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain lookup
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet3/0
ip address 192.168.3.2 255.255.255.0
negotiation auto
!
interface GigabitEthernet4/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet5/0
no ip address
shutdown
negotiation auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 192.168.3.0 0.0.0.255 area 2
network 192.168.20.0 0.0.0.255 area 2
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
gatekeeper
shutdown
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
end
R4#

R3#show running-config
Building configuration...

Current configuration : 1760 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain lookup
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.40.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
ip address 192.168.4.1 255.255.255.0
negotiation auto
!
interface GigabitEthernet3/0
ip address 192.168.2.2 255.255.255.0
negotiation auto
!
interface GigabitEthernet4/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet5/0
no ip address
shutdown
negotiation auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0
network 192.168.4.0 0.0.0.255 area 3
network 192.168.40.0 0.0.0.255 area 3
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end

R3#

R5#show running-config
Building configuration...

Current configuration : 1709 bytes


!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R5
!
boot-start-marker
boot-end-marker
!
no aaa new-model
no ip icmp rate-limit unreachable
!
ip cef
no ip domain lookup
!
ip tcp synwait-time 5
!
interface FastEthernet0/0
ip address 192.168.50.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet2/0
ip address 192.168.4.2 255.255.255.0
negotiation auto
!
interface GigabitEthernet3/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet4/0
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet5/0
no ip address
shutdown
negotiation auto
!
interface Serial6/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial6/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
network 192.168.4.0 0.0.0.255 area 3
network 192.168.50.0 0.0.0.255 area 3
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
control-plane
!
gatekeeper
shutdown
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
login
!
!
end

R5#
Tarea: OSPF Multi-Área
Agregar dos Routers después de R5 como se muestra en la figura:

La zona o área 3 servirá de ruta de tránsito entre área 0 y área 4, realizar las configuraciones
necesarias para lograr la comunicación entre las áreas.

Documentar el trabajo.

También podría gustarte