policy [name | damping | prefix-list name |as-path name |community name | admin]
show>router
Supported on all 7210 SAS platforms as described in this document
This command displays configured policy statement information.
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.
Displays the damping profile for use in the route policy.
Displays the prefix lists configured in the route policy.
Displays AS path regular expression statements used in the route policy.
Displays community lists used in the route policy.
Keyword that displays the entire policy option configuration, including any uncommitted configuration changes. This command is similar to the info command.
The following outputs are examples of router policy statement information, and Table: Output fields: route policy describes the output fields.
Sample output: show router policyThe show router policy command displays all configured route policies.
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#
Sample output: show router policy name
The show router policy name command displays information about a specific route policy.
A:ALA-1# show router policy "OSPF To OSPF"
entry 10
description "Entry For Policy Statement OSPF To OSPF"
from
protocol ospf
exit
to
protocol ospf
exit
action accept
tag 100
exit
exit
default-action reject
ALA-1#
Sample output
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
protocol rip
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
protocol rip
no neighbor
no level
no prefix-list
exit
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 |