SROS Command Line Interface Reference Guide

BGP Configuration Command Set

 

 

distance bgp <external> <internal> <local>

Use the distance bgp command to set the administrative distance 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 distance for BGP routes learned via iBGP sessions. A

 

value of 255 means the route is not installed. Range: 1 to 254.

<local>

Sets the administrative distance for BGP routes learned 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. Normally, these default settings should not be changed.

Command Modes

(config-bgp)#

BGP Configuration Mode

Functional Notes

This command sets the administrative distance for BGP routes. The administrative 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 administrative distance of 30, internal BGP routes an administrative distance of 200, and local routes an administrative distance of 240:

(config-bgp)#distance bgp 30 200 240

5991-2114

© Copyright 2005 Hewlett-Packard Development Company, L.P.

709

Page 709
Image 709
HP 7000 dl Router manual Distance bgp external internal local, Config-bgp#distance bgp 30 200