Community discussions

MikroTik App
 
vikibhai
just joined
Topic Author
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

how add multiple route tables, route rules in v7 beta

Fri Nov 22, 2019 6:03 pm

i make some routes tabel and making routing mark rule in mangle.....my question how i can use this route marking in /ip route ....i want to pass this marking traffic through specific gateway..
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how add multiple route tables, route rules in v7 beta  [SOLVED]

Fri Nov 22, 2019 7:13 pm

 
vikibhai
just joined
Topic Author
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

Re: how add multiple route tables, route rules in v7 beta

Sat Nov 23, 2019 1:30 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...
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how add multiple route tables, route rules in v7 beta

Mon Nov 25, 2019 11:56 am

It is just an example to show the syntax. Use addresses you want to route.
 
vikibhai
just joined
Topic Author
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

Re: how add multiple route tables, route rules in v7 beta

Mon Nov 25, 2019 12:46 pm

sir...for example in mangle i routing marked a traffic with the name "Line1"..... and my gateway is 192.168.1.1 ..... nw tel me which rules will b add in /ip route sectiin and /ip route rule section...then i will totaly understand about it
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how add multiple route tables, route rules in v7 beta

Mon Nov 25, 2019 12:55 pm

Show what IP routes and route rules you had on v6 and I will show you how they should look like in v7.
 
vikibhai
just joined
Topic Author
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

Re: how add multiple route tables, route rules in v7 beta

Mon Nov 25, 2019 6:12 pm

/ip route
add check-gateway=ping distance=1 gateway="EXTRA PPPOE" routing-mark=G-2
add check-gateway=ping distance=1 gateway=192.168.100.1 routing-mark=G-SQ
add check-gateway=ping distance=1 gateway=103.225.xx.xx routing-mark=CIR
add check-gateway=ping distance=1 gateway=103.225.xx.xx
add check-gateway=ping distance=2 gateway=192.168.100.1
add check-gateway=ping distance=3 gateway="EXTRA PPPOE"
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how add multiple route tables, route rules in v7 beta

Tue Nov 26, 2019 4:13 pm

/routing table
add name=G-2 vrf=main
add name=G0SQ vrf=main
add name=CIR vrf=main

/ip/route
add gateway="EXTRA PPPOE@main" dst-address=0.0.0.0/0^G-2
add gateway=192.168.100.1@main dst-address=0.0.0.0/0^G-SQ
add gateway=103.225.xx.xx@main dst-address=0.0.0.0/0^CIR
...
 
vikibhai
just joined
Topic Author
Posts: 19
Joined: Mon Sep 08, 2014 7:44 pm

Re: how add multiple route tables, route rules in v7 beta

Tue Nov 26, 2019 4:56 pm

thanks alotttt....
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: how add multiple route tables, route rules in v7 beta

Tue Nov 26, 2019 6:18 pm

I'm wondering if it's definitive. It's not major obstacle or anything, but IMHO separate paramers look better than these "magic suffixes".
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how add multiple route tables, route rules in v7 beta

Wed Nov 27, 2019 11:48 am

We are open to suggestions while v7 is in beta state.
 
andriys
Forum Guru
Forum Guru
Posts: 1527
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: how add multiple route tables, route rules in v7 beta

Wed Nov 27, 2019 1:02 pm

Yep, +1 for separate parameters. When being separate, parameters are somewhat self-documenting. At the very least it is immediately obvious the thing actually exists in this case.
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: how add multiple route tables, route rules in v7 beta

Thu Nov 28, 2019 1:44 am

^^ Exactly this, I like how parameters in RouterOS have nice descriptive names, it makes it easy to understand and intuitive. So at least table=<routing table name> would be nice, instead of appending ^<routing table name> to destination.

I'm not sure about VRFs, my knowledge has serious holes there. I see there's already something with @ in current RouterOS, but it looks like the meaning is different (?).

Who is online

Users browsing this forum: No registered users and 48 guests