6.11. Route Policy Command Reference

6.11.1. Command Hierarchies

6.11.1.1. Route Policy Configuration Commands

config
[no] router [router-name]
abort
as-path name expression regular-expression
— no as-path name
begin
commit
community name members comm-id [comm-id (up to 15 max)]
— no community name [members comm-id]
[no] damping name
half-life minutes
— no half-life
max-suppress minutes
reuse integer
— no reuse
suppress integer
— no suppress
[no] policy-statement name
default-action {accept | next-entry | reject}
aigp-metric metric
aigp-metric metric add
aigp-metric igp
as-path {add | replace} name
— no as-path
as-path-prepend as-number [repeat]
community {{add name [remove name]} | {remove name [add name]} | {replace name}}
— no community
damping {name | none}
— no damping
local-preference local-preference
metric {add | subtract | set} metric
— no metric
[no] next-hop-self
origin {igp | egp | incomplete}
— no origin
preference preference
tag
type
description description-string
[no] entry entry-id
action {accept | next-entry | next-policy | reject}
— no action
aigp-metric metric
aigp-metric metric add
aigp-metric igp
as-path {add | replace} name
— no as-path
as-path-prepend as-number [repeat]
community {{add name [remove name]} | {remove name [add name]} | {replace name}}
— no community
damping {name | none}
— no damping
local-preference local-preference
metric {add | subtract | set} metric
— no metric
[no] next-hop-self
origin {igp | egp | incomplete}
— no origin
[no] preference preference
[no] tag
[no] type
description description-string
[no] from
[no] area
[no] as-path name
[no] as-path-group name
[no] external
family [ipv4] [vpn-ipv4][l2-vpn] [ms-pw] [route-target]
— no family
group-address prefix-list-name
[no] host-ip prefix-list-name
prefix-list name [name...(up to 5 max)]
level {1 | 2}
— no level
neighbor {ip-address | prefix-list name}
— no neighbor
source-address ip-address
[no] protocol protocol [all | {instance instance}]
[no] tag tag
— no tag
type type
— no type
[no] to
level {1 | 2}
— no level
neighbor {ip-address | prefix-list name}
— no neighbor
[no] prefix-list name [name...(up to 5 max)]
protocol protocol [all | {instance instance}]
— no protocol
config
[no] router
[no] prefix-list name
prefix ip-prefix/prefix-length [exact | longer | through length | prefix-length-range length1-length2]
— no prefix [ipv-prefix/prefix-length] [exact | longer | through length | prefix-length-range length1-length2]

6.11.1.2. Show Commands

show
— router
policy [name | prefix-list name | admin]

6.11.2. Command Descriptions

6.11.2.1. Route Policy Command Reference

6.11.2.1.1. Generic Commands

abort

Syntax 
abort
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command discards changes made to a route policy.

begin

Syntax 
begin
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enters the mode to create or edit route policies.

commit

Syntax 
commit
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command saves changes made to a route policy.

description

Syntax 
description string
no description
Context 
config>router>policy-options>policy-statement
config>router>policy-options>policy-statement>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a text description, which is stored in the configuration file, to help identify the content of the entity.

The no form of this command removes the string from the configuration.

Parameters 
string—
Specifies the description character string. Allowed values are any string up to 80 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

6.11.2.1.2. Route Policy Options

as-path

Syntax 
as-path name expression regular-expression
no as-path name
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a route policy autonomous system (AS) path regular expression statement to use in route policy entries.

The no form of this command deletes the AS path regular expression statement.

Parameters 
name—
Specifies the AS path regular expression name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
regular-expression—
Specifies the AS path regular expression. Allowed values are any string up to 256 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. A value of null specifies the AS path expressed as an empty regular expression string.

community

Syntax 
community name members comm-id [comm-id...(up to 15 max)]
no community name [members comm-id]
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a route policy community list to use in route policy entries.

The no form of this command deletes the community list or the provided community ID.

Default 

no community

Parameters 
name—
Specifies the community list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
comm-id—
Specifies the community ID. Note that up to 15 community ID strings can be specified up to a total maximum of 72 characters.
Values—

72 chars maximum

2byte-asnumber:comm-val | reg-ex | ext-comm | well-known-comm

ext-comm

