Community discussions

MikroTik App
 
mattlukezahra
just joined
Topic Author
Posts: 6
Joined: Tue Aug 18, 2020 1:33 am

Route Bridge IP via different gateway

Thu Jan 13, 2022 4:35 pm

Hi,

I have been trying for so long to pass a specific IP address via a different gateway, I have ip range 192.168.5.0/24 passing from PPPOE connection via port 5 and i would like for example IP address 192.168.5.77 to pass via DHCP client gateway connection to port 3, i tried to set it up using Mark Routing but no use, and i have both gateways NAT.

would really appreciate anyone that can help me out :)

thanks
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19125
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Route Bridge IP via different gateway  [SOLVED]

Thu Jan 13, 2022 5:46 pm

Well the short answer is IP routes.

Assuming vers7
you need standard route for each WAN
wan1 basic route table=main
wan2 basic route table=main
wan3 basic route routing-table=usewan2

So you need to manually create the table "usewan2" using WINBOX CLI via the terminal commands, no way to do this in Winbox GUI.
Apparently like so.
/routing table add name=usewan2 fib


Route rule
Input: Src-address=192.168.x.0/24 {identify subnet that should go out WAN2 (or one specific IP)
Action: Lookup-only-in table { if you need the subnet to use wan1 as a backup then USE "LOOKUP" as an action}
Table: usewan2
 
mattlukezahra
just joined
Topic Author
Posts: 6
Joined: Tue Aug 18, 2020 1:33 am

Re: Route Bridge IP via different gateway

Fri Jan 14, 2022 2:33 pm

Thank you very very much this worked !

Who is online

Users browsing this forum: No registered users and 44 guests