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

OSPFv3 : Setting Administrative Distance


Going for an IPV6 lab where multiple points of redistributions between RIPng and OSPFv3 exist, I was looking for a command to manipulate administrative distance in order to prevent sub-optimal routing, as I usually do IPv4.

In IPV4 we have this command :

router ospf 1

distance administrative_distance address wildcard-mask} [access-list-number | name]

This permit to put a higher administrative distance for certain routes.

In OSPFv3 or RIPng I can only set the default administrative distance for the whole routing process but not for certaint routes.

As route-map cannot be used for administrative distance. How, in IPv6 can I change administrative distance for certains routes ?

Thanks for your answer


Hall of Fame Super Silver

Re: OSPFv3 : Setting Administrative Distance

Hello Morgan,

see if this other version of distance command is supported:

distance [ospf {external | inter-area | intra-area}] distance

with this you change the distance for each OSPF route type.

this can be a workaround.

an alternate way is to filter on the redistribution using a route-map to block the non -optimal route

Hope to help


New Member

Re: OSPFv3 : Setting Administrative Distance

Hello Giuseppe,

Thanks for your quick reply.

Yes this other distance syntax is available, and this is the workaround I used.

So it's seems that in IPv6 there is no way to set distance for individual routes ????

Filtering at redistribution is not an option in order to keep redundancy.