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.

policy route pbr <name> rule <rule-number> action <action>

Defines the action for an IP routing policy rule.

set policy route pbr name rule rule-number action { drop | accept }
delete policy route pbr name rule rule-number action [ drop | accept ]
show policy route pbr name rule rule-number action
name
The name of an IP routing policy.
rule-number
The numeric identifier of the rule. Rule numbers determine the order in which rules are executed. Each rule must have a unique rule number. The numbers range from 1 through 9999.

You can define multiple rules by creating more than one rule configuration node.

action
The action for an IP routing policy. The actions for an IP routing policy are accept and drop.
accept
Accepts the packet.
drop
Drops the packet silently.

Configuration mode


policy {
    route {
        pbr name {
               rule rule-number {
                    action accept
                    action drop
                }
            }
        }
    }

You must specify the address-family, action, and table leaf nodes to configure a routing policy. It is recommended to use the delete policy route pbr name rule number command to delete a routing policy.

If a rule does not explicitly drop a packet in the action, the PBR action is to accept the packet, which causes it to be sent to the specified alternate routing table for lookup and forwarding.

An applied policy can only be deleted after first removing it from an assigned interface.

Use the set form of this command to set the action for a rule.

Use the delete form of this command to remove the action for a rule.

Use the show form of this command to display a rule within an IP routing policy.