Você está na página 1de 15

Laboratorio 5.1.5.

Parte 2: Configurar y verificar el enrutamiento OSPF


En la parte 2, configurar el routing OSPFv2 en todos los routers de la red y, luego, verificar que
las tablas de routing se hayan actualizado correctamente.

Paso 1: Configurar la ID de router en todos los routers.


Asigne el nmero 1 como ID de este proceso OSPF. Se deben asignar las siguientes ID de router a
cada router:
ID del router R1: 1.1.1.1
ID del router R2: 2.2.2.2
ID del router R3: 3.3.3.3
R1(config)# router
R1(config-router)#
R2(config)# router
R2(config-router)#
R3(config)# router
R3(config-router)#

ospf 1
router-id 1.1.1.1
ospf 1
router-id 2.2.2.2
ospf 1
router-id 3.3.3.3

Paso 2: Configurar la informacin de red OSPF en los routers.


R1(config)# router
R1(config-router)#
R1(config-router)#
R1(config-router)#
R2(config)# router
R2(config-router)#
R2(config-router)#
R3(config)# router
R3(config-router)#
R3(config-router)#
R3(config-router)#

ospf 1
network
network
network
ospf 1
network
network
ospf 1
network
network
network

192.168.1.0 0.0.0.255 area 0


192.168.12.0 0.0.0.3 area 0
192.168.13.0 0.0.0.3 area 0
192.168.12.0 0.0.0.3 area 0
192.168.23.0 0.0.0.3 area 0
192.168.3.0 0.0.0.255 area 0
192.168.13.0 0.0.0.3 area 0
192.168.23.0 0.0.0.3 area 0

Paso 3: Verificar el enrutamiento OSPF. a. Emita el comando show ip ospf neighbor para
verificar que cada router enumere a los dems routers en la red.
R1# show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ - 00:00:36 192.168.13.2 Serial0/0/1
2.2.2.2 0 FULL/ - 00:00:33 192.168.12.2 Serial0/0/0

b. Emita el comando show ip route ospf para verificar que todas las redes OSPF aparezcan en la
tabla de routing de todos los routers.
R1# show ip route ospf
Codes: L - local, 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, H - NHRP, l - LISP

+ - replicated route, % - next hop override


Gateway of last resort is not set
O 192.168.3.0/24 [110/65] via 192.168.13.2, 00:00:20, Serial0/0/1
192.168.23.0/30 is subnetted, 1 subnets
O 192.168.23.0 [110/128] via 192.168.13.2, 00:12:58, Serial0/0/1
[110/128] via 192.168.12.2, 00:03:38, Serial0/0/0

R2# show ip route ospf

Codes: L - local, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.1.0/24 [110/65] via 192.168.12.1, 00:06:18, Serial0/0/0
O 192.168.3.0/24 [110/65] via 192.168.23.2, 00:03:38, Serial0/0/1
192.168.13.0/30 is subnetted, 1 subnets
O 192.168.13.0 [110/128] via 192.168.23.2, 00:03:38, Serial0/0/1
[110/128] via 192.168.12.1, 00:04:20, Serial0/0/0

R3# show ip route ospf


Codes: L - local, 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, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O 192.168.1.0/24 [110/65] via 192.168.13.1, 00:16:12, Serial0/0/0
192.168.12.0/30 is subnetted, 1 subnets
O 192.168.12.0 [110/128] via 192.168.23.1, 00:06:52, Serial0/0/1
[110/128] via 192.168.13.1, 00:16:12, Serial0/0/0

Paso 4: Probar la conectividad de extremo a extremo


Haga ping de la PC-A a la PC-C para verificar la conectividad extremo a extremo. Los pings deben
tener xito. Si no es as, resuelva cualquier problema que se presente.
Nota: quiz sea necesario desactivar el firewall de la computadora para que los pings se realicen
correctamente.

Parte 3: cambiar las mtricas de OSPF


En la parte 3, cambiar las mtricas de OSPF con los comandos bandwidth, auto-cost referencebandwidth e ip ospf cost. Con estos cambios, obtendr mtricas de OSPF ms precisas.
Nota: en la parte 1, se deberan haber configurado todas las interfaces DCE con una frecuencia de
reloj de 128000.

Paso 1: Cambiar el ancho de banda de todas las interfaces seriales a 128 Kb/s. a.
Emita el comando show ip ospf interface brief para ver la configuracin de costo predeterminada
de todas las interfaces del router.
R1# show ip ospf interface brief
Interface
Se0/0/1 1
Se0/0/0 1
Gi0/0 1 0

PID Area IP Address/Mask Cost State Nbrs F/C


