Users Guide

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-distanceEnter a number to assign to routes learned from a neighbor external to the
AS, from 1 to 255.
internal-distanceEnter a number to assign to routes learned from a router within the AS,
from 1 to 255.
local-distanceEnter 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 configure 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
OS10(config-router-bgp-100)# address-family ipv6 unicast
OS10(configure-router-bgpv6-af)# distance bgp 10 200 210
Non-default VRF
OS10(config-router-bgp-100)# vrf blue
OS10(config-router-bgp-100-vrf)# address-family ipv4 unicast
OS10(configure-router-bgpv4-vrf-af)# distance bgp 21 200 200
OS10(config-router-bgp-100-vrf)# address-family ipv6 unicast
OS10(configure-router-bgpv6-vrf-af)# distance bgp 21 201 250
Supported
Releases
10.4.2.0 or later
848 Layer 3