Cisco Cisco Packet Data Gateway (PDG) Prospecto
BGP Configuration Mode Commands
distance ▀
Cisco ASR 5x00 Command Line Interface Reference ▄
1555
distance
Defines the administrative distance for routes. The administrative distance is the default priority for a specific route or
type route.
type route.
Product
All
Privilege
Security Administrator, Administrator
Mode
Exec > Global Configuration > Context Configuration > BGP Configuration
configure > context context_name > router bgp as_number
Entering the above command sequence results in the following prompt:
[context_name]host_name(config-bgp)#
Syntax
distance { admin distance prefix prefix_addr [ route-access-list list_name ] | bgp
external ebgp_dist internal ibgp_dist local local_dist }
external ebgp_dist internal ibgp_dist local local_dist }
no distance { admin distance prefix prefix_addr [ route-access-list list_name ] | bgp [
external ebgp_dist internal ibgp_dist local local_dist ] }
external ebgp_dist internal ibgp_dist local local_dist ] }
no
Removes the specified administrative distance for the specific route.
distance admin
distance
prefix
prefix_addr
[ route-access-list
list_name
]
Sets the administrative distance to a specified value for routes with a specific IP prefix. If you also specify a
route access list, the IP prefix must match the rules of that access list.
route access list, the IP prefix must match the rules of that access list.
admin
distance
: Specifies the administrative distance that you want to apply to the IP prefix.
distance
must be an integer from 1 through 254.
prefix
prefix_addr
: Specifies the IP prefix of routes that should have the admin distance applied.
prefix_addr
must be an IPv4 address in dotted-decimal notation and the number of subnet bits,
representing the subnet mask in CIDR shorthand (for example, 10.1.1.1/24).
route-access-list
list_name
: Defines the name of a route access list that defines for which routes the
administrative distance should be set.
distance bgp external
ebgp_dist
internal
ibgp_dist
local
local_dist
Sets the administrative distance for external (eBGP), internal (iBGP) and local routes.
external
ebgp_dist
: Sets the administrative distance for eBGP routes.
ebgp_dist
must be an integer
from 1 through 254.
internal
ibgp_dist
: Sets the administrative distance for iBGP routes.
ibgp_dist
must be an integer
from 1 through 254.
local
local_dist
: Sets the administrative distance for local routes.
local_dist
must be an integer from
1 through 254.