Two inter providers, four real IPs

Hello, I hope someone can help me, with my probblem.

I read many manuals, but it still doesnt work:

Two ethernet cables, from two providers. From each provider I have two real IPs. I have RB 493AH.

To each real ip, I whant to make one lan, thats 4 local lans.

ether-2: provider 1
ether-3: provider 2

ether-4: lan with provider 1 realip-1
ether-5: lan with provider 1 realip-2

ether-6: lan with provider 2 realip-1
ether-7: lan with provider 2 realip-2

I have a problem with getaways to real ips. Can someone tell, how to make getaway to provider 1 and getaway to provider 2?

you can’t use real IP’s in your situation.

why can I user real ips?

what? :confused:

eeeem

I made some things. Two reals IPs to lan IPs, two real ips from different providers. The problem now, is that I cant make two gateways, who is equal, from one provider. I hope, You will understand. Sorry for my bad english…

Ypu can’t have 2 default gateways, as I remember. Only with NAT.

you can add multiple default gateways, it will send each packet to another GW.

/ip route add gateway=1.1.1.1,2.2.2.2,3.3.3.3

you can even do it this way

/ip route add gateway=1.1.1.1,2.2.2.2,2.2.2.2

so that 2.2.2.2 is higher priority

Also you can use Policy routing to decide which traffic will go though which interface

the situation:

RealIP-1: 85.113.23.76
RealIP-2: 85.113.23.79

Bouth have DW: 85.113.23.1

I can split the cable, if needed.

If i make two routes, for each real ip, 0.0.0.0/0 => 85.113.23.1 => each hase different routing mark. But it’s not working.

are your ip addresses from same subnet and on 2 different interfaces? It is allowed to set configuration like that, but that is completely wrong.

and is there any gain, why you use 2 ip address on 2 interfaces, did your interneter provider said - that using 2 addresses will double your available bandwidth?

SM: 255.255.255.0

I have one cable from provider, but I can split it, to two interfaces.

lol => did your interneter provider said - that using 2 addresses will double your available bandwidth

No :slight_smile: The idea is that, each real IP will become local. I have 9 computers, and I whant to make real IP to local.

you don’t need two interfaces then. ask for two IPs for one connection. assign two IPs to one interface. problem solved.

If I put i-net cable to, for example in ether2, and in ip address I put two IP’s to one interface. In route, I can’t use two routing marks and the interface whant to work only with one real IP, not two

Vai es kaut ko nesaprotu, jeb arī Tu kaut ko nesaproti!

In route, where 85.113.23.0/24 it shows Pref. Source only one IP not two…

well - you are not allowed to use 2 ip addresses from 1 network on 2 different ip addresses, i know of no hardware that will work with settings like this, you will be able to observe random behaviour and be lucky if it is what you wanted, but mostly you will lock up your traffic and nothing will work reliably. So in case you need to map public addresses to private ones, you can do that in /ip firewall nat. on how to do that and possible ways on how to do that, please see manual section of NAT.

Also, if you want to load balance over 2 ISPs see wiki articles:
http://wiki.mikrotik.com/wiki/Load_Balancing
http://wiki.mikrotik.com/wiki/Per-Traffic_Load_Balancing

thus you will be able do that.

About preferred-source field in /ip route

as per manual:
pref-src (IP address) - source IP address of packets, leaving router via this route

usually that is address that is set on this router.