one ip use specific gateway

Hello,
I have two wan’ 192.192.168.1.254(box) and 192.168.88.1(lte).
I would like the ip of my lan 192.168.2.3 to only use wan 1 (192.168.1.254)
chain=prerouting action=mark-routing new-routing-mark=to-SERVER passthrough=yes src-address=192.168.2.3 log=no log-prefix=“”
I do mark routing but each time I have the following error
PR_CONNECT_RESET_ERROR
Échec de la connexion sécurisée

Une erreur est survenue pendant une connexion à www.youtube.com. PR_CONNECT_RESET_ERROR

La page que vous essayez de consulter ne peut pas être affichée car l’authenticité des données reçues ne peut être vérifiée.
Veuillez contacter les propriétaires du site web pour les informer de ce problème.
when I do a tracert on 8.8.8.8 the path is the correct one
Détermination de l’itinéraire vers dns.google [8.8.8.8]
avec un maximum de 30 sauts :

1 <1 ms <1 ms <1 ms 192.168.2.1
2 <1 ms <1 ms <1 ms 192.168.1.254
3 39 ms 38 ms 38 ms 194.149.169.212
4 37 ms 38 ms 38 ms 194.149.166.58
5 39 ms 37 ms 39 ms 72.14.221.62

what is my mistake

thank you

Would need to see your config for a complete assessment but…

If using vers7,…
Need an additional route

/ip route
dst-address=0.0.0.0/0 gwy=wan1-gatewayIP useWAN1

/routing table add name=useWAN1 fib

/routing rule add src-address=192.168.2.3/32 action=lookup-only-in-table table=useWAN1

hi

routing for 192.168.2.3

0000/0 gateway 192.168.1.254 roiting mark to -server

hi
thank you work fine.
i don t know , i can use rule for this and not mangle table.
More easy

:smiley: :smiley: :smiley:

what is “If using vers7,..”

Well the rule structure has changed between version 6 series firmware and version 7 series firmware.
The solution provided is geared towards the newer version 7 firmware.

hi

sorry i upgrade to 7.15

make your code and now not good.

i do something wrong maybe
br

Without seeing your config dont know…
If you had wanted it for vers6, you only needed to ask LOL.
/export file=anynameyouwish

Also print the IP routes page details.

hi

sorry is my fault.

i have two ethernet in my serveur after upgrade 2019 to 2022 i forgot to switch off 2 ethernet.

work fine now.

:laughing: :laughing: :laughing: :laughing:

Hi, newbie here, trying to use your suggestion but maybe there is something wrong with first command that I still do not figure out.

Using RouterOS v7.2 .

After some trials, I think I found the right commands:

/routing table add fib name=ISP1
/routing rule add action=lookup-only-in-table src-address=10.22.22.33/32 table=ISP1
/ip route add dst-address=0.0.0.0/0 gateway=172.217.162.206 routing-table=ISP1

:sunglasses: