VRF support for OSPF and OSPFv3
The vRouter supports the implementation of OSPF and OSPFv3 on routing instances.
If you configure OSPF or OSPFv3 on the vRouter without specifying a routing instance, the router uses the default routing instance. When configuring OSPF or OSPFv3 for a particular routing instance, you must associate the instance with an OSPF process, and the process ID must be specified in the configuration command.
All OSPF configuration commands are supported on routing instances.
In the following example, OSPF area 0 is defined for the default routing instance.
vyatta@R1# set protocols ospf area 0
In the following example, OSPF area 1 is defined for the RED routing instance, which is associated with OSPF process 1.
vyatta@R1# set routing routing-instance RED protocols ospf process 1 area 1
All OSPFv3 configuration commands are supported on routing instances.
The following examples show the syntax for an individual configuration command. For an example of how to configure OSPFv3 processes on routing instances, refer to the section on configuring OSPFv3 on routing instances in Ciena Vyatta Network OS Basic System Configuration Guide.
In the following example, OSPFv3 access list 15 is specified for the default routing instance to filter networks in routing updates.
vyatta@R1# set protocols ospfv3 distribute-list 15
The following example shows how to apply the same configuration to the RED routing instance, which is associated with OSPFv3 process 10.
vyatta@R1# set routing routing-instance RED protocols ospfv3 process 10 distribute-list 15