Mikrotik Dual WAN & LAN help

P00HB33R

Senior Member
Joined
Jul 15, 2010
Messages
710
Reaction score
30
Location
Eloff
Hi Guys,

Hope someone can help me. I'm not to clued up with mikrotik setup, thought I know my way around winbox & terminal.

I need to setup 2x pppoe accounts on the same wan port. The device is in bridge mode so that shouldnt be a problem. Also, I need the mikrotik to have 2 LAN IP's to use as gateways on client pc's.

So the result should be if I put the gateway & ip range of the client in lets say 192.168.1.0 range it should use pppoe account 1, if I put it in 192.168.5.0 range it should use pppoe account 2.

Any help would really be appreciated.
 
You can either mark your traffic or just have masquerade rules out on each pppoe with the src addresses range of each lan.
 
Howzit,

How are you physically connecting to the mikrotik? Separate lan ports for each address range or will they pool together through 1 lan port (on the mikrotik) then to a wifi AP/switch? You can maybe investigate vlan'ing the traffic with 2 DHCP servers if different ports on the mikrotik but if it's through 1 lan then as mentioned above can mark traffic and even set MAC based static DHCP addresses for the devices that need to connect through a different gateway.
 
ether1 will have the cable plugged in coming from the cpe that is in bridge mode. ether2 is connected to the internal lan switch.

Could you give an example of how to setup the masq or mark traffic.

Thanks
 
IP/firewall/Nat, then add a src-nat rule specifying a src address range e.g 192.168.5.0/24. Out interface should be e.g pppoe1, and action as masquerade. Then do one for the second pppoe with a different src address range.
 
IP/firewall/Nat, then add a src-nat rule specifying a src address range e.g 192.168.5.0/24. Out interface should be e.g pppoe1, and action as masquerade. Then do one for the second pppoe with a different src address range.

You will still need to do route marking on top of this.

ip-firewall-mangle. create two rules
src-address=192.168.1.0/24, action=mark-route: route-adsl1
src-address=192.168.5.0/24, action=mark-route: route-adsl2

ip-route. add two default routes
dst-address=0.0.0.0/0, gateway=adsl1, route-mark=route-adsl1
dst-address=0.0.0.0/0, gateway=adsl2, route-mark=route-adsl2
 
Top
Sign up to the MyBroadband newsletter
X