OSPF Summarization

2 types de route peuvent être « summurizée » :

  • les routes externes à OSPF, par la commande « summary-address », sur un ASBR
  • les routes internes à OSPF, par la commande « area x range », sur un ABR

summary-address

Les reseaux 4.4.0.0/24 à 4.4.3.0/24 sont redistribués dans OSPF par le routeur R4
La summarization de ces réseaux se fait donc sur R4 (l’ASBR) avec la commande « summary-address »

R3#show ip route ospf
     1.0.0.0/24 is subnetted, 4 subnets
O IA    1.1.0.0 [110/66] via 10.1.23.2, 03:59:01, FastEthernet0/0
O IA    1.1.1.0 [110/66] via 10.1.23.2, 03:59:01, FastEthernet0/0
O IA    1.1.2.0 [110/66] via 10.1.23.2, 03:59:01, FastEthernet0/0
O IA    1.1.3.0 [110/66] via 10.1.23.2, 03:59:01, FastEthernet0/0
O    2.0.0.0/8 [110/2] via 10.1.23.2, 04:08:05, FastEthernet0/0
     4.0.0.0/24 is subnetted, 5 subnets
O E2    4.4.0.0 [110/20] via 10.1.34.4, 00:00:00, Serial1/0.34
O E2    4.4.1.0 [110/20] via 10.1.34.4, 00:00:05, Serial1/0.34
O E2    4.4.2.0 [110/20] via 10.1.34.4, 00:00:05, Serial1/0.34
O E2    4.4.3.0 [110/20] via 10.1.34.4, 00:00:05, Serial1/0.34
O       4.4.4.0 [110/11] via 10.1.34.4, 03:59:01, Serial1/0.34
     10.0.0.0/24 is subnetted, 3 subnets
O IA    10.1.12.0 [110/65] via 10.1.23.2, 03:59:01, FastEthernet0/0
R4#conf t
R4(config)#router ospf 1
R4(config-router)#summary-address 4.4.0.0 255.255.0.0

Vérification :

R3#show ip route ospf
     1.0.0.0/24 is subnetted, 4 subnets
O IA    1.1.0.0 [110/66] via 10.1.23.2, 04:00:04, FastEthernet0/0
O IA    1.1.1.0 [110/66] via 10.1.23.2, 04:00:04, FastEthernet0/0
O IA    1.1.2.0 [110/66] via 10.1.23.2, 04:00:04, FastEthernet0/0
O IA    1.1.3.0 [110/66] via 10.1.23.2, 04:00:04, FastEthernet0/0
O    2.0.0.0/8 [110/2] via 10.1.23.2, 04:09:07, FastEthernet0/0
     4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O E2    4.4.0.0/16 [110/20] via 10.1.34.4, 00:00:58, Serial1/0.34
O       4.4.4.0/24 [110/11] via 10.1.34.4, 04:00:04, Serial1/0.34
     10.0.0.0/24 is subnetted, 3 subnets
O IA    10.1.12.0 [110/65] via 10.1.23.2, 04:00:04, FastEthernet0/0

area x range

Les réseaux 1.1.0.0/24 à 1.1.3.0/24 sont annoncées par le routeur R1 dans area 1
La summarization de ces réseaux se fait donc par R2 (l’ABR) avec la commande « area x range »

R2#conf t
R2(config)#router ospf 1
R2(config-router)#area 1 range 1.1.0.0 255.255.0.0

Vérification :

R3#show ip route ospf
     1.0.0.0/16 is subnetted, 1 subnets
O IA    1.1.0.0 [110/66] via 10.1.23.2, 00:00:16, FastEthernet0/0
O    2.0.0.0/8 [110/2] via 10.1.23.2, 04:22:11, FastEthernet0/0
     4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O E2    4.4.0.0/16 [110/20] via 10.1.34.4, 00:00:11, Serial1/0.34
O       4.4.4.0/24 [110/11] via 10.1.34.4, 04:13:07, Serial1/0.34
     10.0.0.0/24 is subnetted, 3 subnets
O IA    10.1.12.0 [110/65] via 10.1.23.2, 04:13:07, FastEthernet0/0

no discard-route

Lors de la summarization internet et externe, Les routeurs R2 et R4 ont créé une entrée « Null » dans leurs tables de routage:

R4#show ip route ospf | inc Null
O       4.4.0.0/16 is a summary, 00:27:06, Null0

R2#show ip route ospf | inc Null
O       1.1.0.0/16 is a summary, 00:06:14, Null0

Ces entrées permettent d’éviter les boucles de routage, mais elles peuvent être supprimées avec « no discard-route »

R4(config)#router ospf 1
R4(config-router)#no discard-route external

R2(config)#router ospf 1
R2(config-router)#no discard-route internal

This entry was posted in OSPF. Bookmark the permalink.

Comments are closed.