Administrator Guide

Layer 3 Routing Commands 1271
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.
Default Configuration
No distribute lists are defined by default.
Command Mode
BGP Router Configuration mode
IPv6 Address Family Configuration mode
User Guidelines
The distribute list is applied to all routes received from all neighbors. Only
routes permitted by the prefix list are accepted. If the command refers to a
prefix list that does not exist, the command is accepted and all routes are
permitted.
Command History
Introduced in version 6.2.0.1 firmware.
Example
console(config-router)#distribute-list prefix 255 in
distribute-list prefix out (BGP Router
Configuration)
Use this command to configure a filter that restricts the advertisement of
routes based on destination prefix.