Assigning OSPFv3 Areas in a Non-default VRF
Areas can be assigned as OSPFv3 areas in a non-default VRF.
Enable IPv6 on each interface on which you plan to enable OSPFv3. You enable IPv6 on an interface by configuring an IP address or explicitly enabling IPv6 on that interface.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
vrfcommand and specify a name to enter Virtual Routing and Forwarding (VRF) configuration mode and create a non-default VRF instance. - Enter the
rdcommand, assigning an administrative number and arbitrary number the route, to distinguish a route for VRF green. - Enter the
ip router-idcommand to specify the router ID. - Enter the
address-family ipv6command to enter IPv6 address-family configuration mode. - Enter the
exitcommand until you return to global configuration mode. - Enter the
ipv6 router ospfcommand and specify a VRF name to enter OSPFv3 configuration mode and enable OSPFv3 in a non-default VRF. - Enter the
areacommand to define an OSPFv3 area ID. - Enter the
areacommand to define a second OSPFv3 area ID.
The following example assigns an OSPFv3 ID to two areas in a non-default VRF instance. One of the areas is assigned by decimal number. The second area is assigned by IP address.
device# configure terminal device(config)# vrf red device(config-vrf-red)# rd 100:200 device(config-vrf-red)# ip router-id 10.11.12.13 device(config-vrf-red)# address-family ipv6 device(config-vrf-red-ipv6)# device(config-vrf-red-ipv6)# exit device(config)# ipv6 router ospf vrf red device(config-ospf6-router-vrf-red)# area 0 device(config-ospf6-router-vrf-red)# area 10.1.1.1