Specifications

distance ospf
SecureStack C3 Configuration Guide 16-23
distance ospf
UsethiscommandtoconfiguretheadministrativedistanceforOSPFroutes.Thenoformofthis
commandresetsOSPFadministrativedistancetothedefaultvalues.
Syntax
distance ospf {external | inter-area | intra-area}weight
no distance ospf {external | inter-area | intra-area}
Parameters
Defaults
Ifroutetypeisnotspecified,thedistancevaluewillbeappliedtoallOSPFroutes.
Mode
Routerconfiguration:C3(su)>router(Configrouter)#
Usage
Ifseveralroutes(comingfromdifferentprotocols)arepresentedtotheSecureStackC3Route
TableManager(RTM),theprotocolwiththelowestadministrativedistancewillbechosenfor
routeinstallation.Bydefault,OSPFadministrativedistanceissetto110.Thedistanceospf
commandcanbeusedtochangethisvalue,resetting
OSPF’sroutepreferenceinrelationtoother
routesasshowninthetablebelow.
Example
ThisexampleshowshowtochangethedefaultadministrativedistanceforexternalOSPFroutesto
100:
C3(su)->router(Config)#router ospf 1
C3(su)->router(Config-router)#distance ospf external 100
external|inter
area|intraarea
Appliesthedistancevaluetoexternal(type5andtype7),tointerarea,orto
intraarearoutes.
Note: The value for intra-area distance must be less than the value for
inter-area distance, which must be less than the value for external distance.
weight SpecifiesanadministrativedistanceforOSPFroutes.Validvaluesare1‐
255.
Route Source Default Distance
Connected 0
Static 1
OSPF Intra-area - 8; Inter-area - 10; External type 1 - 13; External type 2 - 150
RIP 15