Ir al contenido principal

Configuraciones para OSPF sobre Frame Relay

Este tema nos permite entender como opera el protocolo OSPF sobre redes non-broadcast permitiendo el envío de mensajes tipo hello a diferencia del entorno ethernet (broadcast) por medio de mensajes unicast, podemos ver como debemos configurarla en un esquema Hub-and-spoke, está técnica fue creada para redes legacy que no soportan transmisión broadcast (HDLC/PPP).

Entrando de lleno en el ejemplo vemos que tenemos una red Frame-Relay donde existen 2 PVC uno entre R1 y R2 y otro entre R2 y R3 pero no tenemos un circuito entre R1 y R3 lo cual puede impedir el intercambio de información de la red cuando R1 y R3 es elegido como DR (o Router designado) por que no hay forma de que envíen paquetes directamente R1 y R3 por que deben pasar por el PVC hacía R2 respectivamente.




Para resolver el problema usaremos ip ospf network point-to-point con lo cual no hay elección de DR/BDR router y esto se sustituye por un proceso especial para determinar next-hop como se puede ver en R2 con el comando show ip ospf neightbor.


R2#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           0   FULL/  -        00:00:31    10.10.10.1      Serial2/0
3.3.3.3           0   FULL/  -        00:00:38    10.10.10.6      Serial2/1

El estado de los PVC

R2#SHOW FRAMe-relay PVC SUMMary    

Frame-Relay VC Summary

              Active     Inactive      Deleted       Static
  Local          2            0            0            0
  Switched       0            0            0            0

  Unused         0            0            0            0



Y la tabla de ruteo en R2

R2#show ip route 
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, + - replicated route

Gateway of last resort is not set

      1.0.0.0/32 is subnetted, 1 subnets
O        1.1.1.1 [110/65] via 10.10.10.1, 00:27:38, Serial2/0
      2.0.0.0/32 is subnetted, 1 subnets
C        2.2.2.2 is directly connected, Loopback0
      3.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/65] via 10.10.10.6, 00:27:04, Serial2/1
      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C        10.10.10.0/30 is directly connected, Serial2/0
L        10.10.10.2/32 is directly connected, Serial2/0
C        10.10.10.4/30 is directly connected, Serial2/1

L        10.10.10.5/32 is directly connected, Serial2/1

Las configuraciones son las siguientes:

R1:
interface Loopback0
 description OSPF_ID

 ip address 1.1.1.1 255.255.255.255
!
interface Serial2/0
 ip address 10.10.10.1 255.255.255.252
 encapsulation frame-relay
 ip ospf network point-to-point
 no fair-queue
 serial restart-delay 0
 frame-relay map ip 10.10.10.2 21 broadcast
 no frame-relay inverse-arp NOVELL 21
 no frame-relay inverse-arp DECNET 21
 frame-relay lmi-type cisco
 frame-relay local-dlci 21
!
router ospf 100
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0

 network 10.10.10.0 0.0.0.3 area 0

R2:
interface Loopback0
 description OSPF_ID
 ip address 2.2.2.2 255.255.255.255

 !
interface Serial2/0
 ip address 10.10.10.2 255.255.255.252
 encapsulation frame-relay
 ip ospf network point-to-point
 no fair-queue
 serial restart-delay 0
 clock rate 56000
 frame-relay map ip 10.10.10.1 21 broadcast
 frame-relay lmi-type cisco
 frame-relay intf-type dce
 !
!
interface Serial2/1
 ip address 10.10.10.5 255.255.255.252
 encapsulation frame-relay
 ip ospf network point-to-point
 serial restart-delay 0
 clock rate 56000
 frame-relay map ip 10.10.10.6 32 broadcast
 frame-relay lmi-type cisco
 frame-relay intf-type dce
 !
router ospf 100
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
 network 10.10.10.4 0.0.0.3 area 0


R3:
interface Loopback0
 description OSPF_ID
 ip address 3.3.3.3 255.255.255.255

 !
interface Serial2/1
 ip address 10.10.10.6 255.255.255.252
 encapsulation frame-relay
 ip ospf network point-to-point
 serial restart-delay 0
 frame-relay map ip 10.10.10.5 32 broadcast
 no frame-relay inverse-arp NOVELL 32
 no frame-relay inverse-arp DECNET 32
 frame-relay lmi-type cisco
 frame-relay local-dlci 32
 !
 router ospf 100
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 10.10.10.4 0.0.0.3 area 0