0 192.168.13.1/30 64 P2P 1/1
0 192.168.12.1/30 64 P2P 1/1
192.168.1.1/24 1 DR 0/0

b. Use el comando de interfaz bandwidth 128 en todas las interfaces seriales.


R1(config)# interface s0/0/0
R1(config-if)# bandwidth 128
R1(config)# interface s0/0/1
R1(config-if)# bandwidth 128
R2(config)# interface s0/0/0
R2(config-if)# bandwidth 128
R2(config)# interface s0/0/1
R2(config-if)# bandwidth 128
R3(config)# interface s0/0/0
R3(config-if)# bandwidth 128
R3(config)# interface s0/0/1
R3(config-if)# bandwidth 128
c. Emita el comando show ip ospf interface brief para ver la nueva configuracin del costo.
R1# show ip ospf interface brief
Interface
Se0/0/1 1
Se0/0/0 1
Gi0/0 1 0

PID Area IP Address/Mask Cost State Nbrs F/C


0 192.168.13.1/30 781 P2P 1/1
0 192.168.12.1/30 781 P2P 1/1
192.168.1.1/24 1 DR 0/0

Paso 2: cambiar el ancho de banda de referencia en los routers. a. Emita el comando


auto-cost reference-bandwidth 1000 en los routers para cambiar la configuracin de ancho de
banda de referencia predeterminado, a fin de adecuarlo a las interfaces Gigabit Ethernet.
R1(config)# router ospf 1
R1(config-router)# auto-cost reference-bandwidth 1000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.

R2(config)# router ospf 1


R2(config-router)# auto-cost reference-bandwidth 1000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.

R3(config)# router ospf 1


R3(config-router)# auto-cost reference-bandwidth 1000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers.

b. Vuelva a emitir el comando show ip ospf interface brief para ver la manera en que este
comando cambi los valores del costo.
R1# show ip ospf interface brief
Interface
Se0/0/1 1
Se0/0/0 1
Gi0/0 1 0

PID Area IP Address/Mask Cost State Nbrs F/C


0 192.168.13.1/30 7812 P2P 0/0
0 192.168.12.1/30 7812 P2P 0/0
192.168.1.1/24 1 DR 0/0

Nota: si el router tena interfaces Fast Ethernet en lugar de interfaces Gigabit Ethernet,
el costo ahora sera de 10 en esas interfaces.

Paso 2: Configurar la autenticacin de OSPF en el nivel de rea.


g. Asigne MD5KEY como la contrasea MD5 para el enlace entre el R2 y el R3.
R2(config-router)# interface s0/0/1
R2(config-if)# ip ospf message-digest-key 1 md5 MD5KEY
R3(config-router)# interface s0/0/1
R3(config-if)# ip ospf message-digest-key 1 md5 MD5KEY

Configuraciones de dispositivos
Router R1 (despus de las partes 1 y 2 de esta prctica de laboratorio)
R1#sh run
Building configuration...
Current configuration : 1557 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
! Prctica de laboratorio: Configuracin de las caractersticas avanzadas
de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados. Este documento constituye informacin
pblica de Cisco. Pgina 14 de 24

ip cef
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.12.1 255.255.255.252
clock rate 128000
!
interface Serial0/0/1
ip address 192.168.13.1 255.255.255.252
!
router ospf 1
router-id 1.1.1.1
network 192.168.1.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.3 area 0
network 192.168.13.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password 7 01100F175804
logging synchronous
login Prctica de laboratorio: Configuracin de las caractersticas
avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados. Este documento constituye
informacin pblica de Cisco. Pgina 15 de 24

line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 045802150C2E
login
transport input all
scheduler allocate 20000 1000
!
end

Router R2 (despus de las partes 1 y 2 de esta prctica de laboratorio)


R2#sh run
Building configuration...
Current configuration : 1572 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
interface Loopback0
ip address 209.165.200.225 255.255.255.252
!
interface Embedded-Service-Engine0/0
no ip address
shutdown Prctica de laboratorio: Configuracin de las caractersticas
avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados. Este documento constituye
informacin pblica de Cisco. Pgina 16 de 24

!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.12.2 255.255.255.252
!
interface Serial0/0/1
ip address 192.168.23.1 255.255.255.252
clock rate 128000
!
router ospf 1
router-id 2.2.2.2
network 192.168.12.0 0.0.0.3 area 0
network 192.168.23.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password 7 01100F175804
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4 Prctica de laboratorio: Configuracin de las
caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados.
Este documento constituye informacin pblica de Cisco. Pgina 17 de 24

