Sunday, November 30, 2014

OSPF DE AREA UNICA

PraOSPF DE AREA UNICA
Objetivo:
Interconectar redes lan a travez de la interconexion y configuracion de routers.

Diagrama de conexiones.

Tabla de enrutamiento:
Nodo de la Red
Interfaz
Dirección IP
Router 1
Fast Ethernet 0/0
200.210.220.1
Serial 0/0
200.210.222.129
PC 1
Fast Ethernet 0/1
200.210.220.2
Router 2
Fast Ethernet 0/0
200.210.221.1
Serial 0/0
200.210.222.130
Serial 0/1
200.210.220.133
PC 2
Fast Ethernet 0/1
200.210.221.2
Router 3
Fast Ethernet 0/0
200.210.222.1
Serial 0/0
200.210.220.134
PC 3
Fast Ethernet 0/1
200.210.222.2

CONFIGURACION DEL ROUTER

Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#exit
Router#s
00:02:52: %SYS-5-CONFIG_I: Configured from console by consoleho
% Type "show ?" for a list of subcommands
Router#show ip interface
FastEthernet0/0 is administratively down, line protocol is down
  Internet protocol processing disabled
Serial0/0 is administratively down, line protocol is down

Router#show ip interface brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
FastEthernet0/0            unassigned      YES unset  administratively down down

Serial0/0                  unassigned      YES unset  administratively down down

Serial1/0                  unassigned      YES unset  administratively down down

Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fastethernet0/0
Router(config-if)#ip address 200.210.222.1 255.255.255.128
Router(config-if)#no shutdown
Router(config-if)#
00:05:39: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
00:05:40: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to up
Router(config-if)#
00:05:42: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to down
Router(config-if)#interface serial 0/0
Router(config-if)#ip address 200.210.222.133 255.255.255.252
00:06:49: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to up
Router(config-if)#ip address 200.210.222.133 255.255.255.252
Router(config-if)#clock rate
% Incomplete command.

Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
Router(config-if)#i
00:07:28: %LINK-3-UPDOWN: Interface Serial0/0, changed state to dow
Router(config-if)#^Z
Router#
00:07:32: %SYS-5-CONFIG_I: Configured from console by consoleshow ip interface b
rief
Interface                  IP-Address      OK? Method Status                Prot
ocol
FastEthernet0/0            200.210.222.1   YES manual up                    up

Serial0/0                  200.210.222.133 YES manual down                  down

Serial1/0                  unassigned      YES unset  administratively down down

Router#show ip interface brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
FastEthernet0/0            200.210.222.1   YES manual up                    up

Serial0/0                  200.210.222.133 YES manual down                  down

Serial1/0                  unassigned      YES unset  administratively down down

Router#
00:10:50: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
00:10:51: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed sta
te to upshow ip interface brief
Interface                  IP-Address      OK? Method Status                Prot
ocol
FastEthernet0/0            200.210.222.1   YES manual up                    up

Serial0/0                  200.210.222.133 YES manual up                    up

Serial1/0                  unassigned      YES unset  administratively down down

Router#ping 200.210.222.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.222.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#ping 200.210.222.134

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.222.134, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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

     200.210.222.0/24 is variably subnetted, 2 subnets, 2 masks
C       200.210.222.132/30 is directly connected, Serial0/0
C       200.210.222.0/25 is directly connected, FastEthernet0/0
Router#router ospf 7
        ^
% Invalid input detected at '^' marker.

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#router ospf 7
Router(config-router)#network 200.210.222.0 0.0.0.127
% Incomplete command.

Router(config-router)#network 200.210.222.0 0.0.0.127 area 0
Router(config-router)#network 200.210.222.132 0.0.0.3 area 0
Router(config-router)#^Z
Router#
00:20:35: %SYS-5-CONFIG_I: Configured from console by console
00:20:43: %OSPF-5-ADJCHG: Process 7, Nbr 200.210.222.134 on Serial0/0 from LOADI
NG to FULL, Loading Done
Router#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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    200.210.221.0/24 [110/65] via 200.210.222.134, 00:00:24, Serial0/0
O    200.210.220.0/24 [110/129] via 200.210.222.134, 00:00:24, Serial0/0
     200.210.222.0/24 is variably subnetted, 4 subnets, 3 masks
C       200.210.222.132/30 is directly connected, Serial0/0
O       200.210.222.128/30 [110/128] via 200.210.222.134, 00:00:24, Serial0/0
O       200.210.222.0/24 [110/192] via 200.210.222.134, 00:00:24, Serial0/0
C       200.210.222.0/25 is directly connected, FastEthernet0/0
Router#ping 200.210.220.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.220.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/57 ms
Router#ping 200.210.221.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.221.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/29 ms
Router#ping 200.210.220.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.220.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/56/60 ms
Router#ping 200.210.221.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.221.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/28 ms
Router#ping 200.210.222.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.210.222.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Router#
00:29:32: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to down
00:29:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to up
00:29:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to down
00:29:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, chang
ed state to up
Router#show ip ospf
 Routing Process "ospf 7" with ID 200.210.222.133
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 0. Checksum Sum 0x0
 Number of opaque AS LSA 0. Checksum Sum 0x0
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 External flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 2
        Area has no authentication
        SPF algorithm executed 5 times
        Area ranges are
        Number of LSA 3. Checksum Sum 0x120A6
        Number of opaque link LSA 0. Checksum Sum 0x0
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