Otra solución es implementando broadcast, en este ejemplo el tipo de red es cambiado usando el caminado ip ospf network broadcast e implementando interfaces virtuales multipunto para los circuitos, ahora el NBMA es visto como una red broadcast multi acceso donde se elige un router DR y BDR, el comando show frame-relay map nos corrobora:

R2#show frame-relay map 
Serial2/0.1 (up): ip 10.10.10.1 dlci 21(0x15,0x450), static,
              broadcast,
              CISCO
Serial2/1.1 (up): ip 10.10.10.6 dlci 32(0x20,0x800), static,
              broadcast,

              CISCO

Y el estado de las vecindades OSPF nos muestra las designaciones.

R2#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/DR         00:00:39    10.10.10.6      Serial2/1.1

1.1.1.1           1   FULL/BDR        00:00:37    10.10.10.1      Serial2/0.1

Configuraciones:
R1:
interface Loopback0
 description OSPF_ID
 ip address 1.1.1.1 255.255.255.255
 !
interface Serial2/0
 no ip address
 encapsulation frame-relay
 no keepalive
 !
!
interface Serial2/0.1 multipoint
 ip address 10.10.10.1 255.255.255.252
 ip ospf network broadcast
 frame-relay map ip 10.10.10.2 21 broadcast
router ospf 100
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
!

R2:
interface Loopback0
 description OSPF_ID
 ip address 2.2.2.2 255.255.255.255
 !
interface Serial2/0.1 multipoint
 ip address 10.10.10.2 255.255.255.252
 ip ospf network broadcast
 frame-relay map ip 10.10.10.1 21 broadcast
!         
interface Serial2/1
 no ip address
 encapsulation frame-relay
 no keepalive
 clock rate 3600
 !
interface Serial2/1.1 multipoint
 ip address 10.10.10.5 255.255.255.252
 ip ospf network broadcast
 frame-relay map ip 10.10.10.6 32 broadcast
!  
router ospf 100
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
 network 10.10.10.4 0.0.0.3 area 0

R3:
interface Loopback0
 description OSPF_ID
 ip address 3.3.3.3 255.255.255.255
 !
interface Serial2/1
 no ip address
 encapsulation frame-relay
 no keepalive
 !
!
interface Serial2/1.1 multipoint
 ip address 10.10.10.6 255.255.255.252
 ip ospf network broadcast
 frame-relay map ip 10.10.10.5 32 broadcast
 !
router ospf 100
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 10.10.10.4 0.0.0.3 area 0


Si requiriéramos una red multi-punto no broadcast basta con eliminar lo siguiente:
R1:
R1#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface Serial2/0.1 multipoint

R1(config-subif)#no ip ospf network broadcast

R2:
R2#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router ospf 100

R2(config-router)# neighbor 10.10.10.1

Validamos ahora el tipo de red (no Broadcast):

R1#show ip ospf interface serial 2/0.1
Serial2/0.1 is up, line protocol is up 
  Internet Address 10.10.10.1/30, Area 0 
  Process ID 100, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           64        no          no            Base
  Transmit Delay is 1 sec, State DROTHER, Priority 0
  Designated Router (ID) 2.2.2.2, Interface address 10.10.10.2
  No backup designated router on this network
  Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
    oob-resync timeout 120
    Hello due in 00:00:00
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Index 1/1, 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 2.2.2.2  (Designated Router)

  Suppress hello for 0 neighbor(s)


En este escenario tendríamos un problema ya que requerimos controlar que el DS sea el R2 debido a que adoptaríamos el esquema Hub-and-spoke por tanto es necesario configurar en la interface Serial de los routers R1 y R3 una prioridad 0:

R3#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#int serial 2/1.1

R3(config-subif)#ip ospf priority 0

Con esta modificación el R2 será el DS:

R3#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface

2.2.2.2           1   FULL/DR         00:00:39    10.10.10.5      Serial2/1.1


R1#SHOW IP OSpf NEighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/DR         00:01:55    10.10.10.2      Serial2/0.1

