Korenix Technology Co., Ltd.
Industrial
Layer 3 Managed Ethernet Switch
_____________________________________________________________________________
Industrial Layer 3 Managed Ethernet SwitchUser Manual
Page: 1003/1568
9.4.2.30
distance ospf
This command sets the route preference value of OSPF in the router. Lower route preference values are
preferred when determining the best route. The type of OSPF can be intra, inter, type-1, or type-2. The
OSPF specification (RFC 2328) requires that preferences must be given to the routes learned via OSPF
in the following order: intra < inter < type-1 < type-2. The <preference> range is 1 to 255. A route with a
preference of 255 cannot be used to forward traffic.
Syntax
distance ospf {intra | inter | type1 | type2} <preference>
no distance ospf {intra | inter | type1 | type2}
<preference> -
The range for intra is 1 to 252. The range for inter is 2 to 253. The range for type1 is
3 to 254. The range for type2 is 4 to 255.
no -
This command sets the default route preference value of OSPF in the router.
Default Setting
Intra is 8.
Inter is 10.
Type 1 is 13.
Type 2 is 150.
Command Mode
Router OSPFv3 Config