home

Supported platforms

Vyatta documentation

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

policy route route-map <map-name> rule <rule-num> match interface <interface-name>

Defines a match condition for a route map based on the first-hop interface.

set policy route route-map map-name rule rule-num match interface interface-name
delete policy route route-map map-name rule rule-num match interface interface-name
show policy route route-map map-name rule rule-num match interface interface-name

If no interface match condition is specified, packets are not filtered by interface.

map-name
The name of a defined route map.
rule-number
The number of a defined route map rule.
interface-name
Matches first hop interface specified in the route against the interface name.

Configuration mode


policy {
    route-map map-name {
        rule rule-num {
            match {
                interface interface-name
            }
        }
    }
}

Use the set form of this command to define a match condition for a route map policy based on first-hop interface.

Packets are matched based on whether the first-hop interface of the route matches the interface specified by this command. Depending on the action defined for the rule using policy route route-map <map-name> rule <rule-num> action, matched packets are either permitted or denied. Based on the forwarding information specified by the set statements in the route map rule, permitted packets are forwarded to their various destinations.

If more than one match condition is defined in a route map rule, the packet must match all conditions to count as a match. If no match condition is defined for the route map rule, all packets are considered to match the rule.

Use the delete form of this command to remove the interface match condition.

Use the show form of this command to display interface match condition configuration.