Community discussions

MikroTik App
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

ospf with 2 gateway to internet

Tue Feb 20, 2007 3:38 am

internet internet
| |
LAN 192.168.0.0/24--R1------------------R2--LAN 192.168.1.0/24
| 10.10.10.0/30 |
10.10.30.0/30| |10.10.20.0/30
| |
| |
|---------R3---------|
|
LAN 192.168.2.0/24

can any one help me how to set up ospf routing for this network configuration.
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Feb 20, 2007 8:01 am

The manual has some great examples of how to do this:

http://www.mikrotik.com/testdocs/ros/2. ... g/ospf.php
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Feb 20, 2007 8:02 am

Another, consideration is also http://wiki.mikrotik.com/wiki/Load_Balancing
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

Tue Feb 20, 2007 9:17 am

The manual has some great examples of how to do this:

http://www.mikrotik.com/testdocs/ros/2. ... g/ospf.php
i have tested with 1 gateway to internet and work. then how we set up ospf if we have 2 gateway to internet at different router.
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Tue Feb 20, 2007 9:46 am

Are you trying to load balance between two different gateways? We need a little more information to help you. OSPF and load balancing should do what you want. The manual has examples at the bottom of the pages on how to do OSPF.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Tue Feb 20, 2007 9:53 am

if you have 2 gateways on one router OSPF will not help you, if you have 2 gateways on 2 different routers you will have your network divided in to parts, one that will go through one GW another through another, if one of them fail OSPF auto-magically will update it's routes. But you will not get load balancing with OSPF.

if you have 2 interfaces on one router you will have to follow example of load balancing in wiki and leave OSPF as it is
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

Tue Feb 20, 2007 10:34 am

Are you trying to load balance between two different gateways? We need a little more information to help you. OSPF and load balancing should do what you want. The manual has examples at the bottom of the pages on how to do OSPF.
not load balance, just fail over. i have 2 ADSL internet connection at different site then i make ring wireless network. at manual example it just have 1 area and 1 internet connection. in my case i have 2 internet connection. so how to configure OSPF with this network design.

internet internet
| |
LAN 192.168.0.0/24--R1-------------R2--LAN 192.168.1.0/24
| 10.10.10.0/30 |
10.10.30.0/30| |10.10.20.0/30
| |
| |
|------- R3-------|
|
LAN 192.168.2.0/24
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Tue Feb 20, 2007 10:37 am

there is no real difference in configuration
just set not one router as edge router but two routers as edge routers and set them both to distribute static routes.
 
Diganet
Member
Member
Posts: 342
Joined: Sun Oct 30, 2005 9:30 pm
Location: Denmark
Contact:

Tue Feb 20, 2007 2:22 pm

there is no real difference in configuration
just set not one router as edge router but two routers as edge routers and set them both to distribute static routes.
Also remember to raise the cost for the backup line.

/Henrik