distance bgp

Syntax

distance bgp <EXTERNAL> <INTERNAL>

no distance bgp <EXTERNAL> <INTERNAL>

Description

This command configures the administrative distance for BGP.

The no form of this command restores the defaults of external=20, internal=200.

Command context

config-bgp-ipv4-uc

or

config-bgp-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-bgp-ipv4-uc)# distance bgp 100 150
switch(config-bgp-ipv4-uc)# no distance bgp 100 150