distance bgp

Syntax

distance bgp <EXTERNAL> <INTERNAL>

no distance bgp <EXTERNAL> <INTERNAL>

Description

Configures the administrative distance for BGP.

The no form of this command restores the default settings, 20 for eBGP and 200 for iBGP,

Command context

config-bgp-ipv4-uc

config-bgp-ipv6-uc

Parameters

<EXTERNAL>

Specifies the administrative distance for eBGP routes. Range: 1 to 255. Default: 20.

<INTERNAL>

Specifies the administrative distance for iBGP routes. Range: 1 to 255. Default: 200.

Authority

Administrators or local user group members with execution rights for this command.

Example

switch(config-bgp-ipv4-uc)# distance bgp 100 150
switch(config-bgp-ipv4-uc)# no distance bgp 100 150