Community discussions

MikroTik App
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Multiple WAN Interface with same subnet ip - how to route

Mon Jan 22, 2007 9:00 pm

Hi,

Currently configured a MT 2.9.39 with

- LAN Interface 192.168.100.250/24
- WLAN Bridge interface ( linksys bridge) 192.168.50.250/24
- DMZ Interface (not used) 192.168.13.250/24
- WAN1 x.x.4.234
- WAN2 x.x.4.233
- WAN3 x.x.4.231
- WAN4 x.x.4.232

The wan interface al have a static DHCP ip bound to the mac adres of the router. So the DHCP Client is used but always get the same ip adress

Now i would like to use a diffent public ip adres for the LAN WLAN and DMZ interface and a second for one host on the LAN interface

But al the public ip`s get there own default route.
# INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS

0 4-1 BBNED yes yes bound x.x.4.234/24
1 4-2 BBNED bound x.x.4.233/24
2 4-3 BBNED bound x.x.4.231/24
3 4-4 BBNED bound x.x.4.232/24

But how do i make the default route for each interface ? Because masquerade is not working when there is no default route know for that interface

Tried to follow http://wiki.mikrotik.com/wiki/Load_Balancing but i dont need load balancing. Because al the ip`s belong to the same dsl connection. How do i make a default route for each interface ? Without interfering ?
Last edited by raymonvdm on Tue Jan 23, 2007 12:23 am, edited 1 time in total.
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Tue Jan 23, 2007 12:08 am

Anyone ?
 
raymonvdm
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Mon Jan 31, 2005 7:47 pm

Tue Jan 23, 2007 12:41 am

I found out something that worked

ip route

0 A S 0.0.0.0/0 r 84.245.4.1 0 4-1 BBNED


chain=srcnat out-interface=4-1 BBNED src-address=192.168.100.1 action=masquerade

Changed it to

chain=srcnat src-address=192.168.100.1 action=src-nat to-addresses=x.x.4.233 to-ports=0-65535

And it started working.

I`m now a little happy :-)

Added the other rules for the other network and now all seams to be fine

Who is online

Users browsing this forum: Bing [Bot], DanMos79, GoogleOther [Bot], kleshki, shahzaddj1 and 103 guests