password 7 030752180500
login
transport input all
scheduler allocate 20000 1000
!
end

Router R3 (despus de las partes 1 y 2 de esta prctica de laboratorio)


R3#sh run
Building configuration...
Current configuration : 1596 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
! Prctica de laboratorio: Configuracin de las caractersticas avanzadas
de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados. Este documento constituye informacin
pblica de Cisco. Pgina 18 de 24

interface Serial0/0/0
ip address 192.168.13.2 255.255.255.252
clock rate 128000
!
interface Serial0/0/1
ip address 192.168.23.2 255.255.255.252
!
router ospf 1
router-id 3.3.3.3
network 192.168.3.0 0.0.0.255 area 0
network 192.168.13.0 0.0.0.3 area 0
network 192.168.23.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd ^C
Unauthorized Access is Prohibited!
^C
!
line con 0
password 7 01100F175804
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 05080F1C2243
login
transport input all
scheduler allocate 20000 1000
!
End

Router R1 (Final)
R1# show run
Building configuration...
Current configuration : 1895 bytes Prctica de laboratorio: Configuracin
de las caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos
reservados. Este documento constituye informacin pblica de Cisco. Pgina 19 de 24

!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.12.1 255.255.255.252
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 7 013E2251702E3F
clock rate 128000
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.13.1 255.255.255.252
ip ospf message-digest-key 1 md5 7 12342142392E35
ip ospf cost 16000 Prctica de laboratorio: Configuracin de las
caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados.
Este documento constituye informacin pblica de Cisco. Pgina 20 de 24

!
router ospf 1
router-id 1.1.1.1
auto-cost reference-bandwidth 1000
area 0 authentication message-digest
network 192.168.1.0 0.0.0.255 area 0
network 192.168.12.0 0.0.0.3 area 0
network 192.168.13.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd @ Unauthorized Access is Prohibited! @
!
line con 0
password 7 01100F175804
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 045802150C2E
login
transport input all
!
scheduler allocate 20000 1000
!
end

Router R2 (final)
R2# show run
Building configuration...
Current configuration : 1878 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption Prctica de laboratorio: Configuracin de las
caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados.
Este documento constituye informacin pblica de Cisco. Pgina 21 de 24

!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
interface Loopback0
ip address 209.165.200.225 255.255.255.252
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.12.2 255.255.255.252
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 7 002937532F7E32
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.23.1 255.255.255.252
ip ospf message-digest-key 1 md5 7 1328334720293D
clock rate 128000
!
router ospf 1 Prctica de laboratorio: Configuracin de las
caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados.
Este documento constituye informacin pblica de Cisco. Pgina 22 de 24

router-id 2.2.2.2
auto-cost reference-bandwidth 1000
area 0 authentication message-digest
network 192.168.12.0 0.0.0.3 area 0
network 192.168.23.0 0.0.0.3 area 0
default-information originate
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Loopback0
!
control-plane
!
banner motd @ Unauthorized Access is Prohibited! @
!
line con 0
password 7 01100F175804
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 030752180500
login
transport input all
!
scheduler allocate 20000 1000
!
end

Router R3 (final)
R3# show run
Building configuration...
Current configuration : 1904 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption Prctica de laboratorio: Configuracin de las
caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus filiales. Todos los derechos reservados.
Este documento constituye informacin pblica de Cisco. Pgina 23 de 24

!
hostname R3
!
boot-start-marker
boot-end-marker
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
no ip domain lookup
no ipv6 cef
!
multilink bundle-name authenticated
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
bandwidth 128
ip address 192.168.13.2 255.255.255.252
ip ospf message-digest-key 1 md5 7 10632D4C2E322B
clock rate 128000
!
interface Serial0/0/1
bandwidth 128
ip address 192.168.23.2 255.255.255.252
ip ospf message-digest-key 1 md5 7 10632D4C2E322B
!
router ospf 1
router-id 3.3.3.3
auto-cost reference-bandwidth 1000
area 0 authentication message-digest
network 192.168.3.0 0.0.0.255 area 0 Prctica de laboratorio:
Configuracin de las caractersticas avanzadas de OSFPv2 2014 Cisco y/o sus
filiales. Todos los derechos reservados. Este documento constituye informacin pblica de Cisco. Pgina 24 de 24

network 192.168.13.0 0.0.0.3 area 0


network 192.168.23.0 0.0.0.3 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
control-plane
!
banner motd @ Unauthorized Access is Prohibited! @
!
line con 0
password 7 01100F175804
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password 7 05080F1C2243
login
transport input all
!
scheduler allocate 20000 1000
!
end

Você também pode gostar