Default-Information Originate; Redistribute; Ospfv3 Attributes And Operators - Cisco ASR 9000 Series Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Implementing Routing Policy

Default-Information Originate

The default-information originate attach point allows the user to conditionally inject the default route 0::/0
into the OSPFv3 link-state database, which is done by evaluating the attached policy. If any routes in the local
RIB pass the policy, then the default route is inserted into the link-state database.
The following example shows how to generate a default route if any of the routes that match 2001::/96 are
present in the RIB:
route-policy ospfv3-originate
if rib-has-route in (2001::/96) then
endif
end-policy
router ospfv3 1
default-information originate policy ospfv3-originate
.
.

Redistribute

The redistribute attach point within OSPFv3 injects routes from other routing protocol sources into the OSPFv3
link-state database, which is done by selecting the route types it wants to import from each protocol. It then
sets the OSPFv3 parameters of cost and metric type. The policy can control how the routes are injected into
OSPFv3 by using the metric type command.
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
elseif tag eq 20 then
else
endif
end-policy
router ospfv3 1
redistribute bgp 15 policy OSPFv3-redist
.
.
.

OSPFv3 Attributes and Operators

This table summarizes the OSPFv3 attributes and operators per attach points.
OL-30423-03
pass
set extcommunity cost 100
set extcommunity cost 200
drop
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
Attach Points
521

Advertisement

Table of Contents
loading

Table of Contents