Router#
Router#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
200.210.222.134   1   FULL/  -        00:00:31    200.210.222.134 Serial0/0
Router#show ip ospf interface
Serial0/0 is up, line protocol is up
  Internet Address 200.210.222.133/30, Area 0
  Process ID 7, Router ID 200.210.222.133, Network Type POINT_TO_POINT, Cost: 64

  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:02
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 200.210.222.134
  Suppress hello for 0 neighbor(s)
FastEthernet0/0 is up, line protocol is up
  Internet Address 200.210.222.1/25, Area 0
  Process ID 7, Router ID 200.210.222.133, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 200.210.222.133, Interface address 200.210.222.1
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:09
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)
Router#show ip ospf database router

            OSPF Router with ID (200.210.222.133) (Process ID 7)

                Router Link States (Area 0)

  LS age: 907
  Options: (No TOS-capability, DC)
  LS Type: Router Links
  Link State ID: 200.210.222.129
  Advertising Router: 200.210.222.129
  LS Seq Number: 80000005
  Checksum: 0x5D4A
  Length: 60
  Number of Links: 3

    Link connected to: another Router (point-to-point)
     (Link ID) Neighboring Router ID: 200.210.222.134
     (Link Data) Router Interface address: 200.210.222.129
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.222.0
     (Link Data) Network Mask: 255.255.255.0
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.220.0
     (Link Data) Network Mask: 255.255.255.0
      Number of TOS metrics: 0
       TOS 0 Metrics: 1


  LS age: 411
  Options: (No TOS-capability, DC)
  LS Type: Router Links
  Link State ID: 200.210.222.133
  Advertising Router: 200.210.222.133
  LS Seq Number: 80000005
  Checksum: 0xBFD7
  Length: 60
  Number of Links: 3

    Link connected to: another Router (point-to-point)
     (Link ID) Neighboring Router ID: 200.210.222.134
     (Link Data) Router Interface address: 200.210.222.133
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.222.132
     (Link Data) Network Mask: 255.255.255.252
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.222.0
     (Link Data) Network Mask: 255.255.255.128
      Number of TOS metrics: 0
       TOS 0 Metrics: 1


  LS age: 952
  Options: (No TOS-capability, DC)
  LS Type: Router Links
  Link State ID: 200.210.222.134
  Advertising Router: 200.210.222.134
  LS Seq Number: 80000004
  Checksum: 0x385
  Length: 84
  Number of Links: 5

    Link connected to: another Router (point-to-point)
     (Link ID) Neighboring Router ID: 200.210.222.133
     (Link Data) Router Interface address: 200.210.222.134
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.222.132
     (Link Data) Network Mask: 255.255.255.252
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.221.0
     (Link Data) Network Mask: 255.255.255.0
      Number of TOS metrics: 0
       TOS 0 Metrics: 1

    Link connected to: another Router (point-to-point)
     (Link ID) Neighboring Router ID: 200.210.222.129
     (Link Data) Router Interface address: 200.210.222.130
      Number of TOS metrics: 0
       TOS 0 Metrics: 64

    Link connected to: a Stub Network
     (Link ID) Network/subnet number: 200.210.222.128
     (Link Data) Network Mask: 255.255.255.252
      Number of TOS metrics: 0
       TOS 0 Metrics: 64



Preguntas de verificación de conexión

¿Se puede hacer un ping de la PC0 al Router0? Si
¿Se puede hacer un ping de la PC0 al Router1? No
¿Se puede hacer un ping de la PC0 a la PC2? No
Si alguna respuesta fue No, justifique porque: Las PC solo pueden ver a los dispositivos que existen en sured local.
Que se necesita para poder tener comunicación con cualquier dispositivo de la Red?
Implementar algún protocolo de enrutamiento

Configuración de OSPF en el Router0
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. R1(config)# router ospf 10
R1(config-router)# network 200.210.220.0 0.0.0.255 area 0
R1(config-router)# network 200.210.222.128 0.0.0.3 area 0
R1(config-router)# end
Configuración de OSPF en el Router1

R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router ospf 10
R2(config-router)#network 200.210.221.0 0.0.0.255 area 0
R2(config-router)#network 200.210.222.128 0.0.0.3 area 0
R2(config-router)#network 200.210.222.132 0.0.0.3 area 0
R2(config-router)#end

Configuración de OSPF en el Router2

R3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. R3(config)#router ospf 10
R3(config-router)#network 200.210.222.0 0.0.0.127 area 0
R3(config-router)#network 200.210.222.132 0.0.0.3 area 0
R3(config-router)#end

Muestre la tabla de enrutamiento del Router0
Gateway of last resort is not set

C 200.210.220.0/24 is directly connected, FastEthernet0/0
O 200.210.221.0/24 [110/65] via 200.210.222.130, 00:00:45, Serial2/0
200.210.222.0/24 is variably subnetted, 3 subnets, 2 masks
O 200.210.222.0/25 [110/129] via 200.210.222.130, 00:00:35, Serial2/0
C 200.210.222.128/30 is directly connected, Serial2/0
O 200.210.222.132/30 [110/128] via 200.210.222.130, 00:00:45, Serial2/0
Ahora que hemos anunciado todas las redes que tiene conectado directamente cada Router, podemos responderestas preguntas:
¿Se puede hacer un ping de la PC0 a la PC1? Si
¿Se puede hacer un ping de la PC1 a la PC2? Si

¿Se puede hacer un ping de la PC2 a la PC0? Si
¿Se puede hacer un ping de la PC2 a la PC1? Si
Si a todas las preguntas respondieron “Si”, ¿a que se debe que exista ahora una conectividad entre todas las redes del diagrama?  A que los router se pueden ver entre si con sus respectivas lan lo cual indica una configuracion correcta de OSPF

Configuracion del Equipo


Respuesta del PING

No comments:

Post a Comment