Use this command to configure a filter that restricts the advertisement of routes based on destination prefix. Only one instance of this command may be defined for each route source (RIP, OSPF, static, connected). One instance of this command may also be configured as a global filter for outbound prefixes.
If the command refers to a prefix list that does not exist, the command is accepted and all routes are permitted.
When a distribute list is added, changed, or deleted for route redistribution, BGP automatically reconsiders all best routes.
Default | No distribute lists are defined by default. |
Format | distribute-list prefix list-name out [ protocol | connected | static ] |
Mode |
|
Parameter | Description |
---|---|
prefix list-name | A prefix list used to filter routes advertised to neighbors. |
protocol|connected|static | (Optional) When a route source is specified, the distribute list applies to routes redistributed from that source. Only routes that pass the distribute list are redistributed. The protocol value may be either rip or ospf. |