Question

Unable to set BGP Local Preference on VPNv4 routes

  • 6 October 2020
  • 0 replies
  • 43 views

Userlevel 1

Hi,
We're trying to our MPLS PE device to properly advertise VPNv4 routes with an appropriate local preference within iBGP-VPNv4.
This is so we can influence the preferred path and PE devices the traffic traverses in our L3VPN MPLS network.

We've managed to use the following policy to mark inbound BGP IPv4 routes with a Local Preference
Config XOS Command: (within Customer VR) "configure bgp neighbor [CUSTOMER_PEER] route-policy in VPRN-CUSTOMER-1-I-SITE-PE1"

Policy File: VPRN-CUSTOMER-1-I-SITE-PE1
entry ALLOW_ALL_WITH_LP50 {
        if match all {
                nlri 0.0.0.0/0 ;
        } then {
                local-preference 50;
                permit;
        }
}

Verify XOS Command: (within Customer VR) "show bgp neighbor [CUSTOMER_PEER] received-routes all"
The command above shows LPref as correct, but this does not appear to be inherited once its been exported across to VPN-V4, it reverts back to the default of 100.
 
We also tried used the same policy file above as an vpnv4 export policy, but this also did not change what the other PEs see in the VPN-V4 table.
Config XOS Command: (VR-Default) "enable bgp export vr VPRN-CUSTOMER-1 bgp address-family vpnv4 export-policy VPRN-CUSTOMER-1-I-SITE-PE1"

 

Can anyone help point me in the right direction?
Also, can you re-use the same policy file on multiple peers and routing/export policies?

We run XOS 21.1.5.2 and 22.7.2.4 on our network.


0 replies

Be the first to reply!

Reply