Hello, I am having problems in the implementation of MPLS-VPNv4. I am receiving prefixes from a route reflector that contain BGP communities information. These prefixes appear as learned by BGP. However, the same prefixes found within the VRF_INET routing table appear to be of type “copy” and do not contain the BGP attributes.
Understood mrz. Will BGP attributes be available within the VRFs at some point in the future? Or is there any other way to use BGP attributes inside a VRF? We currently use BGP attributes to filter eBGP advertised prefixes within VRFs in ROSv6.
RouterOS version 7.9beta version brings with it the following change:
*) bgp - improved BGP VPN selection;
Now prefixes learned within the VRF no longer appear as “copy” type. However, the origin of the prefixes (within the VRF) is eBGP, therefore the distance is 20.
In addition, BGP attributes, such as communities, are still not transmitted within the VRF.
I do not understand how distance is related to attributes being transferred or not, these are completely unrelated things. Also, BGP attributes are forwarded in both cases whether it is iBGP or eBGP.
To run BGP best path between BGP routes received within VRF and imported vpnv4 routes, you have to set up the proper router id on the BGP VPN configuration. ID must be equal to the ID of the peer in the VRF. Only then routes will be considered to be from the same BGP instance and the best path algorithm will be executed.
You probably misinterpreted what I wrote. I was referring to problems in distance and BGP attributes as separate topics.
In ROSv6, prefixes learned via VPNv4 are received with distance 200 (iBGP) within the VRF, but in ROSv7.9beta4 the distance for these prefixes is 20 (eBGP).
On the other hand, the BGP attributes (eg communities), present in the routing table for the vpn4 afi, are not present for the ip4 afi within the VRF.
ROS version 7.9rc1 resolved the issue with BGP attributes within a VRF.
On the other hand, the administrative distance continues to be 20 (eBGP) despite the fact that in this version 7.9rc1 the origin attribute was corrected and the prefixes appear as coming from iBGP.
origin attribute has nothing to do with whether the route comes from iBGP or eBGP.
IGP means that the route is imported into BGP via BGP networks
EGP historic from EGP protocol
incomplete - imported via other IGP protocols like OSPF or static routes.
Currently logic is that since there is no actual BGP connection between VRFs of remote PEs these routes are considered external, because imported from the external source aka from VPNv4. But we can change to 200 it does not make much difference anyway.
Understood. This criteria differs from the one used in ROS v6.48.6 and also from other vendors (where the administrative distance value 200 is used for prefixes learned via iBGP within the VRF).
Can You please clarify “you have to set up the proper router id on the BGP VPN configuration” with example? What command sets the router id in BGP VPN configuration?