Command Reference OSPFv2 Commands
Use this command to configure filtering redistribution routes. The function is similar to that of the
redistribute command. Use the no form of this command to restore the default setting.
distribute-list { [ access-list-number | name ] | prefix prefix-list-name } out [ connected | ospf
process-id | rip | static ]
no distribute-list { [ access-list-number | name ] | prefix prefix-list-name } out [ connected | ospf
process-id | rip | static ]
access-list-number | name
Uses the ACL filtering rule.
Uses the prefix-list filtering rule.
connected | ospf
process-id | rip | static
Source of the routes to be filtered
No filtering is configured by default.
Routing process configuration mode
Similar to the redistribute route-map command, the distribute-list out command filters the routes that
other protocols redistribute to the OSPF. However, the distribute-list out command does not
redistribute routes by itself. It works with the redistribute command in most cases. The ACL filtering
rule and the prefix-list filtering rule cannot coexist in the configuration, that is, the two rules cannot be
configured at the same time for routes from the same source.
The following example filters the redistributed static routes.
Ruijie(config)# routerospf1
Ruijie(config)# redistribute static subnets
Ruijie(config-router)# distribute-list 22 outstatic
Ruijie(config-router)# distribute-list prefix jjj out static
% Access-list filter exists, please de-config first
Configures LSA filtering.
Redistributes routes of other routing processes.