Enable or Disable Prefix Validation for Best Path Calculations

You must be within one of the following modes.

  • BGP address-family IPv4 unicast configuration mode

  • BGP address-family IPv6 unicast configuration mode

  • BGP address-family IPv4 unicast VRF configuration mode

  • BGP address-family IPv6 unicast VRF configuration mode

  1. Navigate to the router bgp context.
    SLX(config)# router bgp
    SLX(config-bgp-router)#
                        
  2. Navigate to the address-family context. Choose the correct address family that you want to configure this setting for.
    SLX(config-bgp-router)#
    SLX(config-bgp-router)# address-family ipv4 unicast
    SLX(config-bgp-router)# bestpath prefix-validation disable
                        
  3. Disable prefix validation. The no format of this command enables prefix validation. Validation of prefixes is the default configuration.
    SLX(config-bgp-router)# bestpath prefix-validation disable
    SLX(config-bgp-router)#
                        

    Prefix validation is disabled for IPv4 addresses when calculating best path.

The following example summarizes the commands in this procedure. This command disable prefix validation when calculating best path.

SLX# configure terminal
SLX(config)# router bgp 
SLX(config-bgp-router)# address-family ipv4 unicast 
SLX(config-bgp-ipv4u)# bestpath prefix-validation disable
SLX(config-bgp-ipv4u)#