BGP Accumulated IGP: Finding Feature Information
BGP Accumulated IGP: Finding Feature Information
The BGP Accumulated IGP feature is an optional nontransitive Border Gateway Protocol (BGP) path attribute.
The attribute type code for the accumulated interior gateway protocol (AIGP) attribute is assigned by the
Internet Assigned Numbers Authority (IANA). The value field of the AIGP attribute is defined as a set of
type, length, value (TLV) elements. The AIGP TLV contains the AIGP metric.
are then advertised using label-switched paths (LSP). The next-hop for the route is changed at each Area
Border Router (ABR) to a local device, which removes the need to leak OSPF routes across area boundaries.
The bandwidth available on each of the core links is mapped to the OSPF cost; therefore, it is imperative that
BGP carries this cost correctly between each of the provider edge (PE) devices. This functionality is achieved
by using the BGP Accumulated IGP feature.
You need to enable accumulated interior gateway protocol (AIGP) processing for internal Border Gateway
Protocol (iBGP) and external Border Gateway Protocol (eBGP) neighbors to carry the AIGP attribute. Neighbors
configured with the AIGP attribute are put in a separate update group from other iBGP neighbors. A separate
update group is required for neighbors that are enabled to send the AIGP value to cost community. BGP needs
to translate the AIGP attribute to the cost community or multi-exit discriminator (MED) and attach it to the
route before advertising to legacy.
When BGP installs AIGP attribute routes into the routing information base (RIB), it adds the AIGP cost with
the next-hop cost. If the next-hop is a nonrecursive IGP route, BGP sets the AIGP metric to the received AIGP
value and the first hop IGP metric to the next-hop. If the next-hop is a recursive route with the AIGP metric,
BGP adds the received AIGP metric to the next-hop AIGP metric.
1. enable
2. configure terminal
3. router bgp as-number
4. address-family ipv4 [unicast | multicast | vrf vrf-name]
5. redistribute protocol autonomous-system-number route-map map-tag
6. network network-id route-map map-tag
7. exit
8. route-map rtmap
9. set aigp-metric [igp-metric | value]
10. end
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router bgp as-number Enters router configuration mode for the specified routing
process.
Example:
Device(config)# router bgp 40000
Step 4 address-family ipv4 [unicast | multicast | vrf vrf-name] Specifies the IPv4 address family and enters address family
configuration mode.
Example:
Device(config-router)# address-family ipv4
unicast
Example:
Device(config-router-af)# redistribute bgp 100
route-map rtmap
Step 6 network network-id route-map map-tag Specifies the networks to be advertised by the Border
Gateway Protocol (BGP) routing process.
Example:
Device(config-router-af)# network 10.1.1.1
route-map rtmap
Example:
Device(config)# route-map rtmap
Step 9 set aigp-metric [igp-metric | value] Specifies a metric value for the accumulated interior
gateway protocol (AIGP) attribute. The manual metric
Example: value range is from 0 to 4294967295.
Step 10 end Exits route map configuration mode and enters privileged
EXEC mode.
Example:
Device(config-route-map)# end
1. enable
2. configure terminal
3. router bgp as-number
4. address-family {ipv4 | ipv6} [unicast]
5. neighbor ip-address aigp
6. end
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router bgp as-number Enters router configuration mode for the specified routing
process.
Example:
Device(config)# router bgp 40000
Step 4 address-family {ipv4 | ipv6} [unicast] Specifies the IPv4 or IPv6 address family and enters
address family configuration mode.
Example:
Device(config-router)# address-family ipv4
unicast
Step 5 neighbor ip-address aigp Enables send and receive of the AIGP attribute per
neighbor.
Example:
Device(config-router-af)# neighbor 192.168.1.1
aigp
1. enable
2. configure terminal
3. router bgp as-number
4. address-family {ipv4 | ipv6} [unicast]
5. neighbor ip-address aigp [send {cost-community community-id poi {igp-cost | pre-bestpath}
[transitive]} | med]
6. end
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router bgp as-number Enters router configuration mode for the specified routing
process.
Example:
Device(config)# router bgp 40000
Step 5 neighbor ip-address aigp [send {cost-community Translates the AIGP attribute to MED and attaches it to
community-id poi {igp-cost | pre-bestpath} [transitive]} the route before advertising to legacy provider edge (PE)
| med] devices.
Example:
Device(config-router-af)# neighbor 192.168.1.1
aigp send med
In the following example, the device belongs to autonomous system 65000 and is configured to send the MED
attribute to its neighbor at IP address 172.16.70.23:
Device# configure terminal
Device(config)# router bgp 65000
Device(config-router)# address-family ipv4 multicast
Device(config-router-af)# neighbor 172.16.70.23 aigp send med
Device(config-router-af)# exit
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/support
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.