Skip to main content
Viptela is now part of Cisco.
Support
Product Documentation
Viptela Documentation

best-path

vpn router bgp best-path—Configure how the active BGP path is selected (on vEdge routers only).

vManage Feature Template

For vEdge routers only:

Configuration ► Templates ► BGP

Command Hierarchy

vpn id
  router
    bgp local-as-number
      best-path
        as-path multipath-relax
        compare-router-id
        med (always-compare | deterministic | missing-as-worst)

Options

Select Routes with BGP Multipath
as-path multipath-relax
By default, when you are using BGP multipath, the BGP best path process selects from routes in the same AS to load-balance across multiple paths. If you configure the as-path multipath-relax option, the BGP best path process selects from routes in different ASs.
Use the MED to Select the Active BGP Path
med (always-compare | deterministic | missing-as-worst)
Compare the specified multi-exit discriminator (MED) parameter to determine the active path. The MED parameter can be one of:
always-compare: Always compare MEDs regardless of whether the peer ASs of the compared routes are the same.
deterministic: Compare MEDs from all routes received from the same AS regardless of when the route was received.
missing-as-worst: If a path is missing a MED attribute, consider it to be the worst path.
Use the Router ID to Select the Active BGP Path
compare-router-id
Compare the router IDs among BGP paths to determine the active path.

Operational Commands

show bgp routes

Example

Compare the router IDs among different BGP paths to determine which path will be the active one:

vEdge(config-best-path)# show config
vpn 1
 router
bgp 666
   best-path
    compare-router-id
   !
  !
 !
!

Release Information

Command introduced in Viptela Software Release 14.1.​

Additional Information

See the Routing CLI Reference article for your software release.

  • Was this article helpful?