Académique Documents
Professionnel Documents
Culture Documents
COMUNICACIN DE DATOS
LABORATORIO N4
Integrantes:
Zambrana Villalta Maurico
Perlas Vargas Alfredo
Adems se har la eleccin del DR y BDRde dos formas: OSPF los eligir de acuerdo
al Router-ID, y luego la eleccin se dar por prioridad.
Otro punto es el de calcular la mtrica OSPF asumiendo que Gigabit Ethernet ser el
enlace ms rpido en la red.
ESQUEMA DE CONFIGURACIN
rea 0:
INTERFACES
R1#configure terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 172.30.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R2#conf terminal
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 172.30.0.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R3#configure terminal
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 172.30.0.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
rea 10
INTERFACES
R2#conf terminal
R2(config)#interface serial 0/0
R2(config-if)#ip address 172.30.10.2 255.255.255.0
R2(config-if)#bandwidth 500
R2(config-if)#no shutdown
R2(config-if)#exit
R5#configure terminal
R5(config)#interface serial 0/0
R5(config-if)#ip address 172.30.10.5 255.255.255.0
R5(config-if)#bandwidth 500
R4(config-if)#clock rate 500000
R5(config-if)#no shutdown
R5(config-if)#exit
LOOPBACK (R5)
R5#configure terminal
R5(config)#interface loopback 1
R5(config-if)#ip address 10.10.0.1 255.255.255.0
R5(config-if)# ip ospf network point-to-point
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface loopback 2
R5(config-if)#ip address 10.10.1.1 255.255.255.0
R5(config-if)# ip ospf network point-to-point
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface loopback 3
R5(config-if)#ip address 10.10.2.1 255.255.255.0
R5(config-if)# ip ospf network point-to-point
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#interface loopback 4
R5(config-if)#ip address 10.10.3.1 255.255.255.0
R5(config-if)# ip ospf network point-to-point
R5(config-if)#no shutdown
R5(config-if)#exit
Area 20
INTERFACES
R3#configure terminal
R3(config)#interface serial 0/0
R3(config-if)#ip address 172.30.20.3 255.255.255.0
R4(config-if)#bandwidth 500
R3(config-if)#no shutdown
R3(config-if)#exit
R4#configure terminal
R4(config)#interface serial 0/0
R4(config-if)#ip address 172.30.20.4 255.255.255.0
R4(config-if)#bandwidth 500
R4(config-if)#clock rate 500000
R4(config-if)#no shutdown
R4(config-if)#exit
LOOPBACK (R4)
R4#configure terminal
R4(config)#interface loopback 1
R4(config-if)#ip address 10.20.0.1 255.255.255.0
R4(config-if)# ip ospf network point-to-point
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface loopback 2
R4(config-if)#ip address 10.20.1.1 255.255.255.0
R4(config-if)# ip ospf network point-to-point
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface loopback 3
R4(config-if)#ip address 10.20.2.1 255.255.255.0
R4(config-if)# ip ospf network point-to-point
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface loopback 4
R4(config-if)#ip address 10.20.3.1 255.255.255.0
R4(config-if)# ip ospf network point-to-point
R4(config-if)#no shutdown
R4(config-if)#exit
OBJETIVOS
R1#configure terminal
R1(config)#ip route 172.16.0.0 255.255.255.0 Null0
R1(config)#ip route 172.16.1.0 255.255.255.0 Null0
R1(config)#ip route 172.16.2.0 255.255.255.0 Null0
R1(config)#ip route 172.16.3.0 255.255.255.0 Null0
R1(config)#router ospf 1
R1(config-router)#network 172.30.0.0 0.0.0.255 area 0
R1(config-router)#redistribute static subnet metric 200 metric-type 2
R1(config-router)#router-id 1.1.1.1
Verificando:
R2(config)#router ospf 1
R2(config-router)#network 172.30.0.0 0.0.0.0 area 0
R2(config-router)#network 172.30.10.0 0.0.0.0 area 10
R2(config-router)#router-id 2.2.2.2
Verificando:
R3(config)#router ospf 1
R3(config-router)#network 172.30.0.0 0.0.0.0 area 0
R3(config-router)#network 172.30.20.0 0.0.0.0 area 20
R3(config-router)#router-id 3.3.3.3
Verificando:
R4(config)#router ospf 1
R4(config-router)#network 172.30.20.0 0.0.0.255 area 20
R4(config-router)#network 10.0.0 0.255.255.255 area 20
R4(config-router)#router-id 4.4.4.4
Verificando:
R5(config)#router ospf 1
R5(config-router)#network 172.30.10.0 0.0.0.255 area 10
R5(config-router)#network 10.10.0.0 0.0.255.255 area 10
R5(config-router)#router-id 5.5.5.5
Verificando:
2. Despus de completar el paso inicial, uno de los routers del rea 0 se
convertir en DR y otro en BDR para el segmento Ethernet. Cul router se
convertir en DR y cul en DBR? Escribir DR y BDR al lado del router respectivo
a continuacin.
En este caso, como todos los routers tienen prioridad 1, la eleccin del DR se realiza
de acuerdo al ID ms alto que lo tiene el router R3.
R1: DROTHER
R2: BDR
R3: DR
Verificando:
Como deseamos que R1 se convierta en DR, entonces le damos una prioridad mayor
a 1 con el comando ip ospf priority interface.
R1(config)#int fa 0/0
R1(config-if)#ip ospf priority 200
Verificando:
R3(config)#int fa 0/0
R3(config-if)#ip ospf priority 0
Verificando:
Los DROthers slo forman adyacencias FULL con el DR y el BDR, por lo tanto la
relacin de vecindario entre R1 y R2 es FULL
Cuando dos routers DROther forman una adyacencia de vecinos, el estado de vecino
se muestra como 2WAY. Entonces la relacin de vecindario entre R2 y R3
corresponde a 2WAY.
4. Implementar sumarizacin en los ABRs en la red para hacer que las tablas de
enrutamiento de toda la red sean lo ms eficientes posible.
R2(config)#router ospf 1
R2(config-router)#area 10 range 10.10.0.0 255.255.252.0
R3(config)#router ospf 1
R3(config-router)#area 20 range 10.20.0.0 255.255.252.0
Verificando:
5. Implementar sumarizacin en el ASBR. La ruta sumarizada debera tener los
mismos atributos que las rutas originales e individuales redistribuidas en la red.
SUMARIZACIN EN EL ASBR R1
R1(config)#router ospf 1
R1(config-router)#summary-address 172.16.0.0 255.255.252.0
Verificando:
R1(config)#router ospf 1
R1(config-router)#auto-cost reference-bandwidth 1000
R2(config)#router ospf 1
R2(config-router)#auto-cost reference-bandwidth 1000
R3(config)#router ospf 1
R3(config-router)#auto-cost reference-bandwidth 1000
R4(config)#router ospf 1
R4(config-router)#auto-cost reference-bandwidth 1000
R5(config)#router ospf 1
R5(config-router)#auto-cost reference-bandwidth 1000
Verificando en un solo router, R1: