DELL PC6224F User Manual

Page of 1356
OSPF Commands
875
Example
The following example sets a value of 50 for the default metric.
console(config-router)#default-metric 50
distance ospf
The distance ospf command sets the preference values of OSPF route types 
in the router. Lower route preference values are preferred when determining 
the best route. The type of OSPF route can be intra, inter, external. All the 
external type routes are given the same preference value. Use the “no” form of 
this command to reset the preference values to the default.
Syntax
distance ospf {external | inter-area | intra-area } 
distance
no distance ospf {external | inter-area | intra-area } 
distance
distance — Used to select the best path when there are two or more routes 
to the same destination from two different routing protocols (Range: 
1–255).
Default Configuration
The default preference value is 110.
Command Mode
Router OSPF Configuration mode.
Router OSPFv3 Configuration mode.
User Guidelines
There are no user guidelines for this command.
Examples
The following examples set route preference values of OSPF in the router.
console(config-router)#distance ospf intra 4
console(config-router)#distance ospf type1 19