Community discussions

MikroTik App
 
Tris
just joined
Topic Author
Posts: 5
Joined: Thu Jun 07, 2018 11:37 am
Location: UK

Cannot set routing-mark or table for routing rule

Fri Sep 20, 2019 4:51 pm

Version: RouterOS v7.0beta1 (development)
Model: RB4011iGS+
Steps to reproduce:
/ip/route/rule/add routing-mark="foo"
input does not match any value of routing-mark                                                                                                              
/ip/route/rule/add table="foo"                                                                                                           
input does not match any value of table
Config:
# jan/01/2002 01:17:02 by RouterOS 7.0beta1
# software id = 9S4N-YFRB
#
# model = RB4011iGS+
# serial number = 968A0922CAB1
/interface ethernet switch port
set 0 default-vlan-id=0
set 1 default-vlan-id=0
set 2 default-vlan-id=0
set 3 default-vlan-id=0
set 4 default-vlan-id=0
set 5 default-vlan-id=0
set 6 default-vlan-id=0
set 7 default-vlan-id=0
set 8 default-vlan-id=0
set 9 default-vlan-id=0
set 10 default-vlan-id=0
set 11 default-vlan-id=0
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip torrent
set download-directory=/flash/rw/disk
#error exporting /ipv6/route/rule
#error exporting /routing/policy/selection
/system logging
add topics=route
Additional:
Even with /system/logging/add topics=route nothing appears in the logs
Can add a mangle rule setting a routing mark OK, but still can't add a route rule
/ip/firewall/mangle/add chain=prerouting action=mark-routing new-routing-mark=foo
/ip/firewall/mangle/export                                                                                                               
/ip firewall mangle                                                                                                                                         
add action=mark-routing chain=prerouting new-routing-mark=foo
/ip/route/rule/add routing-mark=foo                                                                                                      
input does not match any value of routing-mark
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Cannot set routing-mark or table for routing rule

Tue Sep 24, 2019 9:30 am

What if you add a route with that mark?
 
Tris
just joined
Topic Author
Posts: 5
Joined: Thu Jun 07, 2018 11:37 am
Location: UK

Re: Cannot set routing-mark or table for routing rule

Wed Sep 25, 2019 3:54 pm

Interestingly, you don't seem to be able to add a mark to a route at all
Doing tab completion shows 'routing-mark' is missing from the list of attributes on v7:
/ip/route/add
check-gateway comment copy-from disabled distance dst-address gateway pref-src scope target-scope type vrf-interface
vs v6:
/ip route add
bgp-as-path bgp-communities bgp-med bgp-prepend comment disabled dst-address pref-src routing-mark target-scope vrf-interface
bgp-atomic-aggregate bgp-local-pref bgp-origin check-gateway copy-from distance gateway route-tag scope type
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Cannot set routing-mark or table for routing rule

Fri Sep 27, 2019 7:30 pm

Config is changed in v7
/routing table
add fib name=xx vrf=main
/ip route
add dst-address=8.8.8.8^xx gateway=10.155.101.1@main
/ip route rule 
add dst-address=1.1.1.1 action=lookup table=xx
 
vikibhai
just joined
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

Re: Cannot set routing-mark or table for routing rule

Sat Nov 23, 2019 1:25 am

sorry i didnot understad that rule...why 8.8.8.8 dst adress use in route and 1.1.1.1 in route rule...
 
rado3105
Member
Member
Posts: 492
Joined: Sat Jan 12, 2008 11:45 pm

Re: Cannot set routing-mark or table for routing rule

Tue Feb 25, 2020 9:05 pm

How to add this rule to routeros v7?
add comment=domx disabled=yes distance=3 gateway=11.11.7.1 routing-mark=domx
can anybody help?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Cannot set routing-mark or table for routing rule

Wed Feb 26, 2020 12:19 pm

 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Cannot set routing-mark or table for routing rule

Wed Feb 26, 2020 12:30 pm

I am affraid more guidance is needed.
 
rado3105
Member
Member
Posts: 492
Joined: Sat Jan 12, 2008 11:45 pm

Re: Cannot set routing-mark or table for routing rule

Wed Feb 26, 2020 2:45 pm

I tryed it according your mannual and is not working, it doesnt send markedpackets packets using that new way? is it really working? why did you changed, it worked without problem in v6. What does itmean vrf? main?
 
rado3105
Member
Member
Posts: 492
Joined: Sat Jan 12, 2008 11:45 pm

Re: Cannot set routing-mark or table for routing rule

Thu Feb 27, 2020 10:31 am

I cant define vrf in v7, also not in terminal...
You do not have the required permissions to view the files attached to this post.
 
rado3105
Member
Member
Posts: 492
Joined: Sat Jan 12, 2008 11:45 pm

Re: Cannot set routing-mark or table for routing rule

Thu Feb 27, 2020 11:37 am

Config is changed in v7
/routing table
add fib name=xx vrf=main
/ip route
add dst-address=8.8.8.8^xx gateway=10.155.101.1@main
/ip route rule 
add dst-address=1.1.1.1 action=lookup table=xx
router marking is not working in v7. Can you confirm it?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Cannot set routing-mark or table for routing rule

Tue Apr 14, 2020 11:29 am

Yes, routing marks do not work at the moment.
 
SfieszaQ
just joined
Posts: 6
Joined: Tue Jul 06, 2021 12:26 am

Re: Cannot set routing-mark or table for routing rule

Mon Jan 10, 2022 6:29 pm

Hi,
I use V7.1.1 (stable) but it looks like router marking still not working, or I miss something?
I cannot add name of next router marking. There is a chance to do it via Terminal?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Cannot set routing-mark or table for routing rule

Mon Jan 10, 2022 11:59 pm

Please describe what you're trying to do in 7.1.1 and what fails as it looks like they reverted the syntax/behaviour to be like in v6.
 
SfieszaQ
just joined
Posts: 6
Joined: Tue Jul 06, 2021 12:26 am

Re: Cannot set routing-mark or table for routing rule

Tue Jan 11, 2022 1:49 pm

Hi,

In /ip/firewall/mangle in action -> mark routing -> New Routing Mark I cannot add new variable. I have main only.
How could I create new Routing Mark?
I have tried from command line /ip/firewall/mangle> add new-routing-mark a number of combinations but It does not work
Thx in advance
Last edited by SfieszaQ on Tue Jan 11, 2022 1:51 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Cannot set routing-mark or table for routing rule

Tue Jan 11, 2022 1:50 pm

 
SfieszaQ
just joined
Posts: 6
Joined: Tue Jul 06, 2021 12:26 am

Re: Cannot set routing-mark or table for routing rule

Tue Jan 11, 2022 2:11 pm

Hi, It works!
However, there is ability to add new routing from GUI somehow?
 
WizMeister
just joined
Posts: 4
Joined: Wed Dec 01, 2021 5:34 pm

Re: Cannot set routing-mark or table for routing rule

Tue Jan 11, 2022 7:01 pm

Is it safe to assume that if I want to use mangle with a routing mark we need to first add it using
/routing table add name=myMark fib
?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Cannot set routing-mark or table for routing rule

Wed Jan 12, 2022 11:48 pm

there is ability to add new routing from GUI somehow?
Sure, "Routing -> Tables"

Who is online

Users browsing this forum: No registered users and 14 guests