Specifications
distance ospf
20-6 OSPFv3 Configuration
distance ospf
ThiscommandsetstheroutepreferencevalueofOSPFv3.
Syntax
distance ospf {intra | inter | type1 | type2} preference
no distance ospf {intra | inter | type1 | type2}
Parameters
Defaults
Thedefaultpreferencevaluesare:
Intra‐area=8
Inter‐area=10
Type1=13
Type2=50
Mode
RouterOSPFv3configuration:C3(su)->router(Config-router)#
Usage
Lowerroutepreferencevaluesarepreferredwhendeterminingthebestroute.TheOSPFv3
specification(RFC2328)requiresthatpreferencesmustbegiventotherouteslearnedviaOSPFv3
inthefollowingorder:intra‐area<inter‐area<Type1<Type2.
Aroutewithapreferenceof255cannot
beusedtoforwardtraffic.
Usethenoformofthiscommandtoresetthepreferencevaluesbacktothedefaults.
Example
Thefollowingexamplesettheintra‐areapreferenceto5.
C3(su)->router(Config-router)# distance ospf intra 5
intra Specifiesthepreferenceforintra‐arearoutes(allrouteswithinanarea)
inter Specifiesthepreferenceforinter‐arearoutes(allroutesbetweenareas)
type1 SpecifiesthepreferenceforType1externalroutes(routeslearnedby
redistributionfromotherroutingdomains)
type2 SpecifiesthepreferenceforType2external routes(routeslearnedby
redistribution
fromotherroutingdomains)
preference Thepreferencerangeisfrom1to255.