PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF...

23
PRACTICA DE OSPF El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo UNIX, por parte del grupo de trabajo de OSPF, el Grupo de trabajo de ingeniería de Internet (IETF). PRACTICA A PRACTICA B

Transcript of PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF...

Page 1: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

PRACTICA DE OSPF

El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo UNIX, por parte del grupo de trabajo de OSPF, el Grupo de trabajo de ingeniería de Internet (IETF).

PRACTICA A

PRACTICA B

Page 2: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

Situación A

R1Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#Router(config)#hostname R1R1(config)#int fa 0/0R1(config-if)#ip add 172.16.1.17 255.255.255.240R1(config-if)#no shutdown

R1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#exitR1(config)#int se 0/0/0R1(config-if)#ip add 192.168.10.1 255.255.255.252R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR1(config-if)#clock rate 64000R1(config-if)#bandwidth 64R1(config-if)#exitR1(config)#int se 0/0/1R1(config-if)#ip add 192.168.10.5 255.255.255.252R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to downR1(config-if)#bandwidth 256

Page 3: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R1(config-if)#exitR1(config)#

R1(config)#router ospf 1R1(config-router)#network 172.16.1.16 0.0.0.15 area 0R1(config-router)#network 192.168.10.0 0.0.0.3 area 0R1(config-router)#network 192.168.10.4 0.0.0.3 area 0R1(config-router)#endR1#%SYS-5-CONFIG_I: Configured from console by console

R1(config)#interface loopback 0

