Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Configuration Examples for Implementing Routing Policy on Cisco IOS XR Software
RC-413
Cisco IOS XR Routing Configuration Guide
OL-14356-01
DETAILED STEPS
Configuration Examples for Implementing Routing Policy on
Cisco IOS XR Software
This section provides the following configuration examples:
Routing Policy Definition: Example, page RC-414
Simple Inbound Policy: Example, page RC-414
Modular Inbound Policy: Example, page RC-415
Translating Cisco IOS Route Maps to Cisco IOS XR Routing Policy Language: Example,
page RC-416
Command or Action Purpose
Step 1
edit {route-policy | prefix-set | as-path-set |
community-set | extcommunity-set {rt | soo} |
policy-global | rd-set} name [nano | emacs |
vim | inline {add | prepend | remove}
set-element]
Example:
RP/0/RP0/CPU0:router# edit route-policy sample1
Identifies the route policy, prefix set, AS path set,
community set, or extended community set name to be
modified.
A copy of the route policy, prefix set, AS path set,
community set, or extended community set is copied to
a temporary file and the editor is launched.
After editing with Nano, save the editor buffer and exit
the editor by using the Ctrl-X keystroke.
After editing with Emacs, save the editor buffer by
using the Ctrl-X and Ctrl-S keystrokes. To save and exit
the editor, use the Ctrl-X and Ctrl-C keystrokes.
After editing with Vim, to write to a current file and exit
use the :wq or :x or ZZ keystrokes. To quit and confirm,
use the :q keystrokes. To quit and discard changes, use
the :q! keystrokes.
Step 2
show rpl route-policy [name [detail] | states |
brief]
Example:
RP/0/RP0/CPU0:router# show rpl route-policy
sample2
(Optional) Displays the configuration of a specific named
route policy.
Use the detail keyword to display all policies and sets
that a policy uses.
Use the states keyword to display all unused, inactive,
and active states.
Use the brief keyword to list the names of all extended
community sets without their configurations.
Step 3
show rpl prefix-set [name | states | brief]
Example:
RP/0/RP0/CPU0:router# show rpl prefix-set
prefixset1
(Optional) Displays the contents of a named prefix set.
To display the contents of a named AS path set,
community set, or extended community set, replace the
prefix-set keyword with as-path-set, community-set,
or extcommunity-set, respectively.