type:{ip-address:comm-val | reg-ex1&reg-ex2 | ip-address&reg-ex2 | 2byte-asnumber:ext-comm-val |4byte-asnumber:comm-val}

2byte-asnumber

0..65535

comm-val

0..65535

reg-ex

72 chars maximum

type

target, origin

ip-address

a.b.c.d

ext-comm-val

0..4294967295

4byte-asnumber

0..4294967295

reg-ex1

63 chars max

reg-ex2

63 chars max

well-known-comm

null, no-export,no-export-subconfed, no-advertise

 

A community ID can be specified in different forms:
  1. as-num:comm.-value — The as-num is the autonomous system number (ASN)

    Values:

    as-num:

    1 to 65535

    comm-value:

    0 to 65535

  2. type {target | origin} as-num:comm.-value — The keywords target or origin denote the community as an extended community of type route target or route origin respectively. The as-num and comm-value values allow the same preceding values for regular community values.
  3. reg-ex1 reg-ex2 — These values are a regular expression string. Allowed values are any string up to 63 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.
  4. well-known-comm — Keywords null, no-export, no-export-subconfed, no-advertise.

policy-options

Syntax 
[no] policy-options
Context 
config>router
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure route policies. Route policies are applied to the routing protocol used for IGMP group membership report filtering.

The no form of this command deletes the route policy configuration.

triggered-policy

Syntax 
[no] triggered-policy
Context 
config>router
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command triggers route policy re-evaluation.

By default, when a change is made to a policy in the config router policy options context and committed, the change is effective immediately. There may be circumstances when the changes should or must be delayed; for example, if a policy change is implemented that would affect every BGP peer on a 7210 SAS router, the consequences could be dramatic. It is more effective to control changes on a peer by peer basis.

If the triggered-policy command is enabled, a specific peer is established, and you want the peer to remain up, in order for a change to a route policy to take effect, a clear command with the soft or soft-inbound option must be used. That is, when a triggered-policy is enabled, any routine policy change or policy assignment change within the protocol will not take effect until the protocol is reset or a clear command is issued to re-evaluate route policies; for example, clear router bgp neighbor x.x.x.x soft. This keeps the peer up and the change made to a route policy is applied only to that peer, or group of peers.

6.11.2.1.3. Route Policy Damping Commands

damping

Syntax 
[no] damping name
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates the context to configure a route damping profile to use in route policy entries.

The no form of this command deletes the named route damping profile.

Parameters 
name—
Specifies the damping profile name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

half-life

Syntax 
half-life minutes
no half-life
Context 
config>router>policy-options>damping
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the half-life parameter for the route damping profile.

The half life value is the time, expressed in minutes, required for a route to remain stable for the Figure of Merit (FoM) value to be reduced by one half; for example, if the half life value is 6 (minutes) and the route remains stable for 6 minutes, the new FoM value is 3 (minutes). After another 3 minutes pass and the route remains stable, the new FoM value is 1.5 (minutes).

When the FoM value falls below the reuse threshold, the route is again considered valid and can be reused or included in route advertisements. No half life value is specified. The half life value must be explicitly configured.

The no form of this command removes the half life parameter from the damping profile.

Parameters 
minutes—
Specifies the half life, in minutes, expressed as a decimal integer.
Values—
1 to 45

 

max-suppress

Syntax 
max-suppress minutes
no max-suppress
Context 
config>router>policy-options>damping
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the maximum suppression parameter for the route damping profile.

This value indicates the maximum time, expressed in minutes, that a route can remain suppressed.

The no form of this command removes the maximum suppression parameter from the damping profile.

Parameters 
minutes—
Specifies the maximum suppression time, in minutes, expressed as a decimal integer.
Values—
1 to 720

 

reuse

Syntax 
reuse integer
no reuse
Context 
config>router>policy-options>damping
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the reuse parameter for the route damping profile.

When the FoM value falls below the reuse threshold, the route is again considered valid and can be reused or included in route advertisements.

The no form of this command removes the reuse parameter from the damping profile.

Parameters 
integer—
Specifies the reuse value, expressed as a decimal integer.
Values—
1 to 20000

 

suppress

Syntax 
suppress integer
no suppress
Context 
config>router>policy-options>damping
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures the suppression parameter for the route policy damping profile.

