Setup guide

1. Change general OSPF settings of redistributing connected, static and default routes. The
default route should be distributed only from border routers of your area
2. Configure additional areas, if any
3. If you are using encryption, you should configure keys in /routing ospf interface command
level
4. Add OSPF network records for all networks you want the OSPF to run on
The OSPF protocol is started after you will add a record to the OSPF network list. The routes
learned by the OSPF protocol are installed in the routes table list with the distance of 110.
General Setup
routing ospf
Description
TODO
Property Description
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
distribute-default (never | if-installed-as-type-1 | if-installed-as-type-2 | always-as-type-1 |
always-as-type-2; default: 0.0.0.0) - specifies how to distribute default route
never - do not send own default route to other routers
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
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-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
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-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
metric-default (integer; default: 1) - specifies the cost of the default route
metric-connected (integer; default: 20) - specifies the cost of the routes to directly connected
networks
metric-static (integer; default: 20) - specifies the cost of the static routes
metric-rip (integer; default: 20) - specifies the cost of the routes learned from RIP protocol
metric-bgp (integer; default: 20) - specifies the cost of the routes learned from BGP protocol