protocols ospf distribute-list <list-number>
Specifies an access list to filter networks in routing updates.
- process pid
- Specifies the PID of an IPv4 OSPF process.
- list-number
- The number of an access list to filter networks in routing updates. The number is a number from one of the following ranges of numbers:
1-99: IP standard access list.
100-199: IP extended access list.
1300-1999: IP standard access list (expanded range).
2000-2699: IP extended access list (expanded range).
- export type
- Specifies the type of export routes to filter. The type is one of the following: bgp, connected, kernel, rip, or static. Multiple types can be specified by creating additional export configuration nodes.
- import
- The filter for incoming routing updates.
Configuration mode
protocols {
ospf {
process pid {
distribute-list list-number {
export type
import
}
}
}
}
Use this command to specify an access list to filter networks in routing updates.
The inverse mask of the source field is applied to the prefix prior to the comparison with the source. The inverse mask for the destination field is applied to the net mask of the prefix prior to the comparison with the net-mask as specified in the destination field.
Effectively, the prefix must match the source with the application of inverse mask of the source field. And the net mask for the prefix must match the destination with the application of the inverse mask of the destination field.
Use the set form of this command to specify an access list to filter networks in routing updates.
Use the delete form of this command to remove an access list from filtering networks in routing updates.
Use the show form of this command to display the configuration.