A route is suppressed when it has flapped frequently enough to increase the FoM value to exceed the suppress threshold limit. When the FoM value exceeds the suppress threshold limit, the route is removed from the route table or inclusion in advertisements.

The no form of this command removes the suppress parameter from the damping profile.

Parameters 
integer—
Specifies the suppress value, expressed as a decimal integer.
Values—
1 to 20000

 

6.11.2.1.4. Route Policy Prefix Commands

prefix-list

Syntax 
[no] prefix-list name
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure a prefix list to use in route policy entries.

The no form of this command deletes the named prefix list.

Parameters 
name—
Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

prefix

Syntax 
[no] prefix [ipv-prefix/prefix-length] [exact | longer | through length | prefix-length-range length1-length2]
no prefix [ipv-prefix/prefix-length] [exact | longer | through length | prefix-length-range length1-length2]
Context 
config>router>policy-options>prefix-list
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a prefix entry in the route policy prefix list.

The no form of this command deletes the prefix entry from the prefix list.

Parameters 
ip-prefix—
Specifies the IP prefix for prefix list entry in dotted decimal notation.
Values—

ipv4-prefix:

a.b.c.d (host bits must be 0)

ipv4-prefix-length:

0 to 32

<exact|longer|thro*>

: keyword

<length>

: [0 to 128] (prefix-length <= length)

<length1-length2>

: length1/length - [0 to 128] (prefix-length <= length1 <=length2)

 

exact—
Specifies the prefix list entry only matches the route with the specified ip-prefix and prefix mask (length) values.
longer—
Specifies that the prefix list entry matches any route that matches the specified ip-prefix and prefix mask length values greater than the specified mask.
through length
Specifies that the prefix list entry matches any route that matches the specified ip-prefix and has a prefix length between the specified length values inclusive.
Values—
0 to 32

 

prefix-length-range length1-length2
Specifies a route must match the most significant bits and have a prefix length with the specified range. The range is inclusive of start and end values. The length2 value is greater than the length1 value.
Values—
0 to 32

 

6.11.2.1.5. Route Policy Entry Match Commands

entry

Syntax 
entry entry-id
no entry
Context 
config>router>policy-options>policy-statement
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to edit route policy entries within the route policy statement.

Multiple entries can be created using unique entries. The 7210 SAS exits the filter when the first match is found and executes the action specified. For this reason, entries must be sequenced correctly from most to least explicit.

An entry does not require that matching criteria be defined (in which case, everything matches), but must have at least an action defined to be considered complete. Entries without an action are considered incomplete and will be rendered inactive.

The no form of this command removes the specified entry from the route policy statement.

Parameters 
entry-id—
Specifies the entry ID expressed as a decimal integer. An entry-id uniquely identifies match criteria and the corresponding action. Nokia recommends that multiple entries be specific entry-ids in staggered increments. This allows users to insert a new entry in an existing policy without requiring renumbering of all the existing entries.
Values—
1 to 4294967295

 

from

Syntax 
[no] from
Context 
config>router>policy-options>policy-statement>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure policy match criteria based on a route source or the protocol from which the route is received.

If no condition is specified, all route sources are considered to match.

The no form of this command deletes the source match criteria for the route policy statement entry.

family

Syntax 
family [ipv4] [vpn-ipv4]
no family
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies address families as matching conditions.

Parameters 
ipv4—
Specifies IPv4 routing information.
vpn-ipv4—
Specifies IPv4 VPN routing information.

area

Syntax 
area area-id
no area
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an OSPF area as a route policy match criterion.

This match criterion is only used in export policies.

All OSPF routes (internal and external) are matched using this criterion if the best path for the route is through the specified area.

The no form of this command removes the OSPF area match criterion.

Parameters 
area-id—
Specifies the OSPF area ID, expressed in dotted decimal notation or as a 32-bit decimal integer.
Values—
0.0.0.0 to 255.255.255.255 (dotted decimal), 0 to 4294967295 (decimal)

 

aigp-metric

Syntax 
aigp-metric metric
aigp-metric metric add
aigp-metric igp
no aigp-metric
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns a BGP AIGP metric to routes matching the entry. The effect of this command on a route matched and accepted by a route policy entry depends on how the policy is applied (BGP import policy versus BGP export policy), the type of route, and the specific form of this command.

