Community discussions

MikroTik App
kujo
Member Candidate
Member Candidate
Topic Author
Posts: 169
加入: Sat Jun 18, 2016 10:17 am
Location:Ukraine
Contact:

Implicit route rule?

Tue Oct 31, 2017 11:48 am

Hi!
马克在损坏路由:
Code:Select all
/ip firewall mangle add action=mark-routing chain=prerouting src-address=192.168.0.10 new-routing-mark=ISP1
Then create this type of route in different table ISP1
Code:Select all
/ip route add distance=1 gateway=1.1.1.1 routing-mark=ISP1
We really need set up this type of rule:
Code:Select all
/ip route rule add action=lookup routing-mark=ISP1 table=ISP1
Or mikrotik create implicit PBR in system, when we create new route in new table????
Top
用户头像
Anumrak
Forum Guru
Forum Guru
Posts: 1174
加入: Fri Jul 28, 2017 2:53 pm

Re: Implicit route rule?

Wed Nov 01, 2017 2:13 pm

New RIB is VRF. With routing-mark you pointing the VRF for explicit route.
Top
kujo
Member Candidate
Member Candidate
Topic Author
Posts: 169
加入: Sat Jun 18, 2016 10:17 am
Location:Ukraine
Contact:

Re: Implicit route rule?

Wed Nov 01, 2017 4:56 pm

Many authors show examples (even coaches) that this mysterious rule is necessary. I want to understand whether this is a myth
Code:Select all
/ip route rule add action=lookup routing-mark=ISP1 table=ISP1
Top
pe1chl
Forum Guru
Forum Guru
Posts: 9859
加入: Mon Jun 08, 2015 12:09 pm

Re: Implicit route rule?

Wed Nov 01, 2017 5:15 pm

Yeah, it is a bit mysterious why the mangle rules allow setting a "routing-mark" and in the routing table there is also reference to "routing-mark"
while in the route rules there is a possibility to match on a "routing-mark" and then set a "table".
I think the "table" in that case is just the "routing-mark" in the routes but why is it then called "table" in the route rules?

This should be more clearly explained in the documentation.
Top
kujo
Member Candidate
Member Candidate
Topic Author
Posts: 169
加入: Sat Jun 18, 2016 10:17 am
Location:Ukraine
Contact:

Re: Implicit route rule?

Wed Nov 01, 2017 9:22 pm

Maybe mikrotik need add a feature for display implicit rules for "guru-mode"? (Read-only)


Yours respectfully!
Top
pe1chl
Forum Guru
Forum Guru
Posts: 9859
加入: Mon Jun 08, 2015 12:09 pm

Re: Implicit route rule?

Wed Nov 01, 2017 9:36 pm

Related: I would like to see the rules that are created automatically when using VRF.
Top

Who is online

Users browsing this forum: No registered users and 10 guests

Baidu
map