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

distance

vpn router bgp distance—Define the BGP route administrative distance based on route type (on vEdge routers only).

vManage Feature Template

For vEdge routers only:

Configuration ► Templates ► BGP

Command Hierarchy

vpn vpn-id 
  router
    bgp      
      distance
        ​external number
       ​ internal number
        ​local number

Options

Distance for External Routes
external number
Set the administrative distance for routes learned from a neighbor that is external to the autonomous system.
Range: 0 through 255
Default: 20
Distance for Internal Routes
internal number
Set the administrative distance for routes learned from another BGP router within the same autonomous system.
Range: 0 through 255
Default: 200
Distance for Local Routes
local number
Set the administrative distance for local routes. Local routes are networks configured with the bgp address-family network command. By default, a route received locally from BGP is preferred over a route received from OMP.
Range: 0 through 255
Default: 20

Operational Commands

show bgp routes

Example

Have BGP prefer routes learned from OMP:

vEdge# config
Entering configuration mode terminal
vEdge(config)# vpn 1 router bgp 1
vEdge(config-bgp-1)# distance external 10
vEdge(config-bgp-1)# distance local 50
vEdge(config-bgp-1)# show configuration
vpn 1
 router
  bgp 1
   distance external 10
   distance local 50
  !
 !
!

Release Information

Command introduced in Viptela Software Release 14.2.​

Additional Information

See the Routing CLI Reference article for your software release.

  • Was this article helpful?