In a BGP import policy, this command is used to:

  1. associate an AIGP metric with an iBGP route received with an empty AS path and no AIGP attribute
  2. associate an AIGP metric with an eBGP route received without an AIGP attribute that has an AS path containing only AS numbers belonging to the local AIGP administrative domain
  3. modify the received AIGP metric value prior to BGP path selection

In a BGP export policy, this command is used to:

  1. add the AIGP attribute and set the AIGP metric value in a BGP route originated by exporting a direct, static, or IGP route from the routing table
  2. remove the AIGP attribute from a route advertisement to a specific peer
  3. modify the AIGP metric value in a route advertisement to a specific peer

The no form of this command removes the AIGP attribute and any explicit AIGP metric value changes that were previously configured using this command.

Default 

no aigp-metric

Parameters 
add—
Keyword to add the AIGP attribute.
igp—
Keyword to set the AIGP metric value to the IGP metric value.
metric—
Specifies the AIGP metric value.
Values—
0 to 4294967295

 

as-path

Syntax 
as-path name
no as-path
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an AS path regular expression statement as a match criterion for the route policy entry.

If no AS path criterion is specified, any AS path is considered to match.

AS path regular expression statements are configured at the global route policy level (config>router>policy-options>as-path).

The no form of this command removes the AS path regular expression statement as a match criterion.

Default 

no as-path

Parameters 
name—
Specifies the AS path regular expression name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. Policy parameters must be enclosed by at-signs (@) and may be midstring; for example, "@variable@," "start@variable@end"," @variable@end", or "start@variable@".

as-path-group

Syntax 
as-path-group name
no as-path-group name
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command creates a route policy AS path regular expression statement to use in route policy entries.

The no form of this command deletes the AS path regular expression statement.

Parameters 
name—
Specifies the AS path regular expression name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. Policy parameters must be enclosed by at-signs (@) and may be midstring; for example, "@variable@," "start@variable@end"," @variable@end", or "start@variable@".

community

Syntax 
community name
no community
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a community list as a match criterion for the route policy entry.

If no community list is specified, any community is considered a match.

The no form of this command removes the community list match criterion.

Default 

no community

Parameters 
name—
Specifies the community list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The name specified must already be defined.

external

Syntax 
[no] external
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the external route matching criteria for the entry.

Default 

no external

group-address

Syntax 
group-address prefix-list-name
no group-address
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the multicast group address prefix list containing multicast group addresses that are embedded in the join or prune packet as a filter criterion. The prefix list must be configured before entering this command. Prefix lists are configured in the config>router>policy-options>prefix-list context.

The no form of this command removes the criterion from the configuration.

Default 

no group-address

Parameters 
prefix-list-name—
Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The prefix-list-name is defined in the config>router>policy-options>prefix-list context.

host-ip

Syntax 
host-ip prefix-list-name
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies a prefix list host IP address as a match criterion for the route policy statement entry.

Default 

no host-ip

Parameters 
prefix-list-name—
Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The prefix-list-name is defined in the config>router>policy-options>prefix-list context.

interface

Syntax 
interface interface-name
no interface
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the router interface, specified either by name or address, as a filter criterion.

The no form of this command removes the criterion from the configuration.

Default 

no interface

Parameters 
ip-int-name—
Specifies the name of the interface as a match criterion for this entry. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

level

Syntax 
level {1 | 2}
no level
Context 
config>router>policy-options>policy-statement>entry>from
config>router>policy-options>policy-statement>entry>to
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the IS-IS route level as a match criterion for the entry.

Default 

no level

Parameters 
1 | 2—
Keyword to match the IS-IS route learned from level 1 or level 2.

neighbor

Syntax 
neighbor {ip-address | prefix-list name}
no neighbor
Context 
config>router>policy-options>policy-statement>entry>to
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the neighbor address as found in the source address of the actual join and prune message as a filter criterion. If no neighbor is specified, any neighbor is considered a match.

The no form of the of the command removes the neighbor IP match criterion from the configuration.

Default 

no neighbor

Parameters 
ip-address—
Specifies the neighbor IP address in dotted decimal notation.
Values—
ipv4-address: a.b.c.d

 

prefix-list name
Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The name specified must already be defined.

origin