R1(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R1(config-if)#ip address 10.1.1.1 255.255.255.255R1(config-if)#exitR1(config)#R1(config)#interface loopback1

R1(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

R1(config-if)#ip address 172.30.1.1 255.255.255.252R1(config-if)#ip route 0.0.0.0 0.0.0.0 loopback1R1(config)#router ospf 1R1(config-router)#default-information originateR1(config-router)#exitR1(config)#interface serial0/0/0R1(config-if)#ip ospf hello-interval 5R1(config-if)#ip ospf dead-interval 20R1(config-if)#00:24:28: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on Serial0/0/0 from FULL to DOWN, Neighbor Down: Dead timer expired

00:24:28: %OSPF-5-ADJCHG: Process 1, Nbr 10.2.2.2 on Serial0/0/0 from FULL to DOWN, Neighbor Down: Interface down or detached

R1(config-if)#enable secret classR1(config)#enable password ciscoR1(config)#line console 0R1(config-line)#password cisco

Page 4: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R1(config-line)#loginR1(config-line)#exitR1(config)#line vty 04R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#line vty 03R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#line vty 02R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#line vty 01R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#line vty 00R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#R1(config)#exitR1#%SYS-5-CONFIG_I: Configured from console by console

R1#copy run starDestination filename [startup-config]? Building configuration...[OK]R1#

Page 5: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R2Router>enableRouter#configConfiguring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#int fa 0/0R2(config-if)#ip add 10.10.10.1 255.255.255.0R2(config-if)#no shutdown

R2(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#exitR2(config)#int se 0/0/0R2(config-if)#ip add 192.168.10.2 255.255.255.252R2(config-if)#bandwidth 64R2(config-if)#no shutdown

R2(config-if)#%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R2(config-if)#exitR2(config)#int se 0/0/1R2(config-if)#ip add 192.168.10.9 255.255.255.252R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to downR2(config-if)#clock rate 64000R2(config-if)#bandwidth 128R2(config-if)#exitR2(config)#

R2(config)#router ospf 1R2(config-router)#network 10.10.10.0 0.0.0.255 area 0R2(config-router)#network 192.168.10.0 0.0.0.3 area 0R2(config-router)#00:20:21: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.5 on Serial0/0/0 from LOADING to FULL, Loading Done

R2(config-router)#network 192.168.10.8 0.0.0.3 area 0R2(config-router)#end

Page 6: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R2#%SYS-5-CONFIG_I: Configured from console by console

R2(config)#interface loopback 0

R2(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R2(config-if)#ip address 10.2.2.2 255.255.255.255R2(config-if)#exitR2(config)#R2(config)#interface serial0/0/0R2(config-if)#ip ospf hello-interval 5R2(config-if)#ip ospf dead-interval 20R2(config-if)#00:27:18: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.1 on Serial0/0/0 from LOADING to FULL, Loading Done

R2(config-if)#enable secret classR2(config)#enable password ciscoR2(config)#line console 0R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 04R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 03R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 02R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 01R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 00R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#

Page 7: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R2(config)#exitR2#%SYS-5-CONFIG_I: Configured from console by console

R1#copy run starDestination filename [startup-config]? Building configuration...[OK]R2#

Page 8: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R3Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R3R3(config)#int fa 0/0R3(config-if)#ip add 172.16.1.33 255.255.255.248R3(config-if)#no shutdownR3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#exitR3(config)#int fa 0/0/0%Invalid interface type and numberR3(config)#int se 0/0/0R3(config-if)#ip add 192.168.10.6 255.255.255.252R3(config-if)#clock rate 64000R3(config-if)#bandwidth 256R3(config-if)#no shutdown

R3(config-if)#%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R3(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R3(config-if)#int se 0/0/1R3(config-if)#ip add 192.168.10.10 255.255.255.252R3(config-if)#no shutdown

R3(config-if)#%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R3(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

R3(config-if)#bandwidth 128R3(config-if)#exitR3(config)#

R3(config)#router ospf 1R3(config-router)#network 172.16.1.32 0.0.0.7 area 0R3(config-router)#network 192.168.10.4 0.0.0.3 area 0R3(config-router)#

Page 9: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

00:24:27: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.5 on Serial0/0/0 from LOADING to FULL, Loading Done

R3(config-router)#network 192.168.10.8 0.0.0.3 area 0R3(config-router)#00:25:09: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.9 on Serial0/0/1 from LOADING to FULL, Loading Done

R3(config-router)#endR3#%SYS-5-CONFIG_I: Configured from console by console

R3(config)#interface loopback 0

R3(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R3(config-if)#ip address 10.3.3.3 255.255.255.255R3(config-if)#exityR3(config)#

R3(config)#int s0/0/0R3(config-if)#ip ospf cost 1562R3(config-if)#exitR3(config)#int s0/0/1R3(config-if)#ip ospf cost 1562R3(config-if)# exit

R3(config-if)#enable secret classR3(config)#enable password ciscoR3(config)#line console 0R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#line vty 04R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#line vty 03R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#line vty 02R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exit

Page 10: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R3(config)#line vty 01R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#line vty 00R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#R3(config)#exitR3#%SYS-5-CONFIG_I: Configured from console by console

R3#copy run starDestination filename [startup-config]? Building configuration...[OK]R3#

Page 11: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 12: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 13: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 14: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 15: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 16: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo
Page 17: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

Situación B

R1Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#int fa0/0R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shutdown

R1(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#exitR1(config)#int Loopback1

R1(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

R1(config-if)#ip add 192.168.31.11 255.255.255.255R1(config-if)#R1(config-if)#EXITR1(config)#R1(config)#router ospf 1R1(config-router)#network 192.168.1.0 0.0.0.255 area 0R1(config-router)#endR1#%SYS-5-CONFIG_I: Configured from console by console

Page 18: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R1#R1#config tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#interface fastEthernet0/0R1(config-if)#ip ospf priority 255R1(config-if)#endR1#%SYS-5-CONFIG_I: Configured from console by console

R1#

R1(config)#banner motd #Enter TEXT message. End with the character '#'.welcome to the router 2#R1(config)#enable secret classR1(config)#enable password ciscoR1(config)#line console 0R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#line vty 04R1(config-line)#password ciscoR1(config-line)#loginR1(config-line)#exitR1(config)#exitR1#%SYS-5-CONFIG_I: Configured from console by console

R1#copy runn starDestination filename [startup-config]? Building configuration...[OK]

R1(config)#no ip domain-lookup

Page 19: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R2Router>ENABLERouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int fa0/0Router(config-if)#ip add 192.168.1.2 255.255.255.0Router(config-if)#no shutdown

Router(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exitRouter(config)#int Loopback1

Router(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

Router(config-if)#ip add 192.168.31.22 255.255.255.255Router(config-if)#exitRouter(config)#R2(config)#R2#

R2#config tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#router ospf 1R2(config-router)#network 192.168.1.0 0.0.0.255 area 0R2(config-router)#endR2#%SYS-5-CONFIG_I: Configured from console by console

R2#R2#config tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#interface fastEthernet0/0R2(config-if)#ip ospf priority 0R2(config-if)#endR2#%SYS-5-CONFIG_I: Configured from console by console

R2#R2(config)#banner motd #Enter TEXT message. End with the character '#'.

Page 20: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

welcome to the router 2#

R2(config)#no ip domain-lookup

R2(config)#enable secret classR2(config)#enable password ciscoR2(config)#line console 0R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 04R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#exitR2#%SYS-5-CONFIG_I: Configured from console by console

R2#copy runn starDestination filename [startup-config]? Building configuration...[OK]

Page 21: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R3Router>enableRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R3R3(config)#int fa 0/0R3(config-if)#ip add 192.168.1.3 255.255.255.0R3(config-if)#no shutdown

R3(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#exitR3(config)#int Loopback1

R3(config-if)#%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

R3(config-if)#ip add 192.168.31.33 255.255.255.255R3(config-if)#exitR3(config)#R3(config)#router ospf 1R3(config-router)#network 192.168.1.0 0.0.0.255 area 0R3(config-router)#endR3#%SYS-5-CONFIG_I: Configured from console by console

R3#R3#config tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#interface fastEthernet0/0R3(config-if)#ip ospf priority 100R3(config-if)#exitR3(config)#R3(config)#banner motd #Enter TEXT message. End with the character '#'.welcome to the router 2#

R3(config)#no ip domain-lookupR3(config)#enable secret classR3(config)#enable password ciscoR3(config)#line console 0

Page 22: PRACTICA DE OSPF - lizethangela Web viewPRACTICA DE OSPF. El desarrollo inicial de OSPF comenzó en 1987, su publicación se hace para Reuter como para estaciones con sistema operativo

R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#line vty 04R3(config-line)#password ciscoR3(config-line)#loginR3(config-line)#exitR3(config)#exitR3#%SYS-5-CONFIG_I: Configured from console by console

R3#copy runn starDestination filename [startup-config]? Building configuration...[OK]R3#