Community discussions

MikroTik App
 
Creepounette
just joined
Topic Author
Posts: 6
Joined: Mon Nov 28, 2022 11:20 am
Location: Lille, Nord, France

Routing Mark v6.49.3 to V7.4.1

Thu Dec 01, 2022 11:08 am

Hi everyone !
I don't know how to modify my v6.49.3 script to v7.4.1
i have this :

/ip route
add distance=1 dst-address= XXXXXXX /32 gateway=XXXXXXX \
routing-mark= XXXXXX
add check-gateway=ping distance=1 gateway=1.0.0.1
add distance=1 gateway=10.3.0.1
add check-gateway=ping distance=2 gateway=8.8.4.4
add check-gateway=ping comment="Default FAI1" distance=10 gateway=10.3.0.1
add check-gateway=ping comment="Default FAI2" distance=20 gateway=\
192.168.1.254
add distance=1 dst-address=1.0.0.1/32 gateway=10.3.0.1 scope=10
add distance=2 dst-address=XXXXXXX/32 gateway=XXXXXXX scope=10
/ip route rule
add disabled=yes dst-address=0.0.0.0/0 routing-mark=Inbound_FAI1_route \
src-address=0.0.0.0/0 table=Inbound_FAI1_route

It told me "expected end of command (line 537 column 5)"
who is the line " routing-mark=Inbound_FAI1_route"


i don't know why i can't lunch the script , i tried to modify by using the wiki and adding "/routing table" .

If you can help me will be greatful ! Ty and have a nice day !
Last edited by Creepounette on Wed Jan 11, 2023 4:47 pm, edited 1 time in total.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Routing Mark v6.49.3 to V7.4.1

Thu Dec 01, 2022 2:37 pm

In v7, route's parameter is routing-table. And you need to define the table first:
/routing table
add name=Inbound_OVH_route fib
 
Creepounette
just joined
Topic Author
Posts: 6
Joined: Mon Nov 28, 2022 11:20 am
Location: Lille, Nord, France

Re: Routing Mark v6.49.3 to V7.4.1

Thu Dec 01, 2022 2:52 pm

In v7, route's parameter is routing-table. And you need to define the table first:
/routing table
add name=Inbound_OVH_route fib
/routing table
add name=Inbound_OVH_route fib
/routing rule
add disabled=yes dst-address=0.0.0.0/0
src-address=0.0.0.0/0 table=Inbound_OVH_route
/ip route
add distance=1 dst-address=94.23.249.81/32 gateway=192.168.1.254 \
table=Inbound_OVH_route

like this ? replacing routing-mark by that ?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Routing Mark v6.49.3 to V7.4.1

Thu Dec 01, 2022 6:21 pm

/ip route
add distance=1 dst-address=94.23.249.81/32 gateway=192.168.1.254 routing-table=Inbound_OVH_route

Who is online

Users browsing this forum: Bing [Bot], CGGXANNX, normis and 44 guests