Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Distribute list out command in OSPF






This document provides a sample configuration on how and when to use distribute-list out command. This command only works on the routes being redistributed by Autonomous system boundary Router into OSPF. It can be applied to external type 2 and type 1 routes, but not to intra-area and interarea routes..




It is assumed that a person reading this document is familiar with Ospf.


Components used


For this document 3700 Series router with IOS 12.4(18) loaded in it.


Network Diagram


Area filter- ospf.jpg



The configuration files are attached with this document.


For this example, loopback interfaces connected to Router R1 will be redistributed in the ospf domain and R1 will serve as ASBR (see configuration attached for reference) .


We will filter network from Area 1 for this example.


Before we move forward, lets take a look at the routing table of R3:




And, we can surely see network


Now for filtering network from area 1 we need to perform two tasks


  • We first need to configure an access-list to filter this particular network out.
  • Second, we need to apply that filter


This will be done at router R1, which is the ASBR for this OSPF network.


For step 1, we will create an access-list which will deny net and permit all others:




For step 2, we will apply this filter:






Lets see the routing table of Router R3:




We surely don't see network on R3. And, to prove that R2 is not sending type 5 LSA for this network in area 1, lets see the database for network on R2:




Related Information

Version history
Revision #:
2 of 2
Last update:
4 weeks ago
Updated by:
Labels (1)
New Member

Instead of using the distribute-list to filter, why not just do the work in the ACL of route-map OUTSIDE? What benefit does the distribute-list out bring to redistribution into OSPF that you cannot already do with the redistribution route map?