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:
Intraarea=8
Interarea=10
Type1=13
Type2=50
Mode
RouterOSPFv3configuration:C3(su)->router(Config-router)#
Usage
Lowerroutepreferencevaluesarepreferredwhendeterminingthebestroute.TheOSPFv3
specification(RFC2328)requiresthatpreferencesmustbegiventotherouteslearnedviaOSPFv3
inthefollowingorder:intraarea<interarea<Type1<Type2.
Aroutewithapreferenceof255cannot
beusedtoforwardtraffic.
Usethenoformofthiscommandtoresetthepreferencevaluesbacktothedefaults.
Example
Thefollowingexamplesettheintraareapreferenceto5.
C3(su)->router(Config-router)# distance ospf intra 5
intra Specifiesthepreferenceforintraarearoutes(allrouteswithinanarea)
inter Specifiesthepreferenceforinterarearoutes(allroutesbetweenareas)
type1 SpecifiesthepreferenceforType1externalroutes(routeslearnedby
redistributionfromotherroutingdomains)
type2 SpecifiesthepreferenceforType2external routes(routeslearnedby
redistribution
fromotherroutingdomains)
preference Thepreferencerangeisfrom1to255.