This article discusses the limitations of configuring RIB-sharding in conjunction with VRF in a cRPD environment.
The customer wants to enable RIB-sharding in a scaled cRPD environment, where VRF is also configured. However, they encountered an error when attempting to configure RIB-sharding with VRF in place. The error message they received is as follows:
[edit system processes routing bgp]
'rib-sharding'
Can't be configured together with vrfs on cRPD
error: commit failed: (statements constraint check failed)
We have tested this in the lab and observed similar behavior: configuration is successful without VRF, but it fails with VRF.
According to the documentation, BGP RIB-sharding on cRPD is supported for inet.0, inet6.0, bgp.l3vpn.0, bgp.l3vpn-inet6.0, bgp.rtarget, inet-vpn, inet6-vpn unicast, and route-target tables. You can review the details here: Juniper Documentation on RIB-Sharding Support.
inet.0
inet6.0
bgp.l3vpn.0
bgp.l3vpn-inet6.0
bgp.rtarget
inet-vpn
inet6-vpn
RIB-sharding with VRF is not currently supported in cRPD.
Without VRF -
root@cRR1# set rib-sharding
root@cRR1# commit check
Must be configured together with update-threading
error: configuration check-out failed: (statements constraint check failed)
root@cRR1# set update-threading
configuration check succeeds
With VRF -
root@cRR1# top
[edit]
root@cRR1# set routing-instances TEST instance-type vrf
set routing-instances TEST route-distinguisher 1:1
root@cRR1# set routing-instances TEST route-distinguisher 1:1
root@cRR1# set routing-instances TEST vrf-target target:1:1
'update-threading'
root@cRR1#