CLI Guide

Layer 3 Routing Commands 1281
Default Configuration
external-distance—20
internal-distance—200
local-distance—200
Command Mode
IPv6 Address Family Configuration mode
User Guidelines
Different distance values can be configured for routes learned from external
peers, routes learned from internal peers, and BGP routes locally originated. A
route with a lower preference value is preferred to a route with a higher
preference value to the same destination. Routes with a preference of 255
may not be selected as best routes and used for forwarding.
The change to the default BGP distances does not affect existing routes. To
apply a distance change to existing routes, you must force the routes to be
deleted from the RIB and relearned, either by resetting the peers from which
the routes are learned or by disabling and re-enabling BGP.
Command History
Introduced in version 6.2.0.1 firmware.
Example
console(config-router-af)#distance bgp 20 200 200
distribute-list prefix in
Use this command to configure a filter that restricts the routes that BGP
accepts from all neighbors based on destination prefix.
Syntax
distribute-list prefix list-name in
no distribute-list prefix list-name in
list-name—A prefix list used to filter routes received from all peers based
on destination prefix.