Le protocole OSPFv3 pour IPv6
Comme pour l’IPv4, OSPF existe en IPv6 sous le nom d’OSPFv3. Découvrez les différences de LSA, l’authentification IPsec et la configuration complète sur routeurs CISCO.
Différences entre l’OSPFv2 et l’OSPFv3
Les Link State Advertisement
| OSPF v2 | OSPF v3 | ||
|---|---|---|---|
| 1 | Router LSA | 0x2001 | Router LSA |
| 2 | Network LSA | 0x2002 | Network LSA |
| 3 | Network Summary LSA | 0x2003 | Inter-area Prefix LSA |
| 4 | ASBR Summary LSA | 0x2004 | Inter-area Router LSA |
| 5 | AS-External LSA | 0x4005 | AS-External LSA |
| 6 | Group Membership LSA | 0x2006 | Group Membership LSA |
| 7 | NSSA External LSA | 0x2007 | Type-7 LSA |
| 0x0008 | Link LSA | ||
| 0x0009 | Intra-area Prefix LSA | ||
Les grands changements pour OSPFv3 :
- création de deux nouvelles LSA (8 et 9) ;
- renommage des anciennes LSA ;
- changement du code d’identification des LSA.
Alors pourquoi OSPFv3 a changé ce code pour les LSA ? OSPFv3 a voulu identifier chaque type de LSA afin de savoir quoi en faire et surtout à qui le diffuser :
| Code | Domaine de diffusion |
|---|---|
| 0x0 | Lien entre deux routeurs |
| 0x2 | Aire OSPF |
| 0x4 | Autonomous System OSPF |
Authentification OSPFv3
| OSPF v2 | OSPF v3 | |
|---|---|---|
| Authentification | Plain-text ou MD5 | IPsec |
Le protocole IPv6 prend en charge nativement le protocole IPsec.
OSPF prend en charge l’IPv6. Il profite donc de l’authentification IPsec en même temps !
Mise en place
Architecture de base

Configuration
R1(config)# ipv6 unicast-routingR1(config)# ipv6 router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# passive-interface FastEthernet 0/1
R1(config-router)# exitR1(config)# interface FastEthernet 0/0
R1(config-if)# description WAN
R1(config-if)# ipv6 address 2001:DB8:0:1::1/64
R1(config-if)# ipv6 ospf 1 area 0
R1(config-if)# exitR1(config)# interface FastEthernet 0/1
R1(config-if)# description LAN
R1(config-if)# ipv6 address 2001:DB8:0:10::1/64
R1(config-if)# ipv6 ospf 1 area 0
R1(config-if)# exitR2(config)# ipv6 unicast-routingR2(config)# ipv6 router ospf 1
R2(config-router)# router-id 2.2.2.2
R2(config-router)# passive-interface FastEthernet 0/1
R2(config-router)# exitR2(config)# interface FastEthernet 0/0
R2(config-if)# description WAN
R2(config-if)# ipv6 address 2001:DB8:0:1::2/64
R2(config-if)# ipv6 ospf 1 area 0
R2(config-if)# exitR2(config)# interface FastEthernet 0/1
R2(config-if)# description LAN
R2(config-if)# ipv6 address 2001:DB8:0:20::1/64
R2(config-if)# ipv6 ospf 1 area 0
R2(config-if)# exitipv6 unicast-routing= active le routage pour le protocole IPv6.ipv6 router ospf 1= active le protocole OSPF en globalité sur l’AS 1.ipv6 ospf 1 area 0= active le protocole OSPF sur l’interface : il cherchera donc des Neighbor sur ce réseau et diffusera ce réseau au travers de la bulle OSPF.
Dépannage
show ipv6 route
show ipv6 ospf
show ipv6 ospf neighbor [detail]
show ipv6 ospf database
show ipv6 ospf [process-id] [area-id] interface [interface-name]
show ipv6 ospf [process-id] [area-id] neighbor
show ipv6 ospf [process-id] [area-id] database [link | prefix | database-summary]



