Supported Route Map Statements by Protocol

Some statements affect only a particular protocol, for example, matching the Autonomous System Number is applicable only to BGP.

If such a condition is in a routemap used by OSPF, the match condition is ignored.

Any non-applicable match conditions or actions are ignored and processing is done as if they do not exist.

A log message is written in the /var/log/messages file for any such statements.

Note - The same parameter cannot appear both as a match and action statement in a routemap. These include Community, Metric, and Nexthop.

RIP

Category

Supported Statements

Import Match conditions

  • Neighbor

  • Network

  • Interface

  • Ifaddress

  • Metric

  • Neighbor

  • Nexthop

Import Actions

  • Precedence

  • Metric Add/Subtract

Export Match conditions when exporting from RIP

  • Interface

  • Ifaddress

  • Metric

  • Network

  • Nexthop

Export Match Conditions when redistributing using Protocol match

According to the protocol, from which route is being redistributed

Export Actions when exporting from RIP

Metric Add/Subtract

Export Actions when redistributing

Metric Set

OSPFv2

Category

Supported Statements

Import Match conditions

Network (Route Prefix)

Import Actions

Precedence

Export Match conditions when other protocols redistribute OSPF routes

  • Network

  • Interface

  • Ifaddress

  • Metric

  • Route-type

  • Nexthop

Export Match conditions when OSPF redistributes routes from other protocols

According to the conditions supported by that protocol

Export Actions when redistributing to AS External

  • Metric

  • Route-type