R2#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/DROTHER    00:00:33    10.10.10.6      Serial2/1.1
1.1.1.1           0   FULL/DROTHER    00:01:35    10.10.10.1      Serial2/0.1

Finalmente tenemos el ejemplo de una red OSPF punto multi punto donde todas las interfaces seriales deben ser configuradas con ip ospf network point-to-multipoint con esto las vecindades serán descubiertas automáticamente y no habrá designación de BDR / DR quedando como se muestra a continuación:

R1#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface

2.2.2.2           0   FULL/  -        00:01:43    10.10.10.2      Serial2/0.1


R3#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface

2.2.2.2           0   FULL/  -        00:01:36    10.10.10.5      Serial2/1.1

R2#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:01:53    10.10.10.6      Serial2/1.1

1.1.1.1           0   FULL/  -        00:01:40    10.10.10.1      Serial2/0.1


Las configuraciones son:

R1:
interface Loopback0
 description OSPF_ID
 ip address 1.1.1.1 255.255.255.255
 !
interface Serial2/0
 no ip address
 encapsulation frame-relay
 no keepalive
 !
!
interface Serial2/0.1 multipoint
 ip address 10.10.10.1 255.255.255.252
 ip ospf network point-to-multipoint
 frame-relay map ip 10.10.10.2 21 broadcast
!
router ospf 100
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
!

R2:
interface Loopback0
 description OSPF_ID
 ip address 2.2.2.2 255.255.255.255
 !
interface Serial2/0
 no ip address
 encapsulation frame-relay
 no keepalive
 clock rate 3600
 !
!
interface Serial2/0.1 multipoint
 ip address 10.10.10.2 255.255.255.252
 ip ospf network point-to-multipoint
 frame-relay map ip 10.10.10.1 21 broadcast
!
interface Serial2/1
 no ip address
 encapsulation frame-relay
 no keepalive
 clock rate 3600
 !
!
interface Serial2/1.1 multipoint
 ip address 10.10.10.5 255.255.255.252
 ip ospf network point-to-multipoint
 frame-relay map ip 10.10.10.6 32 broadcast
!
router ospf 100
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
 network 10.10.10.4 0.0.0.3 area 0
!

R3:
interface Loopback0
 description OSPF_ID
 ip address 3.3.3.3 255.255.255.255
 !
interface Serial2/1
 no ip address
 encapsulation frame-relay
 no keepalive
 !        
!         
interface Serial2/1.1 multipoint
 ip address 10.10.10.6 255.255.255.252
 ip ospf network point-to-multipoint
 frame-relay map ip 10.10.10.5 32 broadcast
!
router ospf 100
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 10.10.10.4 0.0.0.3 area 0


Comentarios

Entradas populares de este blog

Problema para conectar mi VPN a través de TELMEX

Tengo un servicio Infinitum de TELMEX el cuál no me permitia conectar a mi empresa usando el cliente VPN de Cisco (Cisco VPN client), mi modem es un Technicolor TG582n http://wiki.aa.org.uk/Category:Router_TG582N. El error es "Secure VPN Connection terminated locally by the Client. Reason 412: The remote peer is no longer responding:

OSPF + EIGRP redistribuir rutas

Vamos a ver un caso muy particular para redistribución de rutas, en este ejemplo partimos del supuesto que tenemos un Router R4 en un sitio remoto que tiene configurado OSPF, tenemos en otro extremo Routers R1, R2 y R3 con enrutamiento EIGRP configurado entre ellos, se habilitan 2 interfaces en R4 para interconectar con el AS EIGRP entre R3 y R2 por cuestiones de contar con redundancia y requerimos lo siguiente: Habilitar enrutamiento entre los Routers sin eliminar las configuraciones previas, podemos agregar y cambiar valores por defecto. Permitir que la ruta por defecto de todos los Routers sea por medio de R4 Establecer como ruta preferida para comunicar ambos sistemas mediante R3 y R4 quedando como ruta secundaria R2 y R4. El esquema de interconexión y direccionamiento utilizado es el siguiente.

Históricos Billetes - El Salvador.

Especimen banknote El Banco Agricola Comercial 1 Peso Especimen banknote El Banco Occidental 1 Peso   El Banco Agricola y Comercial de San Salvador 25 pesos, 1895