Consider two routers A & B. Both of them run eBGP for connecting to ISP and also run OSPF inside the cloud. Both A&B also run iBGP and are connected in an internal iBGP mesh.
How suppose prefix P1 is received at both A & B (eBGP). They run the bgp process as:
router bgp 747
neighbor xxxx route-map ISP-ROUTES-IN
route-map ISP-ROUTES-IN permit 100
match ip address prefix-list ACCEPT-ROUTES-FROM-ISP
ip prefix-list ACCEPT-ROUTES-FROM-ISP seq 10 permit xx.xx.xx.xx/29
In both A&B, inside the OSPF process there is a redistribute statement like:
router ospf 1234
redistribute bgp 747 metric-type 1 subnets tag 747
Because of the ospf process 1234, both routers A & B redistribute P1 inside their network as Type5 E1.
However, I would like to make A as the exit point for prefix P1 and B as the backup exit router.
How do I set the metric for redistribution?