cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1187
Views
0
Helpful
3
Replies

ASR 9000 BGP not-in-vrf tag

amunoz
Level 1
Level 1

Hi,  

 

I have this question:

 

Is correct  that a bgp path in a vrf be  considered the  best path   event thought  it has the no-in-vrf tag?  

 

 

thanks

 

Adrian Muñoz

3 Replies 3

can not get your question

Sorry  i have this:

 

BGP choose  the path 3 (output below)  how the best path,  because the Local Preference,  but  since  this path "is not-in-vrf"  the  prefix is not in the route table in vrf.


sh ip route vrf xxx-xxx 10.1.4.0/22

% Network not in table

 

The prefix is not in this vrf because  the vrf import other RT  (that is fine in our design) diferent  that RT in the Path 3,

but since  this have the RD 13999:107  this path is in the bgp vrf database.

 

vrf xxx-xxx
description monitoreo y gestion
address-family ipv4 unicast
import route-target
65056:107

 

sh bgp vrf XXXXX 10.1.4.0/22 detail
Mon Dec 14 02:11:32.120 CST
BGP routing table entry for 10.1.4.0/22, Route Distinguisher: 13999:107
Versions:
Process bRIB/RIB SendTblVer
Speaker 9659783 9659783
Flags: 0x00340001+0x00020000;
Last Modified: Dec 9 17:06:58.812 for 4d09h
Paths: (4 available, best #3)
Not advertised to any peer
Path #1: Received by speaker 0
Flags: 0x4000000008000003, import: 0x00
Not advertised to any peer
65004
x.y.5.243 from x.y.5.243 (x.y.5.254)
Origin IGP, localpref 90, valid, external
Received Path ID 0, Local Path ID 0, version 0
Extended community: RT:13999:107

Path #3: Received by speaker 0
Flags: 0x4000000025060005, import: 0x3f
Not advertised to any peer
65004
xxx.yyy.41.230 (metric 101) from xxx.yyy..41.5 (xxx.yyy.41.230)
Received Label 25139
Origin IGP, localpref 100, valid, internal, best, group-best, import-candidate, not-in-vrf
Received Path ID 0, Local Path ID 1, version 9659783
Extended community: RT:13999:107

 

Then my question is? is this the correct behavior, i think that since the path is not in the vrf, bgp path selection

it should not shoose the path 3 (do no ever consider it)  and shoose the path 1.

 

thanks

 

 

The BGP best path algorithm will run on the RD:PREFIX. the route-target is an additional attribute.

it will not be used in the best path calculation.

 

it is however used to import/export routes into a vrf table.

so in your situation you have a vrf table but are not importing all the routes within the RD

 

can you explain why you are doing this?


Thanks