Community discussions

MikroTik App
 
plisken
Forum Guru
Forum Guru
Topic Author
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

wlan send to isp2 not to isp1

Sun Jul 29, 2012 2:34 pm

I want to redirect wlan1 to isp2 wlan1 has separate ip pool with own dhcp-server
How should I set that?
tnx for reply
You do not have the required permissions to view the files attached to this post.
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

Re: wlan send to isp2 not to isp1

Sun Jul 29, 2012 5:46 pm

Hello
if ether2 is not member of bridge then use

/ip firewall mangle add chain=prerouting src-address=192.168.101.0/24 action=mark-routing new-routing-mark=wlanUsers
/ip route add routing-mark=wlanUsers gateway=ether2-isp2
/ip firewall nat add chain=srcnat src-address=192.168.101.0/24 out-interface=ether2-isp2 action=masquerade

if it is member of a bridge replace ether2 with your bridge name in commands
be careful if ether2 is a member of a bridge set ip address to bridge and if not set ip address to ether2

Good luck

Who is online

Users browsing this forum: No registered users and 69 guests