Enabling OSPFv3 in a Non-default VRF
When OSPFv3 is enabled in a non-default VRF instance, the device enters OSPFv3 router
VRF configuration mode. Several commands can then be accessed that allow the configuration
of OSPFv3.
- 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 router VRF configuration mode and enable OSPFv3 on a non-default VRF.
The following example enables OSPFv3 in a non-default VRF.
device# configure terminal device(config)# vrf green device(config-vrf-green)# rd 100:200 device(config-vrf-green)# ip router-id 10.11.12.14 device(config-vrf-green)# address-family ipv6 device(config-vrf-green-ipv6)# device(config-vrf-green-ipv6)# exit device(config)# ipv6 router ospf vrf green device(config-ospf6-router-vrf-green)#