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 defaults of external=20, internal=200.

Command context

config-router-ipv4-uc

or

config-router-ipv6-uc

Parameters

<EXTERNAL>

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

<INTERNAL>

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

Authority

Administrators

Examples

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