C613-50631-01 Rev A Command Reference for IE340 Series 1378
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
BGP AND BGP4+ COMMANDS
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 Route Selection
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> [<listname>]
distance bgp <ebgp> <ibgp> <local>
no distance <1-255> <ip-address/m> [<listname>]
no distance bgp <ebgp> <ibgp> <local>
Mode [BGP] Router Configuration
Mode [BGP4+] IPv6 Address Family Configuration
Usage notes 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.
<listname> The name of the access list to be applied to the administrative
distance to selected routes.
<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