Syntax 
origin {igp | egp | incomplete | any}
no origin
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a BGP origin attribute as a match criterion for a route policy statement entry.

If no origin attribute is specified, any BGP origin attribute is considered a match.

The no form of this command removes the BGP origin attribute match criterion.

Default 

no origin

Parameters 
igp—
Keyword to configure matching path information originating within the local AS.
egp—
Keyword to configure matching path information originating in another AS.
incomplete—
Keyword to configure matching path information learned by another method.
any—
Keyword to ignore this criteria.

policy-statement

Syntax 
[no] policy-statement name
Context 
config>router>policy-options
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure a route policy statement.

Route policy statements enable appropriate processing of IGMP group membership reports received from hosts. The processing action taken is determined by the action associated with the entries configured in the policy statement.

The policy-statement is a logical grouping of match and action criteria.

The no form of this command deletes the policy statement.

Default 

no policy-statement

Parameters 
name—
Specifies the route policy statement name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

prefix-list

Syntax 
prefix-list name [name...(up to 5 max)]
no prefix-list
Context 
config>router>policy-options>policy-statement>entry>from
config>router>policy-options>policy-statement>entry>to
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a prefix list as a match criterion for a route policy statement entry.

If no prefix list is specified, any network prefix is considered a match.

The prefix lists specify the network prefix (this includes the prefix and length) a specific policy entry applies.

A maximum of five prefix names can be specified.

The no form of this command removes the prefix list match criterion.

Default 

no prefix-list

Parameters 
name—
Specifies the prefix list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes.

protocol

Syntax 
protocol protocol [all | {instance instance}]
no protocol
Context 
config>router>policy-options>policy-statement>entry>from
config>router>policy-options>policy-statement>entry>to
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a routing protocol as a match criterion for a route policy statement entry. This command is used for both import and export policies depending how it is used.

If no protocol criterion is specified, any protocol is considered a match.

The no form of this command removes the protocol match criterion.

Default 

no protocol

Parameters 
protocol—
Specifies the protocol name to match on.
Values—
direct, static, bgp, isis, ospf, aggregate, bgp-vpn, igmp, periodic

 

instance—
Specifies the OSPF or IS-IS instance.
Values—
1 to 31

 

all—
OSPF- or IS-IS-only keyword.

source-address

Syntax 
source-address ip-address
no source-address
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command specifies the source address that is embedded in the join or prune packet as a filter criterion.

The no form of this command removes the criterion from the configuration.

This command specifies a multicast data source address as a match criterion for this entry.

Parameters 
ip-address—
Specifies the IP prefix for the IP match criterion in dotted decimal notation.

ipv4-address - a.b.c.d

tag

Syntax 
tag tag
no tag
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command adds an integer tag to the static route. These tags are then matched on to control route redistribution.

The no form of this command removes the tag field match criterion.

Default 

no tag

Parameters 
tag—
Specifies to match a specific external LSA tag field.
Values—
no-tag, 1 to 4294967295

 

to

Syntax 
[no] to
Context 
config>router>policy-options>policy-statement>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure export policy match criteria based on a route destination or the protocol into which the route is being advertised.

If no condition is specified, all route destinations are considered to match.

The to command context only applies to export policies. If it is used for an import policy, match criteria is ignored.

The no form of this command deletes export match criteria for the route policy statement entry.

type

Syntax 
type type
no type
Context 
config>router>policy-options>policy-statement>entry>from
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures an OSPF type metric as a match criterion in the route policy statement entry.

If no type is specified, any OSPF type is considered a match.

The no form of this command removes the OSPF type match criterion.

Parameters 
1—
Keyword to match OSPF routes with type 1 LSAs.
2—
Keyword to match OSPF routes with type 2 LSAs.

6.11.2.1.6. Route Policy Action Commands

action

Syntax 
action {accept | next-entry | next-policy | reject}
no action
Context 
config>router>policy-options>policy-statement>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure actions to take for routes matching a route policy statement entry.

This command is required and must be entered for the entry to be active.

Any route policy entry without the action command will be considered incomplete and will be inactive.

The no form of this command deletes the action context from the entry.

Default 

no action

