The AIGP metric is an optional, non-transitive attribute that can be attached to selected routes using route policies. In networks that use AIGP, BGP paths with a lower end-to-end IGP cost are preferred, even if the compared paths span more than one AS or IGP instance.
AIGP is supported only in the base router BGP instance and only for label-IPv4 and 6PE routes. The AIGP attribute is only sent to peers configured using the configure>router>bgp>group>aigp and configure>router>bgp>group>neighbor>aigp commands.
The following is a sample BGP policy configuration output with AIGP attribute information included.
*A:Dut-C>config>router>policy-options# info
----------------------------------------------
policy-statement "AIGP_ADD"
description "Policy From bgp To bgp"
entry 10
description "Entry 10 - From Prot. bgp To bgp"
from
protocol bgp
exit
to
protocol bgp
exit
action accept
aigp-metric add 555
exit
exit
exit
policy-statement "AIGP_EXPORT_PLCY"
description "Policy From bgp To bgp"
entry 10
description "Entry 10 - From Prot. bgp To bgp"
from
protocol bgp
exit
to
protocol bgp
exit
action accept
next-hop 10.20.1.3
exit
exit
exit
----------------------------------------------
The following is a sample BGP instance configuration output with AIGP attribute information included.
*A:Dut-C>config>router>bgp# info
----------------------------------------------
min-route-advertisement 1
router-id 10.20.1.3
group "PEER_TO_A"
neighbor 10.10.1.1
local-address 10.10.1.3
peer-as 200
advertise-label ipv4
exit
exit
group "PEER_RR_TO_D_E_B"
cluster 10.20.1.3
aigp
neighbor 10.20.1.2
local-address 10.20.1.3
med-out 100
import "AIGP_ADD"
peer-as 300
advertise-label ipv4
exit
neighbor 10.20.1.4
local-address 10.20.1.3
med-out 100
peer-as 300
advertise-label ipv4
exit
neighbor 10.20.1.5
local-address 10.20.1.3
export "AIGP_EXPORT_PLCY"
peer-as 300
advertise-label ipv4
exit
exit
no shutdown
----------------------------------------------