One WAN IP and 2 Gateway Possible ?

Hi !

I just want to check the possibility to use multiply gateway on mikrotik..

I have a dynamic WAN IP from my ISP, connected at ETH1 and want to create a second gateway on my network
Just to see how it works :slight_smile:

My internal IP for my Mikrotik 192.168.1.1 and i want to create a gateway with 192.168.1.2

but both gateway, shall go out on the same WAN, ETH1

ETH2 on my Mikrotik is connected to my switch, so i want both gateways to be on the same ETH2 port
I’ve seen some example to this where the setup a new gate on each port, but when i test to use that example
on only one port it stops working ? not possible to use 2 gate on one port ? OK, i know.. i CAN use 2 ports
but this is just a confusing test setup :slight_smile: And a want to test how to load balance with this setup..

I will have all the “Normal” traffic goes out on 192.168.1.1 but i will have all gaming computer to use 192.168.1.2
and prioritize that .Must focus on the important traffic :slight_smile:

Have someone test this, some small example ?

Regards Christer / Sweden

You will probably find it easier if you allocate IP numbers in a certain range to the special “gaming” clients and then use the client IP numbers to differentiate between the two groups.

Hi, and yes, and i have used source nat before, i just want to test how this works, and if it works :slight_smile:

Has anyone used 2 gateway with one isp ?

You can put several IP numbers on your LAN interface and have different groups of clients use different LAN IPs as their “gateway”, but ultimately that traffic will arrive at the router based on the router’s LAN MAC address so you need to use something other than the gateway IP to differentiate one group from another.

ok, but is it not possible to “mark” a package that arrives at a certain “gate” ip

For example. I create 192.168.1.1 and 192.168.1.2 and 192.168.1.3 and mark all package that arrives at forexample

192.168.1.1 with “GATE1” and do the same with traffic that arrives to 192.168.1.2 with “GATE2” and so on..

Then i can have controll of witch “gate” the traffic arrives at, right ?

But how do i create a second gateway ? i have created 192.168.1.2 (192.168.1.1 is default) what do i have to do
to make my Mikrotik understand that this is a gateway ?

Regards Christer / Sweden

The traffic will look the same because it is sent to the gateway IP’s MAC address. If both IPs have the same MAC address the incoming frames look the same.

?
Ok, but what is the difference between that setup, and that one that define one gateway / port ?
I have seen a lots of example that define one gateway / port, for example
ETH1 192.168.1.1
ETH2 192.168.2.1
ETH3 192.168.3.1

Is this working just because they using different subnet ? or is it working because they using
different ports ? the MAC address is till the same, and only one..
Regards Christer / Sweden

The router has a different MAC address on each Ether port and the router also knows which physical port the traffic presented on.

Aaaa OK.

And there is no way you can mark a package, and then transfer the package to the default gateway ?

Like this. Mikrotiks default IP (Default gateway) 192.168.1.1
add internal IP 192.168.1.2 to Mikrotik

Mark all package that arrives at 192.168.1.2 in magle, and route that package to default gate 192.168.1.1 … ?

Regards Christer / Sweden

Read up on how Ethernet networks operate and you will have a better understanding of the issue here. Ethernet networks transport frames using MAC addresses. The IP packet inside the frame has source and destination IP addresses but those relate to the original source and final destination - not the IP address of the gateway router.