Here we will learn how to setup multiple ISP with same gateway IP.
Here we assume that the two ISP's IP details we found are:
ISP-1: (ether1)
IP: 172.16.44.136
SubnetMask: 255.255.255.0
Gateway: 172.16.44.1
ISP-2: (ether2)
IP: 172.16.44.217
SubnetMask: 255.255.255.0
Gateway: 172.16.44.1
So, the both ISP's gateway IP is same !
No problem, we can configure it with a magic key string supported by MikroTik.
The key string for gateway entry:
The key is that you can use an IP address along with an interface name as a gateway of a route, using the ip%interface notation.
Gateway Entry = IP Address + Parcent + Interface Name
The example gateway entry will be:
Gateway for static IP from ISP
172.16.44.1%ether1
Gateway for PPPoE from ISP
pppoe-out1
Gateway for Modem/4G
172.16.44.1%lte1
Gateway for VPN
ovpn-out1
l2tp-out1
* You may not need to enter IP-address on any virtual interface. That mean PPPoE interface or VPN interface is virtual interface.
In regard to virtual interface, the only interface name is ok, or else you can add IP.
Disable default route config:
So it's easy to configure here. But remember, if you get the ISP connection by DHCP Client, then you have to set default-route=no at the DHCP-Client configuration.
The LTE interface for 4G-Modem is also created automatically with a DHCP-Client. So, delete the default LTE1 dhcp client, and create manually a dhcp client for lte1.
Winbox > IP > DHCP Client
Or, disable default route at the PPPoE configuration.
Winbox > PPP
Add route manually on MikroTik:
Winbox > IP > Routes
Add the route two or multiple times as you have multiple ISPs:
172.16.44.1%ether1
172.16.44.1%ether2
172.16.44.1%ether3
pppoe-out1
pppoe-out2
172.16.44.1%lte1
172.16.44.1%lte2
ovpn-out1
l2tp-out1
You will get no conflict if the all gateway IP is same.
Enjoy !
Post a Comment
Post a Comment