22 distance ospf, 23 distribute-list out – Fortinet MR1 User Manual

Page 337

Advertising
background image

337

<1-16777215> - The range of default metric is 1 to 16777215.
<no> - This command configures the default advertisement of default routes.

Default Setting

None

Command Mode

Router OSPF Config

6.3.2.22 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.


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

The default preference value for intra is 8. The default preference value for inter is 10. The
default preference value for type 1 is 13. The default preference value for type 2 is 150.

Command Mode

Router OSPF Config

6.3.2.23 distribute-list out

This command is used to specify the access list to filter routes received from the source
protocol.

Advertising