How to Configure OSPF on Mikrotik

 

OSPF on Mikrotik 

OSPF(Open Standard Shortest Path) is a Link Stat Routing Protocol. its use Djikstra algorithm for find shortest Path. OSPF use Protocol Number 89 and AD value 110. OSPF use two multicast address 224.0.0.5 and 224.0.0.6.  OSPF is a classless protocol and its Support VLSM. OSPF support both IPV4 and IPV6. OSPF Support only IP Routing and there is no hop-count limit.OSPF uses areas and OSPF Area 0 is known as the Backbone Area and its help  maintain a loop free topology. in this tutorial we configure OSPF on Mikrotik.

R1 Configure

interface bridge add name=loopback

ip address add address=2.2.2.2/32 interface=loopback

ip address add address=172.16.2.2/30 interface=ether1

ip address add address=192.168.1.1/24 interface=ether2

R2 Configure

interface bridge add name=loopback

ip address add address=3.3.3.3/32 interface=loopback

ip address add address=172.16.2.1/30 interface=ether2

ip address add address=192.168.2.1/24 interface=ether3

 

R1 Router OSPF Configure

routing ospf instance set router-id=2.2.2.2

routing ospf network add area=backbone network=2.2.2.2/32

routing ospf network add area=backbone network=172.16.2.0/30

routing ospf network add area=backbone network=192.168.1.0/24

R2 Router OSPF Configure

routing ospf instance set router-id=3.3.3.3

routing ospf network add area=backbone network=3.3.3.3/32

routing ospf network add area=backbone network=172.16.2.0/30

routing ospf network add area=backbone network=192.168.2.0/24

 

Verification:

ip route print

routing ospf route print

 

Related posts

Leave a Comment