Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Configuring OSPFv3 on routing instances

An example of configuring OSPFv3 on routing instances and the related commands.

This example shows how to configure OSPFv3 on routing instances.

Initially all of the interfaces for the R1 vRouter (dp0s9, dp0s10, and dp0s11) are bound to the default routing instance. This example shows how to modify the configuration as illustrated in the following figure. In the figure, dp0s9 is bound the default routing instance, dp0s10 is bound to the RED routing instance, and dp0s11 is bound to the BLUE routing instance.
Figure 1. Configuring OSPFv3 on routing instances

Table 1. Configuring OSPFv3 on routing instances
Step Command

View the configuration before reassigning routing instances.

vyatta@R1# show interfaces routing-instance all 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
dp0s3            192.168.122.204/24                u/u  
dp0s9            10.1.1.1/24                       u/u  
dp0s10           20.1.1.1/24                       u/u  
dp0s11           30.1.1.1/24                       u/u

Move dp0s10 to the RED routing instance and dp0s11 to the BLUE routing instance.

vyatta@R1# set routing routing-instance RED interface dp0s10
vyatta@R1# set routing routing-instance BLUE interface dp0s11

Commit the changes and go to Operational mode.

vyatta@R1# commit
vyatta@R1# exit

View the changes.

vyatta@R1# show interfaces routing-instance all 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
dp0s3            192.168.122.204/24                u/u  
dp0s9            10.1.1.1/24                       u/u  

Routing Instance BLUE
---------------------
dp0s11           30.1.1.1/24                       u/u  

Routing Instance RED
--------------------
dp0s10           20.1.1.1/24                       u/u

Create OSPFv3 processes:

  • Under the default routing instance toward R2 (as a non-default OSPFv3 process in the default routing instance).
  • Under the RED routing instance toward R3.
  • Under the BLUE routing instance toward R4.
vyatta@R1# set protocols ospfv3 process 1 router-id 1.1.1.1
vyatta@R1# set routing routing-instance RED protocols ospfv3 process 2 router-id 2.2.2.2
vyatta@R1# set routing routing-instance BLUE protocols ospfv3 process 3 router-id 3.3.3.3

Enable OSPFv3 on dp0s9, dp0s10, and dp0s11.

vyatta@R1# set interfaces dataplane dp0s9 ipv6 ospfv3 process 1 instance-id 0 area 0
vyatta@R1# set interfaces dataplane dp0s10 ipv6 ospfv3 process 2 instance-id 0 area 0
vyatta@R1# set interfaces dataplane dp0s11 ipv6 ospfv3 process 3 instance-id 0 area 0

View the candidate configuration.

vyatta@R1# show interfaces 
        dataplane dp0s9 {
                address 10.1.1.1/24
                ipv6 {
                        ospfv3 {
                                process 1 {
                                        instance-id 0 {
                                                area 0
                                        }
                                }
                        }
                }
        }
        dataplane dp0s10 {
                address 20.1.1.1/24
                ipv6 {
                        ospfv3 {
                                process 2 {
                                        instance-id 0 {
                                                area 0
                                        }
                                }
                        }
                }
        }
        dataplane dp0s11 {
                address 30.1.1.1/24
                ipv6 {
                        ospfv3 {
                                process 3 {
                                        instance-id 0 {
                                                area 0
                                        }
                                }
                        }
                }
        }
}