policy [name | prefix-list [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 prefix lists configured in the route policy for the specified policy name.
Keyword to display 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 information, and Table: Output fields: router policy describes the output fields.
The 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#
*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
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 |