API Guide
Parameters number — Enter a number as the metric to assign to routes from other protocols, from 1 to
4294967295.
Default Disabled
Command Mode ROUTER-BGP
Usage
Information
Assigns a metric for locally-originated routes such as redistributed routes. After you redistribute routes in
BGP, use this command to reset the metric value — the new metric does not immediately take effect.
The new metric takes effect only after you disable and re-enable route redistribution for a specified
protocol. To re-enable route distribution use the redistribute {connected [route-map map-
name] | ospf process-id | static [route-map map-name]} command, or use the clear
ip bgp * command after you reset BGP. The no version of this command removes the default metric
value.
Example (IPv4)
OS10(conf-router-bgpv4-af)# default-metric 60
Example (IPv6)
OS10(conf-router-bgpv6-af)# default-metric 60
Supported
Releases
10.3.0E or later
default-originate
Configures the default route to a BGP peer or neighbor.
Syntax
default—originate [route-map route-map-name]
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-distance—20
● internal-distance—200
● local-distance—200
Layer 3 627