Flane.it-oSPF Adiacenza Su Aree Multiple

download Flane.it-oSPF Adiacenza Su Aree Multiple

of 17

description

Ospf Adiacenza su aree multiple

Transcript of Flane.it-oSPF Adiacenza Su Aree Multiple

  • f lane.it http://www.flane.it/OSPF-Adiacenza-su-Aree-Multiple

    OSPF: Adiacenza su Aree MultipleVirgilio Spaziani

    Senior Network Engineer con 10 anni di esperienza nella progettazione ed implementazione di reti IP complesse per conto di importanti aziende multinazionali e strategiche nazionali.Laureato con il massimo dei voti in Ingegneria Elettronica, Certif icato CCIEx2 #35471(Routing & Switching e Service Provider), istruttore Uf f iciale Cisco presso Fast Lane GKI(Certif icato CCSI #34576 e CCNAIT #2012.00259).

    Premesse

    Con rif erimento alla RFC 5185 [OSPF Multi-Area Adjacency], un requisito comune a molti design quello cheun link appartenga ad aree multiple. Questo dovuto essenzialmente a quelle situazioni in cui si dispone diun link ad alta capacit tra due ABR, nel qual caso possibile si generino situazioni di routing subottimo.

    Con rif erimento allesempio di f igura:

    Poich per lo standard di OSPF attuale (RFC2328), un percorso intra area sempre pref erito ad unpercorso inter area, il router INT1 per raggiungere la rete 172.16.2.2/32 inoltra il traf f ico sul link a banda1Mbit/sec invece che utilizzare il percorso a metrica OSPF minore, che il percorso INT1-ABR1-ABR2-INT2,che sarebbe pref eribile perch composto da una banda minima dei link componenti di 100Mbit/sec. Spostareil link ABR1-ABR2 in area 51 produrrebbe un percorso subottimo per il traf f ico di area 0 in manierasimmetrica.

    Possibile Soluzione

    Conf igurare indirizzi multipli sulle interf acce, ma questo approccio ha diversi svantaggi:

    a. Non essere perseguibile su interf acce unnumberedb. Richiede ulteriori indirizzi IPc. Le tabelle di routing ed il database OSPF crescono conseguentemente

  • Soluzione Proposta

    Estendere il f unzionamento di OSPF consentendo agli ABR di instaurare adiacenze multiple su uno stessolink, queste adiacenze multi-area verranno viste come link punto punto. Qundi avremo unadiacenzastandard che verr instaurata regolarmente e che generer LSA di t ipo 1 allinterno della sua area diappartenenza e LSA di t ipo 3 sulle altre aree.

    Ladiacenza multipla sulle aree ulteriori generer invece una LSA di t ipo 1 point- to-point con:

    Link ID = Router- id remotoLink Data = id di interf accia

    E particolarmente interessante il f atto che per questa LSA di t ipo 1 non viene annunciato nessun pref issodi rete, verr invece utilizzato il link solo a scopo computazionale del percorso intra area, lasciando di f attoalla LSA di t ipo 3 generata il ruolo di rendere raggiungibile il link stesso.

    Implementazione

    Per implementare con un esempio reale questa tecnologia stata utilizzata la topologia di f igura:

    ABR1,ABR2 Cisco 12000 con IOS XR 3.9

    INT1,INT2,INT3,INT4 Cisco 7204 12.2.33SRE

    La scelta di IOS XR nasce dal f atto che al momento in cui stata ef f ettuata questa implementazione, IOSstandard non supporta la f unzionalit di adiacenze multi-area, tuttavia va tenuto presente che questaf unzionalit compatibile con le implementazioni standard di OSPF, inf att i ci si avvalsi di IOS XResclusivamente sugli ABR che devono ef f ett ivamente instaurare ladiacenza multipla, non sulle macchineinterne che devono solamente interpretare le LSA che da questa scaturiscono.

    Logiche di assegnazioni degli indirizzi e router- id

    Per f acilitare linterpretazione degli output si f atto rif erimento alla seguente logica

    ID disposit ivi: si assegnato un identif icativo numerico ad ogni disposit ivo secondo la seguente logica:

    INT1 -> 1 INT2 -> 2 INT3 -> 3 INT4 -> 4 ABR1 -> 11 ABR2 -> 12

  • Link f isici: 10.X.Y.0/24 ad ogni link f isico, dove X ed Y sono gli ID dei disposit ivi da questo link collegate,con X

    Indirizzi di Loopback: 172.16.X.X dove X lID del disposit ivo d appartenenza

    Router-id OSPF: X.X.X.X dove X lID del disposit ivo d appartenenza

    Conf igurazione iniziale con percorso subottimo

    I router INT sono stati conf igurati rispettivamente ai propri id come di seguito, stata variata la banda dirif erimento per consentire di apprezzare la dif f erenza di metrica tra le interf acce 100Mbit/sec e 1Gbit/sec:

    INT1#sh run | sec router ospfrouter ospf 100router-id 1.1.1.1log-adjacency-changesauto-cost reference-bandwidth 1000network 10.1.2.1 0.0.0.0 area 51network 10.1.11.1 0.0.0.0 area 51network 172.16.1.1 0.0.0.0 area 51

    IN3#sh run | sec router ospfrouter ospf 100router-id 3.3.3.3log-adjacency-changesauto-cost reference-bandwidth 1000network 10.3.4.3 0.0.0.0 area 0network 10.3.11.3 0.0.0.0 area 0network 172.16.3.3 0.0.0.0 area 0

    Per i due ABR la conf igurazione iniziale in IOS XR coerente a quella implementata sui router INT, il costodelle interf acce verso i router INT stato manualmente impostato a 10 perch f osse coerente con il costoassegnato sulle interf acce f ast ethernet dei router INT, inf att i anche se non essenziale in topologia, gliABR sono connessi ai router INT attraverso switch MetroEthernet.

    RP/0/0/CPU0:ABR1#sh run router ospfWed Nov 13 07:12:07.442 UTCrouter ospf 100router-id 11.11.11.11auto-cost reference-bandwidth 1000area 0interface GigabitEthernet0/1/0/1cost 10network point-to-point!interface GigabitEthernet0/1/0/2network point-to-point!!area 51interface GigabitEthernet0/1/0/0cost 10network point-to-point!!

    Da notare che le interf acce dei link multiaccess sono state poste ad OSPF Network Type point- to-pointcome ottimizzazione e per semplif icare la lettura del database OSPF, si noti che il link che connette ABR1 edABR2 appartenente allarea di backbone:

  • RP/0/0/CPU0:ABR1#show ospf int brWed Nov 13 07:14:42.345 UTC* Indicates MADJ interfaceInterfaces for OSPF 100

    Interface PID Area IP Address/Mask Cost State Nbrs F/CGi0/1/0/1 100 0 10.3.11.11/24 10 P2P 1/1Gi0/1/0/2 100 0 10.11.12.11/24 1 P2P 1/1Gi0/1/0/0 100 51 10.1.11.11/24 10 P2P 1/1

    RP/0/3/CPU0:ABR2#show ospf int brWed Nov 13 07:15:17.360 UTC* Indicates MADJ interfaceInterfaces for OSPF 100

    Interface PID Area IP Address/Mask Cost State Nbrs F/CGi0/4/0/1 100 0 10.4.12.12/24 10 P2P 1/1Gi0/4/0/2 100 0 10.11.12.12/24 1 P2P 1/1Gi0/4/0/0 100 51 10.2.12.12/24 10 P2P 1/1

    Il link che connette INT1 ed INT2 stato conf igurato con una banda di 1Mbit/sec con conseguente costoOSPF 1000:

    INT1#show int | inc BW|FastFastEthernet0/0 is up, line protocol is up MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec, FastEthernet1/0 is up, line protocol is up MTU 1500 bytes, BW 1000 Kbit/sec, DLY 100 usec,

    INT2#show int | inc BW 100|FastFastEthernet0/0 is up, line protocol is up MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec, FastEthernet1/0 is up, line protocol is up MTU 1500 bytes, BW 1000 Kbit/sec, DLY 100 usec,

  • INT1#show ip ospf int brief

    Interface PID Area IP Address/Mask Cost State Nbrs F/CLo0 100 51 172.16.1.1/32 1 LOOP 0/0Fa0/0 100 51 10.1.11.1/24 10 P2P 1/1Fa1/0 100 51 10.1.2.1/24 1000 P2P 1/1

    Secondo queste impostazioni vengono quindi instaurate le adiacenze come atteso:

    INT1#show ip ospf nei

    Neighbor ID Pri State Dead Time Address Interface11.11.11.11 0 FULL/ - 00:00:31 10.1.11.11 FastEthernet0/02.2.2.2 0 FULL/ - 00:00:34 10.1.2.2 FastEthernet1/0

    RP/0/0/CPU0:ABR1#show ip ospf neigWed Nov 13 07:14:19.940 UTC* Indicates MADJ interfaceNeighbors for OSPF 100

    Neighbor ID Pri State Dead Time Address Interface3.3.3.3 1 FULL/ - 00:00:32 10.3.11.3 GigabitEthernet0/1/0/1 Neighbor is up for 00:07:4212.12.12.12 1 FULL/ - 00:00:37 10.11.12.12 GigabitEthernet0/1/0/2 Neighbor is up for 00:08:351.1.1.1 1 FULL/ - 00:00:37 10.1.11.1 GigabitEthernet0/1/0/0 Neighbor is up for 00:07:47

    Total neighbor count: 3

    Andando a guardare il database OSPF per larea di backbone e larea 51 si nota che nellarea zero sonopresenti le LSA di t ipo 3 derivanti dalle LSA di t ipo 1 di area 51 nelle quali non presente il link 10.11.12.0,mentre questo presente come LSA di t ipo 3 nel database di area 51. Si ricorda che per la natura stessa diun protocollo link state il database di unarea identico per ognuno dei disposit ivi f acenti parte dellarea.

    RP/0/0/CPU0:ABR1#show ospf databaseWed Nov 13 07:17:04.070 UTC

  • OSPF Router with ID (11.11.11.11) (Process ID 100)Router Link States (Area 0)

    Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 623 0x80000005 0x0065f4 54.4.4.4 4.4.4.4 629 0x80000005 0x008abf 511.11.11.11 11.11.11.11 357 0x80000004 0x00557a 412.12.12.12 12.12.12.12 313 0x80000004 0x001fa2 4

    Summary Net Link States (Area 0)Link ID ADV Router Age Seq# Checksum

    10.1.2.0 11.11.11.11 356 0x80000002 0x0030dc10.1.2.0 12.12.12.12 313 0x80000003 0x0010f710.1.11.0 11.11.11.11 356 0x80000002 0x00985710.1.11.0 12.12.12.12 313 0x80000003 0x0011e310.2.12.0 11.11.11.11 356 0x80000002 0x001add10.2.12.0 12.12.12.12 313 0x80000002 0x006386172.16.1.1 11.11.11.11 356 0x80000002 0x001036172.16.1.1 12.12.12.12 313 0x80000003 0x002431172.16.2.2 11.11.11.11 356 0x80000003 0x002d2a172.16.2.2 12.12.12.12 313 0x80000003 0x00da64

    Router Link States (Area 51)Link ID ADV Router Age Seq# Checksum Link count

    1.1.1.1 1.1.1.1 631 0x80000004 0x00a122 52.2.2.2 2.2.2.2 629 0x80000004 0x00c6ec 511.11.11.11 11.11.11.11 357 0x80000004 0x005326 212.12.12.12 12.12.12.12 315 0x80000005 0x0077ef 2

    Summary Net Link States (Area 51)Link ID ADV Router Age Seq# Checksum

    10.3.4.0 11.11.11.11 312 0x80000004 0x002eba10.3.4.0 12.12.12.12 315 0x80000002 0x0014d210.3.11.0 11.11.11.11 356 0x80000002 0x00806d10.3.11.0 12.12.12.12 359 0x80000002 0x006c7c

  • 10.4.12.0 11.11.11.11 312 0x80000002 0x00737710.4.12.0 12.12.12.12 315 0x80000002 0x004b9c10.11.12.0 11.11.11.11 689 0x80000001 0x00bc3210.11.12.0 12.12.12.12 688 0x80000001 0x009e4c172.16.3.3 11.11.11.11 356 0x80000003 0x00e35d172.16.3.3 12.12.12.12 359 0x80000003 0x00cf6c172.16.4.4 11.11.11.11 312 0x80000002 0x00da64172.16.4.4 12.12.12.12 315 0x80000002 0x00b289

    Andando ad analizzare il dettaglio della LSA di t ipo 3 di area 51 relativa alla rete del link ABR1-ABR2:

    INT1#show ip ospf database summary 10.11.12.0OSPF Router with ID (1.1.1.1) (Process ID 100)

    Summary Net Link States (Area 51)

    Routing Bit Set on this LSA in topology Base with MTID 0LS age: 770Options: (No TOS-capability, DC, Upward)LS Type: Summary Links(Network)Link State ID: 10.11.12.0 (summary Network Number)Advert ising Router: 11.11.11.11LS Seq Number: 80000001Checksum: 0xBC32Length: 28Network Mask: /24MTID: 0 Metric: 1 LS age: 770Options: (No TOS-capability, DC, Upward)LS Type: Summary Links(Network)Link State ID: 10.11.12.0 (summary Network Number)Advert ising Router: 12.12.12.12LS Seq Number: 80000001Checksum: 0x9E4CLength: 28Network Mask: /24MTID: 0 Metric: 1

    Mentre lo stesso link presente nel database di area zero come LSA di t ipo 1, generato da ABR1 e daABR2, (in output le LSA di t ipo 1 generate da ABR1)

  • IN3#show ip ospf database router 11.11.11.11OSPF Router with ID (3.3.3.3) (Process ID 100)

    Router Link States (Area 0)

    Routing Bit Set on this LSA in topology Base with MTID 0LS age: 515Options: (No TOS-capability, DC)LS Type: Router LinksLink State ID: 11.11.11.11Advert ising Router: 11.11.11.11LS Seq Number: 80000004Checksum: 0x557ALength: 72Area Border RouterNumber of Links: 4 Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 3.3.3.3(Link Data) Router Interface address: 10.3.11.11Number of MTID metrics: 0TOS 0 Metrics: 10 Link connected to: a Stub Network(Link ID) Network/subnet number: 10.3.11.0(Link Data) Network Mask: 255.255.255.0Number of MTID metrics: 0TOS 0 Metrics: 10 Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 12.12.12.12(Link Data) Router Interface address: 10.11.12.11Number of MTID metrics: 0TOS 0 Metrics: 1 Link connected to: a Stub Network(Link ID) Network/subnet number: 10.11.12.0(Link Data) Network Mask: 255.255.255.0Number of MTID metrics: 0TOS 0 Metrics: 1

    Da un punto di vista del data plane i pacchetti verranno inoltrati coerentemente alla tabella di routing, chemostra come INT1 per raggiungere la rete 172.16.2.2/32 selezioni linterf accia F1/0 selezionando quindi unpercorso subottimo a metrica 1001, che per viene pref erito data la sua natura intra area, conf ermatoanche dai risultati del traceroute

    INT1#show ip route ospf | beg GatewayGateway of last resort is not set

  • 10.0.0.0/8 is variably subnetted, 9 subnets, 2 masksO 10.2.12.0/24 [110/1010] via 10.1.2.2, 00:08:50, FastEthernet1/0O IA 10.3.4.0/24 [110/30] via 10.1.11.11, 00:08:09, FastEthernet0/0O IA 10.3.11.0/24 [110/20] via 10.1.11.11, 00:08:50, FastEthernet0/0O IA 10.4.12.0/24 [110/21] via 10.1.11.11, 00:08:09, FastEthernet0/0O IA 10.11.12.0/24 [110/11] via 10.1.11.11, 00:13:26, FastEthernet0/0172.16.0.0/32 is subnetted, 4 subnetsO 172.16.2.2 [110/1001] via 10.1.2.2, 00:08:50, FastEthernet1/0O IA 172.16.3.3 [110/21] via 10.1.11.11, 00:08:50, FastEthernet0/0O IA 172.16.4.4 [110/22] via 10.1.11.11, 00:08:09, FastEthernet0/0

    INT1#traceroute 172.16.2.2Type escape sequence to abort.Tracing the route to 172.16.2.2 1 10.1.2.2 4 msec * 0 msec Conf igurazione con OSPF Multi-Area Adjacency

    Andando a modif icare la topologia introducendo adiacenze multi-area sul link che collega ABR1-ABR2,come in f igura:

    Avvalendosi del comando multi-area- interf ace disponibile in IOS XR, che sostanzialmente attiva unaadiacenza multipla aggiungendo a quella gi esistente di area zero la nuova di area 51. Da notare che non vi necessit di imporre il network type, in quanto ladiacenza multi-area viene sempre annunciata come LSAdi t ipo 1 point- to-point

    RP/0/3/CPU0:ABR2(cong)#router ospf 100RP/0/3/CPU0:ABR2(cong-ospf)# area 51RP/0/3/CPU0:ABR2(cong-ospf-ar)# mult i-area-interface GigabitEthernet0/4/0/2RP/0/3/CPU0:ABR2(cong-ospf-ar-mif)#RP/0/3/CPU0:ABR2(cong-ospf-ar-mif)#commit

    RP/0/0/CPU0:ABR1(cong)#router ospf 100RP/0/0/CPU0:ABR1(cong-ospf)# area 51RP/0/0/CPU0:ABR1(cong-ospf-ar)# mult i-area-interface GigabitEthernet0/1/0/2RP/0/0/CPU0:ABR1(cong-ospf-ar-mif)# !RP/0/0/CPU0:ABR1(cong-ospf-ar-mif)#commit

  • I due ABR vedono lunico link che li collega associato a due diverse aree:

    RP/0/0/CPU0:ABR1#show ip ospf int brWed Nov 13 07:25:34.287 UTC* Indicates MADJ interfaceInterfaces for OSPF 100

    Interface PID Area IP Address/Mask Cost State Nbrs F/CGi0/1/0/1 100 0 10.3.11.11/24 10 P2P 1/1Gi0/1/0/2 100 0 10.11.12.11/24 1 P2P 1/1Gi0/1/0/2* 100 51 10.11.12.11/24 1 P2P 1/1Gi0/1/0/0 100 51 10.1.11.11/24 10 P2P 1/1

    RP/0/3/CPU0:ABR2#show ospf int brWed Nov 13 07:26:18.652 UTC* Indicates MADJ interfaceInterfaces for OSPF 100

    Interface PID Area IP Address/Mask Cost State Nbrs F/CGi0/4/0/1 100 0 10.4.12.12/24 10 P2P 1/1Gi0/4/0/2 100 0 10.11.12.12/24 1 P2P 1/1Gi0/4/0/2* 100 51 10.11.12.12/24 1 P2P 1/1Gi0/4/0/0 100 51 10.2.12.12/24 10 P2P 1/1

    Guardando il dettaglio delle interf acce viene esplicitamente riportata la natura multi area:

    RP/0/0/CPU0:ABR1#show ospf int g0/1/0/2Wed Nov 13 07:25:57.395 UTC

  • GigabitEthernet0/1/0/2 is up, line protocol is up Internet Address 10.11.12.11/24, Area 0 Process ID 100, Router ID 11.11.11.11, Network Type POINT_TO_POINT, Cost: 1Transmit Delay is 1 sec, State POINT_TO_POINT, MTU 1500, MaxPktSz 1500Timer intervals congured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello due in 00:00:09Index 2/3, ood queue length 0Next 0(0)/0(0)Last ood scan length is 2, maximum is 5Last ood scan t ime is 0 msec, maximum is 0 msecLS Ack List: current length 0, high water mark 6Neighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 12.12.12.12Suppress hello for 0 neighbor(s)Mult i-area interface Count is 1Mult i-Area interface exist in area 51 Neighbor Count is 1

    Conseguentemente anche ladiacenza, come previsto multipla sulle aree 0 e 51:

    RP/0/3/CPU0:ABR2#show ospf neigWed Nov 13 07:26:34.473 UTC* Indicates MADJ interfaceNeighbors for OSPF 100

    Neighbor ID Pri State Dead Time Address Interface4.4.4.4 1 FULL/ - 00:00:34 10.4.12.4 GigabitEthernet0/4/0/1 Neighbor is up for 00:19:5711.11.11.11 1 FULL/ - 00:00:31 10.11.12.11 GigabitEthernet0/4/0/2 Neighbor is up for 00:20:5011.11.11.11 1 FULL/ - 00:00:33 10.11.12.11 GigabitEthernet0/4/0/2* Neighbor is up for 00:04:122.2.2.2 1 FULL/ - 00:00:32 10.2.12.2 GigabitEthernet0/4/0/0 Neighbor is up for 00:19:58

    Total neighbor count: 4

  • RP/0/3/CPU0:ABR2#show ospf int brWed Nov 13 07:26:18.652 UTC* Indicates MADJ interfaceInterfaces for OSPF 100

    Interface PID Area IP Address/Mask Cost State Nbrs F/CGi0/4/0/1 100 0 10.4.12.12/24 10 P2P 1/1Gi0/4/0/2 100 0 10.11.12.12/24 1 P2P 1/1Gi0/4/0/2* 100 51 10.11.12.12/24 1 P2P 1/1Gi0/4/0/0 100 51 10.2.12.12/24 10 P2P 1/1

    Andando nuovamente ad analizzare i database di area zero ed area 51 non si notano dif f erenze evidenti alivello di data base description, ma si noti che in ogni caso la rete 10.11.12.0/24 non viene inoltrata in areazero con LSA di t ipo 3.

    RP/0/0/CPU0:ABR1#show ospf database Wed Nov 13 07:24:43.908 UTC

    OSPF Router with ID (11.11.11.11) (Process ID 100)Router Link States (Area 0)

    Link ID ADV Router Age Seq# Checksum Link count3.3.3.3 3.3.3.3 1082 0x80000005 0x0065f4 54.4.4.4 4.4.4.4 1088 0x80000005 0x008abf 511.11.11.11 11.11.11.11 816 0x80000004 0x00557a 412.12.12.12 12.12.12.12 773 0x80000004 0x001fa2 4

    Summary Net Link States (Area 0)Link ID ADV Router Age Seq# Checksum

    10.1.2.0 11.11.11.11 816 0x80000002 0x0030dc10.1.2.0 12.12.12.12 773 0x80000003 0x0010f710.1.11.0 11.11.11.11 816 0x80000002 0x00985710.1.11.0 12.12.12.12 142 0x80000004 0x00806810.2.12.0 11.11.11.11 142 0x80000003 0x00896210.2.12.0 12.12.12.12 773 0x80000002 0x006386172.16.1.1 11.11.11.11 816 0x80000002 0x001036172.16.1.1 12.12.12.12 142 0x80000004 0x00f747

  • 172.16.2.2 11.11.11.11 142 0x80000004 0x000140172.16.2.2 12.12.12.12 773 0x80000003 0x00da64

    Router Link States (Area 51)Link ID ADV Router Age Seq# Checksum Link count

    1.1.1.1 1.1.1.1 1091 0x80000004 0x00a122 52.2.2.2 2.2.2.2 1089 0x80000004 0x00c6ec 511.11.11.11 11.11.11.11 142 0x80000005 0x0071ae 312.12.12.12 12.12.12.12 143 0x80000006 0x00ed23 3

    Summary Net Link States (Area 51)Link ID ADV Router Age Seq# Checksum

    10.3.4.0 11.11.11.11 772 0x80000004 0x002eba10.3.4.0 12.12.12.12 775 0x80000002 0x0014d210.3.11.0 11.11.11.11 816 0x80000002 0x00806d10.3.11.0 12.12.12.12 819 0x80000002 0x006c7c10.4.12.0 11.11.11.11 772 0x80000002 0x00737710.4.12.0 12.12.12.12 775 0x80000002 0x004b9c10.11.12.0 11.11.11.11 1148 0x80000001 0x00bc3210.11.12.0 12.12.12.12 1148 0x80000001 0x009e4c172.16.3.3 11.11.11.11 816 0x80000003 0x00e35d172.16.3.3 12.12.12.12 819 0x80000003 0x00cf6c172.16.4.4 11.11.11.11 772 0x80000002 0x00da64172.16.4.4 12.12.12.12 775 0x80000002 0x00b289

    Andando ad analizzare il dettaglio del database, per le LSA di t ipo 3 per larea 51 non vi sono dif f erenzerispetto alla topologia precedente:

  • INT1#show ip ospf database summary 10.11.12.0OSPF Router with ID (1.1.1.1) (Process ID 100)

    Summary Net Link States (Area 51)

    Routing Bit Set on this LSA in topology Base with MTID 0LS age: 1374Options: (No TOS-capability, DC, Upward)LS Type: Summary Links(Network)Link State ID: 10.11.12.0 (summary Network Number)Advert ising Router: 11.11.11.11LS Seq Number: 80000001Checksum: 0xBC32Length: 28Network Mask: /24MTID: 0 Metric: 1 LS age: 1374Options: (No TOS-capability, DC, Upward)LS Type: Summary Links(Network)Link State ID: 10.11.12.0 (summary Network Number)Advert ising Router: 12.12.12.12LS Seq Number: 80000001Checksum: 0x9E4CLength: 28Network Mask: /24MTID: 0 Metric: 1

    Analizzando per il database relativamente alle LSA di t ipo 1 del database di area 51, si trova, comespecif icato nella RFC 5185, un nuovo link che descrive il collegamente ABR1 ABR2:

    Link ID = Router- id remoto

    Link Data = id di interf accia

  • INT1#show ip ospf database router 11.11.11.11OSPF Router with ID (1.1.1.1) (Process ID 100)

    Router Link States (Area 51)

    Routing Bit Set on this LSA in topology Base with MTID 0LS age: 330Options: (No TOS-capability, DC)LS Type: Router LinksLink State ID: 11.11.11.11Advert ising Router: 11.11.11.11LS Seq Number: 80000005Checksum: 0x71AELength: 60Area Border RouterNumber of Links: 3 Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 12.12.12.12(Link Data) Router Interface address: 0.0.0.25Number of MTID metrics: 0TOS 0 Metrics: 1 Link connected to: another Router (point-to-point)(Link ID) Neighboring Router ID: 1.1.1.1(Link Data) Router Interface address: 10.1.11.11Number of MTID metrics: 0TOS 0 Metrics: 10 Link connected to: a Stub Network(Link ID) Network/subnet number: 10.1.11.0(Link Data) Network Mask: 255.255.255.0Number of MTID metrics: 0TOS 0 Metrics: 10

    Il data plane in virt della nuova adiacenza viene gestito prediligendo un percorso intra area che perquesta volta ottimale e a metrica 22:

  • INT1#show ip route 172.16.2.2 255.255.255.255Routing entry for 172.16.2.2/32Known via "ospf 100", distance 110, metric 22, type intra areaLast update from 10.1.11.11 on FastEthernet0/0, 00:00:28 agoRouting Descriptor Blocks:* 10.1.11.11, from 2.2.2.2, 00:00:28 ago, via FastEthernet0/0Route metric is 22, trac share count is 1

    INT1#traceroute 172.16.2.2Type escape sequence to abort.Tracing the route to 172.16.2.2 1 10.1.11.11 4 msec 0 msec 4 msec2 10.11.12.12 0 msec 4 msec 0 msec3 10.2.12.2 0 msec * 0 msec

    Ricapitolando, limplementazione proposta nella RFC 5185 consente di ottenere un percorso ottimo da unpunto di vista della metrica senza incorrere nella assegnazione di indirizzi multipli alle interf acce.

    Di seguito le conf igurazioni f inali OSPF per gli ABR e le conf igurazioni complete di tutt i i disposit ivi utilizzatiin questa implementazione:

    RP/0/0/CPU0:ABR1#sh run router ospfWed Nov 13 07:31:05.142 UTCrouter ospf 100router-id 11.11.11.11auto-cost reference-bandwidth 1000area 0interface GigabitEthernet0/1/0/1cost 10network point-to-point!interface GigabitEthernet0/1/0/2network point-to-point!!area 51mult i-area-interface GigabitEthernet0/1/0/2!interface GigabitEthernet0/1/0/0cost 10network point-to-point

    RP/0/3/CPU0:ABR2#sh run router ospfWed Nov 13 07:31:33.200 UTCrouter ospf 100router-id 12.12.12.12auto-cost reference-bandwidth 1000area 0interface GigabitEthernet0/4/0/1cost 10network point-to-point!interface GigabitEthernet0/4/0/2network point-to-point!!area 51mult i-area-interface GigabitEthernet0/4/0/2!interface GigabitEthernet0/4/0/0cost 10network point-to-point

    Formazione Consigliata

    Di seguito i corsi di f ormazione uf f iciali Cisco suggerit i per approf ondire queste tematiche:

    Per la CCNP: Implementing Cisco IP Routing (ROUTE)

    Per la CCNP Service Provider: Deploying Cisco Service Provider Network Routing (SPROUTE)

    Clicca sulla citt per iscriverti. Schedulazione ROUTE

    It a lia

  • OSPF: Adiacenza su Aree MultipleItalia