PREV NEXT INDEX

Avici Systems Inc.


distance bgp


Defines the administrative distances for external, internal and local routes.

Syntax: distance bgp {external | internal | local}

no distance bgp {external | internal | local}

external

Administrative distance for BGP external routes. External routes are the best path learned from a neighbor that is external to the autonomous system. Valid values are 1 to 255. Default is 20.

internal

Administrative distance for BGP internal routes. Internal routes are the best path learned from another BGP speaker within the same autonomous system. Valid values are 1 to 255. Default is 200.

local

Administrative distance for BGP local routes. Local routes are networks configured with the network command. Valid values are 1 to 255. Default is 200.

Description: Administrative distance is a dependability rating for the source of routing information. Higher distance values imply lower trust ratings. BGP uses three different administrative distances: internal, external, and local. Routes learned through internal BGP are given the internal distance, routes learned through external BGP are given the external distance, and routes that are part of this autonomous system are given the local distance.

Use the distance bgp command to enable BGP to select a better route to a node than was learned through the usual external BGP route updates. Use this command if you want to configure BGP to prefer some internal routes.

A value of 255 indicates the routing information is not trusted and the information is not installed in the routing table.

Use the no distance bgp command to return to the default values.

WARNING Changing the administrative distance of BGP internal routes can cause an accumulation of routing inconsistencies. This can result in broken routing and is not recommended.

Factory Default: Default for external distance is 20. Default for internal distance is 200. Default for local distance is 200.

Command Mode: Router configuration.

Example 1: In the following example, the internal route is known as preferable to the route learned from the usual BGP routing updates.

router(config)#router bgp 120

router(config-router)#network 100.200.0.0

router(config-router)#neighbor 98.156.1.5 remote-as 55

router(config-router)#distance bgp 20 100 200

router(config-router)#end

router#show running-config bgp

!

router bgp 120

distance bgp 20 100 200

.

.

.

Example 2: The following example, the no distance bgp command resets the distance values to the defaults:

router(config)#router bgp 120

router(config-router)#network 100.200.0.0

router(config-router)#neighbor 98.156.1.5 remote-as 55

router(config-router)#no distance bgp 20 100 200

Related Commands: show running-config bgp


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: BGP_Nd.fm
    HTML File Name: BGP_Nd20.html
    Last Updated: 05/10/04 at 16:36:55

Please email suggestions and comments to: doc@avici.com