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.

Binding interfaces to PBR tables

To configure an interface-based static route in a policy route table, perform the following steps:

Table 1. Applying a policy route to an interface

Step

Command

Configure the interface route for the interface.

vyatta@R1# set protocols static table 10 interface-route 192.168.20.254/24 nexthop-interface dp0p256p1 distance 25

View the configuration.

vyatta@vyatta:~$ show protocols

protocols { 
    static { 
        table 10 { 
            interface-route 192.168.20.254/24 { 
                nexthop-interface dp0p256p1 { 
                    distance 25
                } 
            } 
        } 
    } 
}

Commit the change.

vyatta@R1# commit