Community discussions

MikroTik App
 
busa1300
newbie
Topic Author
Posts: 35
Joined: Wed Dec 28, 2005 11:15 pm
Location: Indiana, USA

multiple gateways, same gateway IP

Thu Mar 19, 2009 3:03 am

I have multiple IPs routed to mutiple gateways, everything works beyond the gateways, but all of our (ISP)lines have the same gateway IP, as soon as mikrotikOS see's the same gateway IP it defaults to the same interface. I have tried to specifiy the interface but it then has multiple interfaces for the same route. Where would you specify the interface for a gateway??? (route, route rule, masquerade, mangle, ???)
 
User avatar
enk
Member Candidate
Member Candidate
Posts: 165
Joined: Fri Aug 17, 2007 8:59 am
Location: Russia
Contact:

Re: multiple gateways, same gateway IP

Thu Mar 19, 2009 10:26 am

please provide a bit more information about you configuration.
As how as i understood you have such scheme:

mt --- ether 1 --- ISP ip x.x.x.x (same subnet and address)
|
|
ether2
|
|
ISP ip ip x.x.x.x (same subnet and address)

Is this correct?
 
busa1300
newbie
Topic Author
Posts: 35
Joined: Wed Dec 28, 2005 11:15 pm
Location: Indiana, USA

Re: multiple gateways, same gateway IP

Thu Mar 19, 2009 1:46 pm

The address is different but the subnet and gateway are the same for both lines, the same gateway is the problem.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: multiple gateways, same gateway IP

Thu Mar 19, 2009 3:10 pm

interface as a gateway?

maybe you use pppoe tunnels to connect to your isp?
 
busa1300
newbie
Topic Author
Posts: 35
Joined: Wed Dec 28, 2005 11:15 pm
Location: Indiana, USA

Re: multiple gateways, same gateway IP

Thu Mar 19, 2009 10:09 pm

I have them working separately.

Example
ISP1 = ip 192.168.1.138, 255.255.255.0, 192.168.1.1
ISP2 = ip 192.168.1.162, 255.255.255.0, 192.168.1.1
But when i use ether1 for isp1 and ether 2 for isp2, the dynamic part of the second route i put in the (ether interface) defaults to what ever interface was running first

If i try to force the interface it gives
distanation=0.0.0.0/0 gateway=192.168.1.1 gateway interface=empty interface=ether1
distanation=0.0.0.0/0 gateway=192.168.1.1 gateway interface=ether2 interface=ether1 marking route=group2

The problem is the interface=? for both routes will not separate, because they both look at the same gateway 192.168.1.1
 
pedja
Long time Member
Long time Member
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

Re: multiple gateways, same gateway IP

Sat Mar 21, 2009 8:03 pm

That will not work. You have to use separate IP ranges for each internet connection.

You can deal with it if you insert another router on one of the links, so you can use different IP address range to connect your MT to that inserted router.

If you already have simple routers on each ISP link, then simply change local IP range for one of the routers.

Who is online

Users browsing this forum: HansHolgersson, homerouter, johnson73, vingjfg and 104 guests