Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

policy route route-map <map-name> rule <rule-num> action

Specifies the action to be taken for packets matching a route map rule.

set policy route route-map map-name rule rule-num action { deny | permit }
delete policy route route-map map-name rule rule-num action
show policy route route-map map-name rule rule-num action

Routes are denied.

map-name
The name of a defined route map.
rule-num
The number of a defined route map rule.
deny
Packets matching this rule are silently dropped.
permit
Packets matching this rule are forwarded.

Configuration mode


policy {
    route-map map-name {
        rule rule-num {
            action {
                deny
                permit
            }
        }
    }
}

Use the set form of this command to define the action taken when received packets satisfy the match criteria for this rule.

If the action for a rule is deny, packets meeting the match criteria of the rule are silently dropped. If the action for the rule is permit, destination-based routing is performed; that is, packets are sent using the normal forwarding channels.

The default action of a route map is to deny; that is, if no entries satisfy the match criteria, the route is denied. To change this behavior, specify an empty permit rule as the last entry in the route map.

Use the delete form of this command to restore the default action for packets satisfying the match criteria.

Use the show form of this command to display action settings for this rule.