- 593 -

10.4.2.30 distance ospf

This command set s the rou te preferen ce value of OSPF in the route r. Lower route preference values are
preferred when determining the best rou t e. The type of OSPF can be intra, inter, type-1, or type-2. The
OSPF specification (RFC 2328) require s 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 b e 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 t he 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

10.4.2.31 enable

This command resets the default admini strative mode of OSPF in the router (active).
Syntax
enable
no enable
<no> - This command sets the administrative mode of OSPF in the router to inactive.
Default Setting
Enabled
Command Mode
Router OSPFv3 Config