Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy on Cisco IOS XR Software
RC-398
Cisco IOS XR Routing Configuration Guide
OL-14356-01
The following example shows how to redistribute routes from BGP instance 15 into OSPF instance 1
using the policy OSPFv3-redist. The policy sets the metric type to type-2 for all redistributed routes.
BGP routes with a tag of 10 have their cost set to 100, and BGP routes with a tag of 20 have their OSPFv3
cost set to 200. Any BGP routes not carrying a tag of either 10 or 20 are not be redistributed into the
OSPFv3 link-state database.
route-policy OSPFv3-redist
set metric-type type-2
if tag eq 10 then
set extcommunity cost 100
elseif tag eq 20 then
set extcommunity cost 200
else
drop
endif
end-policy
router ospfv3 1
redistribute bgp 15 policy OSPFv3-redist
.
.
.
OSPFv3 Attributes and Operators
Table 4 summarizes the OSPFv3 attributes and operators.
IS-IS Policy Attach Points
This section describes each of the IS-IS policy attach points and provides a summary of the IS-IS
attributes and operators.
Redistribute, page RC-399
Default-Information Originate, page RC-399
Table 4 OSPFv3 Attributes and Operators
Attach Point Attribute Match Set
default-information
originate
ospf-metric n/a set
metric-type n/a set
tag n/a set
rib-has-route in n/a
redistribute destination in n/a
ospf-metric n/a set
metric-type n/a set
route-type is n/a
tag is, eq, ge, le n/a