• if-installed-as-type-1 - send the default route with type 1 metric only if it has been installed (a
static default route, or route added by DHCP, PPP, etc.)
• if-installed-as-type-2 - send the default route with type 2 metric only if it has been installed (a
static default route, or route added by DHCP, PPP, etc.)
• always-as-type-1 - always send the default route with type 1 metric
• always-as-type-2 - always send the default route with type 2 metric
metric-bgp ( integer ; default: 20 ) - specifies the cost of the routes learned from BGP protocol
metric-connected ( integer ; default: 20 ) - specifies the cost of the routes to directly connected
networks
metric-default ( integer ; default: 1 ) - specifies the cost of the default route
metric-rip ( integer ; default: 20 ) - specifies the cost of the routes learned from RIP protocol
metric-static ( integer ; default: 20 ) - specifies the cost of the static routes
redistribute-bgp ( as-type-1 | as-type-2 | no ; default: no ) - with this setting enabled the router will
redistribute the information about all routes learned by the BGP protocol
redistribute-connected ( as-type-1 | as-type-2 | no ; default: no ) - if set, the router will redistribute
the information about all connected routes, i.e., routes to directly reachable networks
redistribute-rip ( as-type-1 | as-type-2 | no ; default: no ) - with this setting enabled the router will
redistribute the information about all routes learned by the RIP protocol
redistribute-static ( as-type-1 | as-type-2 | no ; default: no ) - if set, the router will redistribute the
information about all static routes added to its routing database, i.e., routes that have been created
using the /ip route add command
router-id ( IP address ; default: 0.0.0.0 ) - OSPF Router ID. If not specified, OSPF uses the largest
IP address configured on the interfaces as its router ID
Notes
Within one area, only the router that is connected to another area (i.e. Area border router) or to
another AS (i.e. Autonomous System boundary router) should have the propagation of the default
route enabled.
OSPF protocol will try to use the shortest path (path with the smallest total cost) if available.
OSPF protocol supports two types of metrics:
• type1 - external metrics are expressed in the same units as OSPF interface cost. In other words
the router expects the cost of a link to a network which is external to AS to be the same order of
magnitude as the cost of the internal links.
• type2 - external metrics are an order of magnitude larger; any type2 metric is considered
greater than the cost of any path internal to the AS. Use of type2 external metric assumes that
routing between AS is the major cost of routing a packet, and climinates the need conversion of
external costs to internal link state metrics.
Both Type 1 and Type 2 external metrics can be used in the AS at the same time. In that event,
Type 1 external metrics always take precedence.
In /ip route you can see routes with Io status. Because router receives routers from itself.
The metric cost can be calculated from line speed by using the formula 10e+8/line speed. The table
Page 109 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.