
Originating Prefixes with AiGP
Perform this task to configure origination of routes with the AiGP metric:
Before you begin
Origination of routes with the accumulated interior gateway protocol (AiGP) metric is controlled by
configuration. AiGP attributes are attached to redistributed routes that satisfy following conditions:
• The protocol redistributing the route is enabled for AiGP.
• The route is an interior gateway protocol (iGP) route redistributed into border gateway protocol (BGP).
The value assigned to the AiGP attribute is the value of iGP next hop to the route or as set by a
route-policy.
• The route is a static route redistributed into BGP. The value assigned is the value of next hop to the route
or as set by a route-policy.
• The route is imported into BGP through network statement. The value assigned is the value of next hop
to the route or as set by a route-policy.
SUMMARY STEPS
1.
configure
2.
route-policy aigp_policy
3.
set aigp-metricigp-cost
4.
exit
5.
router bgp as-number
6.
address-family
{
ipv4
|
ipv6
}
unicast
7.
redistribute ospf osp route-policy plcy_namemetric value
8.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Enters route-policy configuration mode and sets the
route-policy
route-policy aigp_policy
Example:
Step 2
RP/0/RP0/CPU0:router(config)# route-policy
aip_policy
Sets the internal routing protocol cost as the aigp metric.
set aigp-metricigp-cost
Example:
Step 3
RP/0/RP0/CPU0:router(config-rpl)# set aigp-metric
igp-cost
Exits route-policy configuration mode.
exit
Example:
Step 4
RP/0/RP0/CPU0:router(config-rpl)# exit
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
87
Implementing BGP
Originating Prefixes with AiGP