Community discussions

MikroTik App
 
muhanadali
newbie
Topic Author
Posts: 47
Joined: Tue Aug 25, 2020 12:24 pm

routing mark proplems

Sun Sep 13, 2020 2:57 pm

/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=36 passthrough=no src-address=14.14.14.23
add action=mark-routing chain=prerouting new-routing-mark=35 passthrough=no src-address=14.14.14.24

/ip route
add distance=1 gateway=pppoe-out1 routing-mark=36
add distance=1 gateway=pppoe-out2 routing-mark=35

anyone help me and convert this rules from routeros v6 to v7
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: routing mark proplems

Mon Sep 14, 2020 11:59 am

 
muhanadali
newbie
Topic Author
Posts: 47
Joined: Tue Aug 25, 2020 12:24 pm

Re: routing mark proplems

Mon Sep 14, 2020 8:35 pm

I did not understand anything from the post , The explanation does not suffice for the purpose and I recommend to amend it
----------------------------------------------------
i have pppoe-out 1 , pppoe-out 2

2 PC
PC 1 (192.168.1.254)
PC 2 (192.168.2.254)

/routing table add name=1 fib
/routing table add name=2 fib

/ip firewall mangle
add chain=prerouting src-address=192.168.1.254 acction=mark-routing new-routing-mark=PC1
add chain=prerouting src-address=192.168.1.254 acction=mark-routing new-routing-mark=PC2

/ip route rule
add action=lookup-only-in-table routing-mark=PC1 table=1
add action=lookup-only-in-table routing-mark=PC2 table=2

/ip route
add gateway=pppoe-out1@main routing-table=1
add gateway=pppoe-out2@main routing-table=2

these right ??

Who is online

Users browsing this forum: NxtGen [Bot] and 20 guests