Connectivity Guide

Parameters route-map route-map-name—(Optional) Enter a route-map name. A maximum of 140 characters.
Default Enabled
Command Mode
ROUTER-BGP-NEIGHBOR-AF
ROUTER-TEMPLATE-AF
Usage Information The no version of this command removes the default route.
Example
OS10(conf-router-bgp-10)# template lunar
OS10(conf-router-bgp-template)# address-family ipv6 unicast
OS10(conf-router-template-af)# default-originate route-map rmap-bgp
Supported Releases 10.4.1.0 or later
distance bgp
Sets the administrative distance for BGP routes.
Syntax
distance bgp external-distance internal-distance local-distance
Parameters
external-distance—Enter a number to assign to routes learned from a neighbor external to the AS, from
1 to 255.
internal-distance—Enter a number to assign to routes learned from a router within the AS, from 1 to
255.
local-distance—Enter a number to assign to routes learned from networks listed in the network
command, from 1 to 255.
Defaults
external-distance20
internal-distance200
local-distance200
Command Modes
CONFIG-ROUTER-BGP-ADDRESS-FAMILY
CONFIG-ROUTER-BGP-VRF-ADDRESS-FAMILY
Usage Information This command is used to congure administrative distance for eBGP route, iBGP route, and local BGP route.
Administrative distance indicates the reliability of the route; the lower the administrative distance, the more reliable
the route is. Routes that are assigned an administrative distance of 255 are not installed in the routing table.
Routes from confederations are treated as iBGP routes.
Examples
Default VRF:
IPv4
OS10# configure terminal
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# address-family ipv4 unicast
OS10(configure-router-bgpv4-af)# distance bgp 10 200 210
IPv6
OS10# configure terminal
OS10(config)# router bgp 100
Layer 3 471