Routing selection with two gateways

I don’t know how to reach both my static routes.
I can only reach first default static route. Second route is unreacheable, only if I disconnect first gateway I can route addresses.
I tried to set distance, scope and target scope but nothing solved.
Where am I going wrong?
This is my config:

 ip address print 
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                              
 0   ;;; default configuration
     192.168.88.1/24    192.168.88.0    ether4-slave-local                     
 1   ;;; LANmnanagement
     192.168.0.1/24     192.168.0.0     ether3-slave-local                     
 2   ;;; WANarpanet2
     192.168.6.2/24     192.168.6.0     ether1-gateway                         
 3   ;;; WANarpanet3
     192.168.7.2/24     192.168.7.0     ether2-master-local                    
ip route print detail 
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 0 A S  dst-address=0.0.0.0/0 gateway=192.168.6.1 
        gateway-status=192.168.6.1 reachable via  ether1-gateway distance=1 
        scope=10 target-scope=10 

 1   S  dst-address=0.0.0.0/0 gateway=192.168.7.1 
        gateway-status=192.168.7.1 reachable via  ether2-master-local 
        distance=1 scope=10 target-scope=10 

 2 ADC  dst-address=192.168.0.0/24 pref-src=192.168.0.1 
        gateway=ether2-master-local 
        gateway-status=ether2-master-local reachable distance=0 scope=10 

 3 ADC  dst-address=192.168.6.0/24 pref-src=192.168.6.2 gateway=ether1-gateway 
        gateway-status=ether1-gateway reachable distance=0 scope=10 

 4 ADC  dst-address=192.168.7.0/24 pref-src=192.168.7.2 
        gateway=ether2-master-local 
        gateway-status=ether2-master-local reachable distance=0 scope=10 

 5 ADC  dst-address=192.168.88.0/24 pref-src=192.168.88.1

What you try to do?

You can have only one “0.0.0.0/0” route active whithout connection-mark, not both.

If you want reach both 192.168.6.1 and 192.168.7.1 simply not add route.
Add 192.168.6.2 and 192.168.7.2 as address of interface, automaticaly create the routes.

Per favore, non ti offendere.

Solo una cosa: ma ARPANET (tra l’altro nome già registrato da un altra azienda italiana con brevetto internazionale e che pure lavora nel campo delle comunicazioni… se se ne accorge…) come nome della rete aziendale, non è un po’ troppo pretenzioso?
Per trovare il sito ci ho messo 10 minuti, non ti dico che rigiri mi ci sono voluti…
Ovviamente se scrivi arpanet su google, viene fuori la vera ARPAnet…

In realtà il nome è ArpanetWifi. Arpanet è solo il mio username qui sul forum.
Non sapevo esistesse un’azienda italiana con il nome di Arpanet.
Nessuna pretesa comunque, abbiamo scelto ArpanetWifi semplicemente per la grande stima nei confronti del progetto di allora.
Il tuo Wisp come lo hai chiamato?

Nell’imagine sul forum leggo solo ARPANET,
se c’era scritto arpanetwifi lo trovavo subito.


Pure LA MIA AZIENDA si chiama con WiFi in fondo tanto… per cambiare…
Prima di registrare il nome abbiamo fatto una ricerca all’ufficio marchi e brevetti.

Per quanto riguarda ARPANET è un azienda di Milano che ha già registrato il marchio nel 2006 e paga diritti di esclusiva per l’Italia.

http://www.arpanet.it/

But about the problem, you have solved?

Ma qual è il tuo problema?
Fammi capire

Ma… :open_mouth: nessuno…
Mi sa che mi hai frainteso :laughing:



What you try to do?

You can have only one “0.0.0.0/0” route active whithout connection-mark, not both.

If you want reach both 192.168.6.1 and 192.168.7.1 simply not add route.
Add 192.168.6.2 and 192.168.7.2 as address of interface, automaticaly create the routes.

“Routing selection with two gateways”

You have solved the problem after my suggestions?

Ah forse ho capito: mi hai chiesto come si chiama la mia azienda…
ho corretto il post, in effetti si poteva fraintendere:

L’azienda si chiama con WiFi in fondo tanto… per cambiare…

Sembrava riferito alla tua azienda, il post è diventato:

Pure LA MIA AZIENDA si chiama con WiFi in fondo tanto… per cambiare…

Guys

Remember this is a english forum.
In your country you have routerOS italian forum

sent from my mobile phone using tapatalk

Impolite, las partes importantes están en Inglés.

You can have wrote “Please, remember this is a english forum.” without comments: “In your country you have routerOS italian forum”

Volver al foro ryohnosuke.

sent from my Asus CG8250 using RB493G with R52nM, Logitech G510 keyboard and G700s mouse, Samsung SyncMaster S24B300 with Microsoft Windows 7 Professional SP3 and Microsoft Internet Explorer 11

A little misunderstanding with my italian co-worker. Everything is ok! We are talking about company names, nothing else.
Anyway I think problem is connection marking as rextended said.

But I don’t know how to mark connections!

Why to mark the connections?

Let me know what you want try to achieve.

[…] removed for duplicate

Ok, I try to explain network scenario.
I’m trying to reach few stations into 2 different networks (192.168.10.x and 192.168.20.x)
The 2 network gateways has following routing table:
1st gw-destination network=192.168.10.0 subnet=255.255.255.0 gateway=192.168.6.10
2nd gw-destination network=192.168.20.0 subnet=255.255.255.0 gateway=192.168.7.10

192.168.6.10 and 192.168.7.10 are network access points.
Now with my routerboard (directly connected to main gateways), giving an example, I can route default active route. While second one is unreacheable and viceversa.

I hope I was clear!

Allora, non serve marchiare nessuna rotta,
cancella tutte le regole non dianmiche che hai fatto nelle rotte e poi metti queste:

If I understand right your needs:

clean all the static route and paste this on terminal.

/ip route
add distance=1 dst-address=192.168.10.0/24 gateway=192.168.6.10 pref-src=192.168.6.2
add distance=1 dst-address=192.168.20.0/24 gateway=192.168.7.10 pref-src=192.168.7.2

poi ovviamente devi aggiungere questa, sostituendo a l’ip del gateway da cui si può raggiungere internet.

Replace with your internet source.

/ip route
add distance=1 dst-address=0.0.0.0/0 gateway=<gateway-to-internet>

You are getting better and better. Do not forget the rest next time :slight_smile:.

You can count on!


I start to hate the default message of tapatalk, you notice? :laughing:

these rules are set into my internet gateways. So I have to remove them and set into my routerboard?

add distance=1 dst-address=192.168.10.0/24 gateway=192.168.6.10 pref-src=192.168.6.2
add distance=1 dst-address=192.168.20.0/24 gateway=192.168.7.10 pref-src=192.168.7.2

then I have 2 internet sources so:

add distance=1 dst-address=0.0.0.0/0 gateway=<first-gateway-to-internet>
add distance=1 dst-address=0.0.0.0/0 gateway=<second-gateway-to-internet>

correct?

edit: now it works!
thanks to rextended