Command Reference Guide BGP Configuration Command Set
61200510L1-35E Copyright © 2005 ADTRAN 1280

distance bgp <external> <internal> <local>

Use the distance bgp command to set the administrative dist ance for BGP routes. Use the no form of this
command to return to the default setting.
Syntax Description
<external> Sets the administrative distance for BGP routes learned via eBGP sessions. A
value of 255 means the route is not installed. Range: 1 to 254.
<internal> Sets the administrative dist ance for BGP routes learned via iBGP sessions. A
value of 255 means the route is not installed. Range: 1 to 254.
<local> Sets the admi nistrative distance for BGP routes learne d via the network command
and redistribution. A value of 255 means the route is not installed.
Range: 1 to 254.
Default Values
By default external is set to 20, internal to 200, and local to 200. Norma lly, these default settings sh ould not
be changed.
Applicable Platforms
This command applies to the NetVanta 300, 1000R, 2000, 3000, 4000, and 5000 and Total Access 900
Series units.
Command History
Release 8.1 Command was introduced.
Functional Notes
This command sets the administrative distance for BGP routes . Th e ad m inist ra tive distance is a local
variable that allows a router to choose the best route when there are multiple paths to the same network.
Routes with smaller administrative distances are favored.
Usage Examples
The following example gives external BGP routes an a dministr ative dist ance of 30, inte rnal BGP routes an
administrative distance of 200, and local routes an administrative distan ce of 240:
(config)#router bgp 1
(config-bgp)#distance bgp 30 200 240