Redistribute; Show Bgp - Cisco ASR 9000 Series Routing Configuration Manual

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

Advertisement

Implementing Routing Policy
end-policy
router bgp 2
address-family ipv4 unicast
network 172.16.0.5/27 route-policy NetworkControl

Redistribute

The redistribute attach point within OSPF injects routes from other routing protocol sources into the OSPF
link-state database, which is done by selecting the routes it wants to import from each protocol. It then sets
the OSPF parameters of cost and metric type. The policy can control how the routes are injected into OSPF
by using the set metric-type or set ospf-metric command.
The following example shows how to redistribute routes from IS-IS instance instance_10 into OSPF instance
1 using the policy OSPF-redist. The policy sets the metric type to type-2 for all redistributed routes. IS-IS
routes with a tag of 10 have their cost set to 100, and IS-IS routes with a tag of 20 have their OSPF cost set
to 200. Any IS-IS routes not carrying a tag of either 10 or 20 are not be redistributed into the OSPF link-state
database.
route-policy OSPF-redist
set metric-type type-2
if tag eq 10 then
set ospf cost 100
elseif tag eq 20 then
set ospf cost 200
else
drop
endif
end-policy
router ospf 1
redistribute isis instance_10 policy OSPF-redist
.
.
.

Show BGP

The show bgp attach point allows the user to display selected BGP routes that pass the given policy. Any
routes that are not dropped by the attached policy are displayed in a manner similar to the output of the show
bgp command.
In the following example, the show bgp route-policy command is used to display any BGP routes carrying
a MED of 5:
route-policy sample-display
if med eq 5 then
pass
endif
end-policy
!
show bgp route-policy sample-display
A show bgp policy route-policy command also exists, which runs all routes in the RIB past the named policy
as if the RIB were an outbound BGP policy. This command then displays what each route looked like before
it was modified and after it was modified, as shown in the following example:
show rpl route-policy test2
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
Attach Points
571

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents