07-06-2012 03:12 AM - edited 03-07-2019 07:37 AM
Hello,
we have a BGP Router with the full Internt Routing Table, which is connected to an internal BGP Route-Reflector and an Internet Exchange.
In the follwing output i'm wondering why the Router has elected the path via AS 20676, although it`s an internal learned Route and there's another external path:
#show ip bgp 195.160.248.0/22
BGP routing table entry for 195.160.248.0/22, version 369303261
Paths: (5 available, best #4, table default)
Not advertised to any peer
8881 34161
80.81.203.35 (metric 20) from XX.XX.XX.67 (XX.XX.XX.67)
Origin IGP, metric 90, localpref 90, valid, internal
Community: 0:174 0:1299 0:3356 0:15169 XXXX:1102 XXXX:1820 XXXX:1999 43252:43252
Originator: XX.XX.XX.82, Cluster list: 0.0.0.20
8881 34161
80.81.192.80 from 80.81.193.157 (80.81.193.157)
Origin IGP, metric 101, localpref 90, valid, external
Community: 0:174 0:1299 0:3356 0:6762 0:8391 0:8442 0:9189 0:12329 0:12355 0:12654 0:15169 0:16276 0:20633 0:21263 0:41039 6695:6695 XXXX:1105 XXXX:1810 XXXX:1999
8881 34161
80.81.192.80 from 80.81.192.157 (80.81.192.157)
Origin IGP, metric 101, localpref 90, valid, external
Community: 0:174 0:1299 0:3356 0:6762 0:8391 0:8442 0:9189 0:12329 0:12355 0:12654 0:15169 0:16276 0:20633 0:21263 0:41039 6695:6695 XXXX:1105 XXXX:1810 XXXX:1999
20676 34161
XX.XX.XX.76 (metric 2) from XX.XX.XX.66 (XX.XX.XX.66)
Origin IGP, metric 0, localpref 90, valid, internal, best
Community: XXXX:1100 XXXX:1810 XXXX:1999
Originator: XX.XX.XX.76, Cluster list: 0.0.0.20
1299 20676 20676 20676 34161
213.248.73.137 from 213.248.73.137 (80.239.146.37)
Origin IGP, localpref 80, valid, external
Community: XXXX:1000 XXXX:1810 XXXX:1999
According to http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml,
rules 1-5 cannot be used for an best path selection, because all attributes are equal.
Rule 6 should not be relevant, because the MED are only be compared if the first AS in the path is the same. but in this case the chosen Path over AS20676 has another first AS comparing to the Path over AS8881.
Rule 7 should be the tie-breaker in this case, because the path over AS20676 is an internal route (learned via iBGP from a Route-Reflector).
The result should be, that the external learned path over AS8881 should be chosen and prefered over internal routes!!!
The Router is an 7600/SUP720 with IOS 1.2(33)SRE
07-07-2012 11:27 AM
Thank you very much Giuseppe!
have a great weekend.
Regards,
Soroush.
07-08-2012 01:19 PM
I don't think that
refer the path with the lowest multi-exit discriminator (MED).
Note: Be aware of these items:
and KFR didn't enabled bgp always-compare-med to make MED are prefared!
Also he wants to go to this Network 195.160.248.0/22 and not Downstream! also kfr changed the Local Pref. to go out no come in!! So External metric will not share!! Also this sentence"Not advertised to any peer" should not appear even in Route reflector router! and I haven't seen this sentence in any scenario even in roue reflector client!
I imitate this scenario and I got the external router prefered the best path.
07-08-2012 01:30 PM
This Link will help you kfr to troubleshoot "Not advertised to any peer"!
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800945ff.shtml
10-31-2012 01:48 AM
Hello,
I think I have an explanation here
P1 Vs P2 - P1 because of low MED ( since next AS is same for both)
P1 VS P3 - P1 because of low MED ( since next AS is same for both)
P1 VS P4 - P1 because of lower metric to next hop
P1 Vs P5 - P1 because P1 is shortest AS PATH
Kindly correct me if Iam wrong.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide