cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
566
Views
5
Helpful
1
Replies

Override IGP metric on BGP Route selection?

Lost & Found
Level 2
Level 2

Hi,

I have BGP VPNV4 peer router ,1st is Edge RTR and 2nd Route Reflector.

QQQQ.PNG

We are using IGP underneath. Now, Im received routes from Route reflector then install to Edge RTRs VRF but when I look at the bgp table, Router metric is changed to IGP metric. BGP inherited the IGP metric.

EGDE RTR#sh bgp vpnv4 unicast vrf test 10.22.23.0/24

Paths: (2 available, best #1, table test)

Not advertised to any peer

(65 64 651) 655 650 354 1, imported path from xxxx:10.122.203.0/24

13.21.22.7 (metric 65) from 3.3.3.11 (3.3.3.11) <<<--------

Origin IGP, metric 0, localpref 100, valid, confed-internal, best

Extended Community: xxxxxx

mpls labels in/out nolabel/2408

(65 64 651) 655 1 1 1, imported path from xxxxxxx

13.16.4.11 (metric 70) from 3.3.3.11 (3.3.3.11) <<<-------- I want to prefer this route

Origin IGP, metric 0, localpref 100, valid, confed-internal

Extended Community: xxxxxxx

mpls labels in/out nolabel/10066

What is the best solution to use C2 as nexthop from Edge router??

Thanks

1 Reply 1

Harold Ritter
Cisco Employee
Cisco Employee

The igp metric is evaluated only if all previous steps in the BGP best path selection process are equals.

 

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html

 

You could change the local pref higher on the second path to prefer it over the first one.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking products for a $25 gift card