Parameters 
accept—
Specifies packets matching the entry match criteria will be accepted and processed appropriately.
next-entry—
Specifies that the actions specified would be taken and policy evaluation would continue with the next policy entry (if any others are specified).
next-policy—
Specifies that the actions specified would be made to the route attributes and policy eval­uation would continue with the next route policy (if any others are specified).
reject—
Specifies packets matching the entry match criteria will be rejected.

as-path

Syntax 
as-path {add | replace} name
no as-path
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns a BGP AS path list to routes matching the route policy statement entry.

If no AS path list is specified, the AS path attribute is not changed.

The no form of this command disables the AS path list editing action from the route policy entry.

Default 

no as-path

Parameters 
add—
Specifies that the AS path list is to be prepended to an existing AS list.
replace—
Specifies AS path list replaces any existing as path attribute.
name—
Specifies the AS path list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, etc.), the entire string must be enclosed within double quotes. The name specified must already be defined.

as-path-prepend

Syntax 
as-path-prepend as-num [repeat]
no as-path-prepend
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command prepends a BGP ASN once or multiple times to the AS path attribute of routes matching the route policy statement entry.

If an ASN is not configured, the AS path is not changed.

If the optional number is specified, the ASN is prepended as many times as indicated by the number.

The no form of this command disables the AS path prepend action from the route policy entry.

Default 

no as-path-prepend

Parameters 
as-num—
Specifies the ASN to prepend expressed as a decimal integer.
Values—
1 to 4294967295

 

repeat—
Specifies the number of times to prepend the specified ASN expressed as a decimal integer.
Values—
1 to 50

 

community

Syntax 
community {{add name [remove name]} | {remove name [add name]} | {replace name}}
no community
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command adds or removes a BGP community list to or from routes matching the route policy statement entry.

If no community list is specified, the community path attribute is not changed.

The community list changes the community path attribute according to the add and remove keywords.

The no form of this command disables the action to edit the community path attribute for the route policy entry.

Default 

no community

Parameters 
add—
Keyword to specify that the community list is added to any existing list of communities.
remove—
Keyword to specify that the community list is removed from the existing list of communities.
replace—
Keyword to specify that the community list replaces any existing community attribute.
name—
Specifies the community list name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes.

damping

Syntax 
damping {name | none}
no damping
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command configures a damping profile used for routes matching the route policy statement entry.

If no damping criteria is specified, the default damping profile is used.

The no form of this command removes the damping profile associated with the route policy entry.

Default 

no damping

