This section provides information to configure route policies and configuration examples of common tasks. The minimal route policy parameters that need to be configured are described below.
Policy statement with the following parameters specified:
at least one entry
entry action
Following is an example route policy configuration:
A:ALA-B>config>router>policy-options# info
----------------------------------------------
community "all-types" members "5000:[1-6][1-9][0-9]"
community "all-normal" members "5000:[1-5][1-9][0-9]"
. . .
as-path "Outside madeup paths" ".* 5001 .*"
as-path "Outside Internet paths" ".* 5002 .*"
policy-statement "RejectOutsideASPaths"
entry 1
from
protocol bgpospf
as-path "Outside madeup paths"
exit
action reject
exit
exit
entry 2
from
protocol bgpospf
as-path "Outside Internet paths"
exit
action reject
exit
exit
entry 3
from
protocol ospf
exit
to
protocol bgpospf
exit
action reject
exit
exit
entry 4
from
protocol isis
exit
to
protocol bgpospf
exit
action reject
exit
exit
default-action accept
exit
exit
policy-statement "aggregate-customer-peer-only"
entry 1
from
community "all-customer-announce"
exit
action accept
exit
exit
default-action reject
exit
exit
----------------------------------------------
A:ALA-B>config>router>policy-options#