Community discussions

MikroTik App
 
firas
just joined
Topic Author
Posts: 18
Joined: Fri Mar 14, 2014 7:45 pm

2 wan and 2 Lan in same router

Wed Apr 15, 2015 3:18 am

Dear friends
i need your help, I have one router and 2 WAN cables first static and other PPPOE i would like to configure 2 pppoe servers first take internet from wan1 and give internet to LAN1 192.168.0.0/24
other server take internet from wan 2 and give it to LAN2 192.168.1.0/24

Static account -------WAN1 ---- pppoe server --- LAN1 ( 192.168.0.0/24)
pppoe account ------WAN 2 ----pppoe server ----LAN2 ( 192.168.1.0/24)


in other meaning : how i can specify this wan 1 have to give just to LAN1 and WAN2 give to LAN2

thank you
 
munnaeeebd
just joined
Posts: 4
Joined: Thu Apr 02, 2015 6:21 pm

Re: 2 wan and 2 Lan in same router

Thu Apr 16, 2015 8:02 pm

NAT rule for lan1 out interface wan1 and lan2 out interface wan2
Mangle rule: chain=prerouting source address=lan1 IP ; action =mark routing new mark=mark-wan1
chain=prerouting source address=lan2 IP ; action =mark routing new mark=mark-wan2 passthrough=no

Route; gateway=wan1 gateway IP ; distance=1 routing mark=mark-wan1
gateway=wan2 gateway IP ; distance=1 routing mark=mark-wan2
 
firas
just joined
Topic Author
Posts: 18
Joined: Fri Mar 14, 2014 7:45 pm

Re: 2 wan and 2 Lan in same router

Mon May 04, 2015 1:03 am

Thank you very much it is working great