Community discussions

MikroTik App
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 10:46 am

Following is the rough drawing of the network.
Image



traffic always go thru ether1 eventhough i set the gateway interface.
note: it is now four modems with 1 same gateway, meaning i have to use 3 mini router to overcome the problems, which is pretty waste of resources here, Is there any other way please?


Thanks!
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 6:30 pm

It is not possible to have the same network address on more than one interface. You must change the LAN side of the modems to provide unique address ranges to your 4 ethernet ports.
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 8:39 pm

so an extra router is a must to get another set of ip to make it different from its original ip (network)?
 
rednetwifi
Frequent Visitor
Frequent Visitor
Posts: 58
Joined: Sat May 24, 2008 3:37 am

Re: Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 9:14 pm

I am intrested in this post too, i think they mean,just have to change the ip address for the LAN cards and modems

MODEM 1 LAN IP 192.168.1.1 ----> ROUTER 192.168.1.2 LAN
MODEM 2 LAN IP 192.168.2.1 ----> ROUTER 192.168.2.2 LAN
MODEM 3 LAN IP 192.168.3.1 ----> ROUTER 192.168.3.2 LAN
MODEM 4 LAN IP 192.168.4.1 ----> ROUTER 192.168.4.2 LAN


Is that correct?
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 9:22 pm

MODEM 1 LAN IP 192.168.1.1 ----> ROUTER 192.168.1.2 LAN
MODEM 2 LAN IP 192.168.2.1 ----> ROUTER 192.168.2.2 LAN
MODEM 3 LAN IP 192.168.3.1 ----> ROUTER 192.168.3.2 LAN
MODEM 4 LAN IP 192.168.4.1 ----> ROUTER 192.168.4.2 LAN


Is that correct?
That would work.
 
User avatar
Muhammad
Member Candidate
Member Candidate
Posts: 141
Joined: Wed Aug 20, 2008 9:15 pm
Location: Pakistan

Re: Help Needed: Multiple WAN but 1 gateway

Mon Sep 08, 2008 9:25 pm

AOA

brother riplace your wan network ip like this
net1ob8.jpg
You do not have the required permissions to view the files attached to this post.
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: Help Needed: Multiple WAN but 1 gateway

Tue Sep 09, 2008 3:23 am

unfortunately the wan IP address is assigned by the ISP automatically, so that we could not changed the ip.


JFYI, these modems are provided by the same ISP, because of each modems are the same package plans (ie 4mbps each modem), they are set to go to 1 gateway (in this case: 125.47.10.1)
It's meant for 1 'end' from each modem, but i want to join all the modems (aka loadbalance) to gain higher bandwidth (4x 4mbps = 16mbps). And I did it successfully, but only that i have to use 3 mini router to get a new network ip, so that mikrotik can do route mark via proper interface for its gateway(s).

thanks all for the suggestions.
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: Help Needed: Multiple WAN but 1 gateway

Tue Sep 09, 2008 6:28 am

i think in 3.x you can append the gateway interface to the route and it will use it. just specify the default gateway _and_ the interface it should use. Create 3 routes with 3 different interfaces. The one problem you might run into is that the upstream ISP might get confused seeing all 3 using the same MAC address. This happened to me on the cable networks since their ARPs work a little differently; so you need 3 physical nics to accomplish it I think.
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: Help Needed: Multiple WAN but 1 gateway

Tue Sep 09, 2008 10:40 am

@ changeip

I did try the gateway interface feature, assigned an interface to the gateway. But the mikrotik always by default choose the interface where the ip should belongs.

say, i have this ip:
124.47.10.11/24 at interface ether1 and the gateway 124.47.10.1 (default)
124.47.10.21/24 at interface ether4 and the gateway 124.47.10.1

then i add gateway interface as ether4 for the second Ip, but it turned out the traffic is always going to ether1 because the ip address is the same (class/segment) network as the ip address of interface ether1

I marked blue on the following codes, although i assigned gateway interface as ether4, but shown as ether1 and ether 4. ...
-----
0 A S ;;; Modem 1
dst-address=0.0.0.0/0 gateway=124.47.10.1 interface=ether1 gateway-state=reachable distance=1 scope=30
target-scope=10 routing-mark=Modem1

1 X S ;;; Default Gateway
dst-address=0.0.0.0/0 gateway=192.168.1.254 distance=1 scope=30 target-scope=10

2 A S ;;; Modem 2
dst-address=0.0.0.0/0 gateway=192.168.1.254 interface=ether4 gateway-state=reachable distance=1 scope=30
target-scope=10 routing-mark=Modem2

3 X S ;;; Modem 2
dst-address=0.0.0.0/0 gateway=124.47.10.1,ether4 interface=ether1,ether4 gateway-state=reachable,unreachable
distance=1 scope=30 target-scope=10 routing-mark=Modem2

4 A S ;;; Modem 3
dst-address=0.0.0.0/0 gateway=10.10.1.1 interface=ether3 gateway-state=reachable distance=1 scope=30
target-scope=10 routing-mark=Modem3
----
I'm confused :? are you? :D
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Help Needed: Multiple WAN but 1 gateway

Tue Sep 09, 2008 7:24 pm

I'm confused :? are you? :D
Don't be confused....read and understand. ;-)
http://blog.butchevans.com/2008/07/mikr ... ng-option/
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: Help Needed: Multiple WAN but 1 gateway

Tue Sep 09, 2008 8:30 pm

gateway-state=reachable,unreachable

This means ether4 is unreachable. Are you using check-gateway on that route ? It can't be blue otherwise that route isnt active in the first place.
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: Help Needed: Multiple WAN but 1 gateway

Wed Sep 10, 2008 1:13 am

gateway-state=reachable,unreachable

This means ether4 is unreachable. Are you using check-gateway on that route ? It can't be blue otherwise that route isnt active in the first place.
actually both were reachable, dunno why when this was copy pasted as unreachable then.... :-?
 4 A S  ;;; Modem 2
        dst-address=0.0.0.0/0 gateway=124.47.10.1,ether4 interface=ether1,ether4 gateway-state=reachable,reachable 
        distance=1 scope=30 target-scope=10 routing-mark=Modem2 
No i didn't use check gateway, i tried but no effect.

It didn't colored as blue in the rule itself, but i marked the text as blue to show those interfaces :)
 
ilius168
Member Candidate
Member Candidate
Topic Author
Posts: 255
Joined: Sat Apr 07, 2007 3:54 am

Re: Help Needed: Multiple WAN but 1 gateway

Wed Sep 10, 2008 1:15 am

Don't be confused....read and understand. ;-)
reading.... ;)

Who is online

Users browsing this forum: akakua, m4rk3J and 80 guests