
C613-50186-01 Rev B
Command Reference for AR2050V
1172
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
BGP
AND
BGP4+ C
OMMANDS
DISTANCE
(BGP
AND
BGP4+)
distance (BGP and BGP4+)
Overview
This command sets the administrative distance for BGP and BGP4+ routes. The
device uses this value to select between two or more routes to the same
destination from two different routing protocols. Set the administrative distance
for BGP routes in the Router Configuration mode, and for BGP4+ routes in IPv6
Address Family Configuration mode.
The route with the smallest administrative distance value is added to the
Forwarding Information Base (FIB). For more information, see the
Feature Overview and Configuration Guide
, which is available from the above link
at alliedtelesis.com.
The
no
variant of this command sets the administrative distance for the route to
the default for the route type.
Syntax
distance
<1-255>
<ip-address/m>
distance bgp
<ebgp> <ibgp> <local
>
no distance <
1-255
>
<ip-address/m>
no distance bgp
<ebgp> <ibgp> <local
>
Mode [BGP]
Router Configuration
Mode [BGP4+]
IPv6 Address Family Configuration
Usage
You can use this command to set the administrative distance:
Parameter
Description
<1-255>
The administrative distance value you are setting for the route.
<ip-address/m>
The IP source prefix that you are changing the administrative
distance for, entered in the form
A.B.C.D/M
. This is an IPv4
address in dotted decimal notation followed by a forward slash,
and then the prefix length.
<ebgp>
Specifies the administrative distance of external BGP (eBGP)
routes. These are routes learned from a neighbor out of the AS.
Specify the distance as a number between 1 and 255.
Default:
20
<ibgp>
Specifies the administrative distance of internal BGP (iBGP)
routes. These are routes learned from a neighbor within the
same AS. Specify the distance as a number between 1 and 255.
Default:
200
<local>
Specifies the administrative distance of local BGP routes. These
are routes redistributed from another protocol within your
device. Specify the distance as a number between 1 and 255.
Default:
200