OSPFv3 is the IPv6 version of OSPF, designed to support IPv6 routing while maintaining OSPF's link-state characteristics.
It runs independently from OSPFv2 (IPv4) and can operate simultaneously on the same router.
Key Differences from OSPFv2
Major Changes:
- Per-link configuration - enabled on interfaces, not under router process
- Uses link-local addresses - neighbor discovery uses IPv6 link-local
- Runs over IPv6 - uses IPv6 as transport protocol
- Multiple instances per link - supports instance IDs
- Flooding scope - Link-local, area, and AS-wide LSAs
- Authentication removed - relies on IPsec for security
- New LSA types - Link-LSA, Intra-Area-Prefix-LSA
Similarities:
- Same areas concept (Area 0 backbone requirement)
- Same neighbor states and adjacency formation
- Same SPF algorithm
- Same network types (broadcast, point-to-point, NBMA)
Configuration Example
Basic OSPFv3 Configuration
Topology:
R1 (2001:DB8:1::1/64) --- R2 (2001:DB8:1::2/64)
R1 Configuration:
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 router ospf 1
R1(config-rtr)# router-id 1.1.1.1
R1(config-rtr)# exit
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 address 2001:DB8:1::1/64
R1(config-if)# ipv6 ospf 1 area 0
R1(config-if)# exit
R1(config)# interface Loopback0
R1(config-if)# ipv6 address 2001:DB8:10::1/128
R1(config-if)# ipv6 ospf 1 area 0
R2 Configuration:
R2(config)# ipv6 unicast-routing
R2(config)# ipv6 router ospf 1
R2(config-rtr)# router-id 2.2.2.2
R2(config-rtr)# exit
R2(config)# interface GigabitEthernet0/0
R2(config-if)# ipv6 address 2001:DB8:1::2/64
R2(config-if)# ipv6 ospf 1 area 0
R2(config-if)# exit
R2(config)# interface Loopback0
R2(config-if)# ipv6 address 2001:DB8:20::1/128
R2(config-if)# ipv6 ospf 1 area 0
Key Points:
ipv6 unicast-routingenables IPv6 routing globally- Router ID still uses IPv4 format (mandatory)
ipv6 ospf 1 area 0enables OSPFv3 on interface- No network command needed
Multi-Area OSPFv3
R1 (ABR) Configuration:
R1(config)# ipv6 router ospf 1
R1(config-rtr)# router-id 1.1.1.1
R1(config-rtr)# exit
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 address 2001:DB8:1::1/64
R1(config-if)# ipv6 ospf 1 area 0
R1(config-if)# exit
R1(config)# interface GigabitEthernet0/1
R1(config-if)# ipv6 address 2001:DB8:2::1/64
R1(config-if)# ipv6 ospf 1 area 1
OSPFv3 with Authentication (IPsec)
R1(config)# ipv6 router ospf 1
R1(config-rtr)# area 0 authentication ipsec spi 256 md5 1234567890ABCDEF1234567890ABCDEF
R1(config-rtr)# exit
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 ospf authentication ipsec spi 500 sha1 ABCDEF1234567890ABCDEF1234567890ABCDEF12
Explanation:
spi= Security Parameter Index (must match on neighbors)- Supports MD5, SHA1 authentication algorithms
- Can be configured per-interface or per-area
Route Summarization
R1(config)# ipv6 router ospf 1
R1(config-rtr)# area 1 range 2001:DB8:10::/48
R1(config-rtr)# summary-prefix 2001:DB8:100::/48
Verification Commands
R1# show ipv6 ospf
R1# show ipv6 ospf neighbor
R1# show ipv6 ospf interface
R1# show ipv6 ospf database
R1# show ipv6 route ospf
Sample Output:
R1# show ipv6 ospf neighbor
Neighbor ID Pri State Dead Time Interface
2.2.2.2 1 FULL/DR 00:00:35 GigabitEthernet0/0
R1# show ipv6 route ospf
O 2001:DB8:20::1/128 [110/10]
via FE80::2, GigabitEthernet0/0
Best Practices
- Always configure Router ID manually
- Use link-local addresses for neighbor communication
- Implement IPsec for authentication
- Plan addressing with summarization in mind
- Monitor LSA flooding - OSPFv3 has more LSA types
- Test dual-stack environments carefully
OSPFv3 provides robust IPv6 routing with familiar OSPF principles while leveraging IPv6's advanced features.
No comments:
Post a Comment