Manual:Routing/OSPF: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
(New page: <div class=manual> <h2>Summary</h2> <p> MikroTik RouterOS implements OSPF Version 2 (RFC 2328). The OSPF protocol is the link-state protocol that takes care of the routes in the dynamic n...)
 
No edit summary
Line 8: Line 8:
<br />
<br />


<h2>General Setup</h2>
<h2>General</h2>
<p><b>Sub-menu:</b> <code>/routing ospf</code></p>
<p><b>Sub-menu:</b> <code>/routing ospf</code></p>


Line 77: Line 77:
</ul>
</ul>
</p>
</p>
<h3>Monitor</h3>
<p>
Command <code>/routing ospf monitor</code> will display current OSPF status.
</p>
<p>
Available read only properties:
</p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>state</b></var> (<em>down | running</em>)</td>
    <td>  </td>
</tr>
<tr>
    <td><var><b>router-id</b></var> (<em>IP address</em>)</td>
    <td>  </td>
</tr>
<tr>
    <td><var><b>dijkstras</b></var> (<em>integer</em>)</td>
    <td>  </td>
</tr>
<tr>
    <td><var><b>db-exchanges</b></var> (<em>integer</em>)</td>
    <td>  </td>
</tr>
<tr>
    <td><var><b>external-imports</b></var> (<em>integer</em>)</td>
    <td>  </td>
</tr>
</table>
<br />
<h2>Area</h2>
<p><b>Sub-menu:</b> <code>/routing ospf area</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Area Range</h2>
<p><b>Sub-menu:</b> <code>/routing ospf area range</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Network</h2>
<p><b>Sub-menu:</b> <code>/routing ospf network</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Interface</h2>
<p><b>Sub-menu:</b> <code>/routing ospf interface</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>NBMA Neighbor</h2>
<p><b>Sub-menu:</b> <code>/routing ospf nbma-neighbor</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Virtual Link</h2>
<p><b>Sub-menu:</b> <code>/routing ospf virtual-link</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>LSA</h2>
<p><b>Sub-menu:</b> <code>/routing ospf lsa</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Neighbor</h2>
<p><b>Sub-menu:</b> <code>/routing ospf Neighbor</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>OSPF Router</h2>
<p><b>Sub-menu:</b> <code>/routing ospf ospf-router</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />
<h2>Route</h2>
<p><b>Sub-menu:</b> <code>/routing ospf route</code></p>
<table class="styled_table">
<tr>
  <th width="350">Property</th>
  <th >Description</th>
</tr>
<tr>
    <td><var><b>lala</b></var> (<em>integer</em>; Default: <b></b>)</td>
    <td> lalala </td>
</tr>
</table>
<br />


</div>
</div>

Revision as of 08:11, 14 November 2008

Summary

MikroTik RouterOS implements OSPF Version 2 (RFC 2328). The OSPF protocol is the link-state protocol that takes care of the routes in the dynamic network structure that can employ different paths to its subnetworks. It always chooses shortest path to the subnetwork first.


General

Sub-menu: /routing ospf


Property Description
distribute-default (never | if-installed-as-type-1 | if-installed-as-type-2 | always-as-type-1 | always-as-type-2; Default: never) specifies how to distribute default route. Should be used for ABR (Area Border router) or ASBR (Autonomous System boundary router)
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
metric-bgp (integer; Default: 20) the cost of the routes learned from BGP protocol
metric-connected (integer; Default: 20) the cost of the routes to directly connected networks
metric-default (integer; Default: 1) the cost of the default route
metric-rip (integer; Default: 20) the cost of the routes learned from RIP protocol
metric-static (integer; Default: 20) the cost of the static routes
redistribute-bgp (as-type-1 | as-type-2 | no; Default: no) redistribute all routes learned by the BGP protocol
redistribute-connected (as-type-1 | as-type-2 | no; Default: no) redistribute all connected routes, i.e., routes to directly reachable networks
redistribute-rip (as-type-1 | as-type-2 | no; Default: no) redistribute all routes learned by the RIP protocol
redistribute-static (as-type-1 | as-type-2 | no; Default: no) if enabled, the router will redistribute the information about static routes added to its routing database, i.e., routes that have been created using the '/ip route add' command on the router
router-id (IP address; Default: 0.0.0.0) the OSPF Router ID. If not specified, OSPF use one of router's IP addresses.


Notes

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 eliminates the need conversion of external costs to internal link state metrics.

Monitor

Command /routing ospf monitor will display current OSPF status.

Available read only properties:

Property Description
state (down | running)
router-id (IP address)
dijkstras (integer)
db-exchanges (integer)
external-imports (integer)


Area

Sub-menu: /routing ospf area

Property Description
lala (integer; Default: ) lalala


Area Range

Sub-menu: /routing ospf area range

Property Description
lala (integer; Default: ) lalala


Network

Sub-menu: /routing ospf network

Property Description
lala (integer; Default: ) lalala


Interface

Sub-menu: /routing ospf interface

Property Description
lala (integer; Default: ) lalala


NBMA Neighbor

Sub-menu: /routing ospf nbma-neighbor

Property Description
lala (integer; Default: ) lalala


Virtual Link

Sub-menu: /routing ospf virtual-link

Property Description
lala (integer; Default: ) lalala


LSA

Sub-menu: /routing ospf lsa

Property Description
lala (integer; Default: ) lalala



Neighbor

Sub-menu: /routing ospf Neighbor

Property Description
lala (integer; Default: ) lalala


OSPF Router

Sub-menu: /routing ospf ospf-router

Property Description
lala (integer; Default: ) lalala


Route

Sub-menu: /routing ospf route

Property Description
lala (integer; Default: ) lalala