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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ospf distribute-list with route map

I have a site with 3 connections to a remote network, i learn a network via three routes, atm, les circuit and MPLS. Both the ATM and Les circuit are ospf learned routes all in area 0, the MPLS route for the subnet in question is via ebgp then redistributed into ospf as en external type 1 route. The routes i learn from the ATM pvc are via a nortel router which i have no adminstrative control over. I want to ensure one subnet for voice which is is learned from the les circuit first choice and the MPLS route second choice. I have configured a distribute list with a route map so that i have 2 match statements in the route map, which include the network and the next-hop, which i specify as the nortel box. During normal operation the les circuit is first choice, when i fail the les circuit, my local routing table does not have the mpls as second choice the distribute list seems to be removing the subnet, any ideas around multiple match statments in a route map when used for distribute lists, I understood multiple match statements should be a logical and. Any comments would be great. I only require this solution for a short time as the Nortel route will be gone very soon, i just want to make sure my voice will not break if i loose the les circuit.


Re: ospf distribute-list with route map

You can use distance command and assign different AD's for the routes received instead of distribute lists


on the hub

access-list 10 permit

router ospf 100

distance 110 10

distance 120 10

distance 130 10

This would ensure that the other route kicks in when there is a failure in the primary route

HTH, rate if it does


New Member

Re: ospf distribute-list with route map


I have tried your idea in my lab, i can see the concept but still have an issue, i have configured my lab to see the netwrok /16 from three places, two are internal ospf area 0 but differnent metrics and a third from an external type 1 route. I apply the distance command to get rid of one internal ospf route, specifying the router id with the distance command, but i seem to loose all routes that are internal ospf. I only see the external ospf route. I thought by specifying the router id in the distance command it would only apply to the router advertising the route?


ip access-list standard voice


router ospf 1

distance 150 voice

The commands seem to effect all routes no matter where they come from ?

New Member

Re: ospf distribute-list with route map


I think i have managed to get it working,i should ave followed your instructions better. i had to set the ad on all router ids i was learning the route from, also reset the ospf process seemed to kick it into life. I'll test it live in the network tomorrow and let you know what happens.

thanks very much.

CreatePlease login to create content