Parameters 
name—
Specifies the damping profile name. Allowed values are any string up to 32 characters composed of printable, 7-bit ASCII characters. If the string contains special characters (#, $, spaces, and so on), the entire string must be enclosed within double quotes. The name specified must already be defined.
none—
Keyword to disable route damping for the route policy.

default-action

Syntax 
default-action {accept | next-entry| reject}
no default-action
Context 
config>router>policy-options>policy-statement
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command enables the context to configure actions for routes packets that do not match any route policy statement entries when the accept parameter is specified.

The default action clause can be set to all available action states, including accept, reject, next-entry and next-policy. If the action states accept or reject, the policy evaluation terminates and the appropriate result is returned.

If a default action is defined and no matches occurred with the entries in the policy, the default action clause is used.

If a default action is defined and one or more matches occurred with the entries of the policy then the default action is not used.

The no form of this command deletes the default-action context for the policy statement.

Default 

no default-action

Parameters 
accept—
Keyword to specify that route packets matching the entry match criteria will be accepted and propagated and processed appropriately.
next-entry—
Keyword to specify that the actions specified will be made to the route attributes taken, and policy evaluation will continue with the next policy entry (if any others are specified).
reject—
Keyword to specify that routes or packets matching the entry match criteria will be rejected.

local-preference

Syntax 
local-preference preference
no local-preference
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns a BGP local preference to routes matching a route policy statement entry.

If no local preference is specified, the BGP configured local preference is used.

The no form of this command disables assigning a local preference in the route policy entry.

Default 

no local-preference

Parameters 
preference—
Specifies the local preference expressed as a decimal integer.
Values—
0 to 4294967295

 

metric

Syntax 
metric {add | subtract | set} metric
no metric
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns a metric to routes matching the policy statement entry.

If no metric is specified, the configured metric is used. If neither is defined, no metric will be advertised.

The value assigned for the metric by the route policy is controlled by the required keywords.

The no form of this command disables assigning a metric in the route policy entry.

Default 

no metric

Parameters 
add—
Keyword to add the specified integer to any existing metric. If the result of the addition results in a number greater than 4294967295, the value 4294967295 is used.
subtract—
Keyword to subtract the specified integer from any existing metric. If the result of the subtraction results in a number less than 0, the value of 0 is used.
set—
Keyword to replace any existing metric with the specified integer.
metric—
Specifies the metric modifier expressed as a decimal integer.
Values—
0 to 4294967295

 

next-hop-self

Syntax 
[no] next-hop-self
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command advertises a next hop IP address belonging to this router even if a third-party next hop is available to routes matching the policy statement entry.

The no form of this command disables advertising the next-hop-self option for the route policy entry.

Default 

no next-hop-self

origin

Syntax 
origin {igp | egp | incomplete}
no origin
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command sets the BGP origin assigned to routes exported into BGP.

If the routes are exported into protocols other than BGP, this option is ignored.

The no form of this command disables setting the BGP origin for the route policy entry.

Default 

no origin

Parameters 
igp—
Keyword to set the path information as originating within the local AS.
egp—
Keyword to set the path information as originating in another AS.
incomplete—
Keyword to set the path information as learned by some other means.

preference

Syntax 
preference preference
no preference
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns a route preference to routes matching the route policy statement entry.

If no preference is specified, the default route table manager (RTM) preference for the protocol is used.

The no form of this command disables setting an RTM preference in the route policy entry.

Default 

no preference

Parameters 
preference—
Specifies the route preference, expressed as a decimal integer.
Values—
1 to 255 (0 represents unset - MIB only)

 

tag

Syntax 
tag tag
no tag
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns an OSPF tag to routes matching the entry. The tag value is used to apply a tag to a route for either an OSPF or RIP route. A hexadecimal value of 4 octets can be entered.

For OSPF, all four octets can be used.

For RIP, only the two most significant octets are used if more than two octets are configured.

The no form of this command removes the tag.

Default 

no tag

Parameters 
tag—
Specifies an OSPF or IS-IS tag assigned to routes matching the entry.
Values—

Accepts decimal or hex formats:

OSPF and IS-IS:

[0x0..0xFFFFFFFF]H

RIP:

[0x0..0xFFFF]H

 

type

Syntax 
type {type}
no type
Context 
config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command assigns an OSPF type metric to routes matching the route policy statement entry and being exported into OSPF.

The no form of this command disables assigning an OSPF type in the route policy entry.

Default 

no type

Parameters 
type—
Specifies the OSPF type metric.
Values—
1 — Set as OSPF routes with type 1 LSAs
2 — set as OSPF routes with type 2 LSAs

 

6.11.2.2. Show Commands

policy

Syntax 
policy [name | prefix-list [name] | admin]
Context 
show>router
Supported Platforms 

Supported on all 7210 SAS platforms as described in this document

Description 

This command displays configured policy statement information.

Parameters 
policy name—
Displays information similar to the info command for a specific policy statement. If a name is provided, the matching policy statement displays.

If no statement name is specified, a list of all policies statements and descriptions display.

prefix-list name—
Displays the prefix lists configured in the route policy for the specified policy name.
admin—
Keyword to display the entire policy option configuration, including any uncommitted configuration changes. This command is similar to the info command.
Output 

The following outputs are examples of router policy information, and Table 79 describes the output fields.

Sample Output - show router policy

The show router policy command displays all configured route policies.

show router policy

A:ALA-1# show router policy 
===============================================================================
Route Policies
===============================================================================
Policy                           Description                                    
-------------------------------------------------------------------------------
OSPF to OSPF                     Policy Statement for 'OSPF to OSPF'
Direct And Aggregate             Policy Statement ABC
-------------------------------------------------------------------------------
Policies : 2
===============================================================================
A:ALA-1# 
Sample Output - show router policy admin

The show router policy admin command is similar to the info command which displays information about the route policies and parameters.

*A:7210-SAS>show>router# policy admin
    prefix-list "abc"
        prefix 10.1.1.0/24 longer
        prefix 10.1.1.1/32 exact
        prefix 10.1.0.0/16 prefix-length-range 16-24
    exit
    community "SOO" members "origin:12345:1"
    community "sample" members "target:12345:10"
    as-path "null" "null"
    as-path "test" "1234"
    as-path "prevent loop" "null"
    damping "re"
        reuse 100
    exit
    damping "max"
        max-suppress 20
    exit
    damping "sup"
        suppress 20000
    exit
    damping "half"
        half-life 10
    exit
    damping "test"
    exit
    policy-statement "abcd"
        description "Test for policy statements"
        entry 1
            from
                area 0.0.0.0
            exit
to
                protocol bgp
            exit
            action accept
            exit
        exit
        entry 2
            from
                community "sample"
            exit
            to
                neighbor 10.2.2.2
            exit
            action accept
            exit
        exit
        entry 3
            from
                external
            exit
            to
                level 2
            exit
            action accept
            exit
        exit
        entry 4
            from
                family vpn-ipv4
            exit
            to
                protocol bgp-vpn
            exit
            action accept
            exit
        exit
entry 5
            from
                protocol bgp
            exit
            action accept
                next-hop 10.1.1.1
            exit
        exit
        entry 6
            from
                protocol bgp
            exit
            action accept
                as-path add "null"
            exit
        exit
        entry 7
            from
                protocol bgp
            exit
            action accept
                as-path replace "sample"
            exit
exit
        default-action accept
        exit
    exit
    policy-statement "test"
        entry 2
            from
            exit
            to
            exit
            action accept
            exit
        exit
        default-action accept
        exit
    exit
*A:7210-SAS>show>router#
 
*A:7210-2# show router policy admin 
    prefix-list "host"
        prefix 10.0.0.0/8 longer
    exit
    prefix-list "group"
        prefix 239.6.6.6/32 exact
    exit
    policy-statement "block-igmp"
        description "Reject-Reports-From-Specific-Group-And-Host"
        entry 1
            from
                host-ip "host"
            exit
            action next-entry
            exit
        exit
        entry 2
            from
                group-address "group"
            exit
            action reject
        exit
        default-action accept
        exit                          
    exit
    policy-statement "permit-igmp"
        description "Accept-Reports-From-Specific-Group-And-Host"
        entry 1
            from
                host-ip "host1"
                group-address "group1"
            exit
            action accept
            exit
        exit
        default-action reject
    exit
 

The show router policy name command displays information about a specific route policy.

 
*A:7210-2# show router policy permit-igmp 
    description "Accept-Reports-From-Specific-Group-And-Host"
    entry 1
        from
            host-ip "host1"
            group-address "group1"
        exit
        action accept
        exit
    exit
    default-action reject
*A:7210-2#
 
 

The show router policy prefix-list command, lists the prefix-lists configured in the route policy.

 
*A:7210-2# show router policy prefix-list 
==================================
Prefix Lists
==================================
Prefix List Name                                                               
----------------------------------
host                              
group                             
----------------------------------
Num Prefix Lists: 2
==================================
*A:7210-2#
 
Sample Output - Show Router Policy “From direct To RIP”

The show router policy name command displays information about a specific route policy.

 
d*A:dut-c>config>router>policy-options>policy-statement# info detail
----------------------------------------------
                description "Policy From direct To rip"
                entry 2
                    description "Entry 2 - From Prot. rip To rip"
                    from
                        
                        no neighbor
                        no prefix-list
                        no as-path
                        no as-path-group
                        no community
                        no type
                        no area
                        no level
                        no external
                        no host-ip
                        no group-address
                        no interface
                        no tag
                        no family
                    exit
                    to
                       
                        no neighbor
                        no level
                        no prefix-list
                    exit
Table 79:  Output Fields: Router Policy 

Label

Description

Policy

Displays a list of route policy names

Description

Displays the description of each route policy

Policies

The total number of policies configured

Damping

Displays the damping profile name

half-life

Displays the half-life parameter for the route damping profile

max-suppress

Displays the maximum suppression parameter configured for the route damping profile

Prefix List

Displays the prefix list name and IP address/mask and whether the prefix list entry only matches (exact) the route with the specified ip-prefix and prefix mask (length) values or values greater (longer) than the specified mask

AS Path Name

Displays a list of AS path names

AS Paths

Displays the total number of AS paths configured

Community Name

Displays a list of community names

Communities

Displays the total number of communities configured