Multiple WAN Interface with same subnet ip - how to route

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 ?

Anyone ?

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 :slight_smile:

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