Community discussions

MikroTik App
 
antkamidiv
just joined
Topic Author
Posts: 24
Joined: Fri Jun 22, 2012 12:22 pm
Contact:

Routing

Mon Jun 25, 2012 12:59 pm

Hi all!
What src-address do packets generated by router itself have?

Illustration

Addresses:
1. address=1.1.1.1/24 interface=ether1-gateway
2. address=2.2.2.1/24 interface=ether5-local

Route table:
1. Active dst-address=0.0.0.0/0 gateway=1.1.1.254
2. Active dst-address=0.0.0.0/0 gateway=1.1.1.254 routing-mark=R1
3. Active dst-address=0.0.0.0/0 gateway=2.2.2.254 routing-mark=R2

Route rules:
1. src-address=1.1.1.1 table=R1
2. src-address=2.2.2.1 table=R2


If all 3 routes are active, then outbound packets go through specific gateway. It is ok.
But if I deactivate the second route, the outbound traffic will go through the first gateway according to the 1 route! I don't understand why?
Why the rule 2 aren't implemented? It is obvious I have a misunderstanding of the routing rules.
Thx!!!
Last edited by antkamidiv on Mon Jun 25, 2012 1:33 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7198
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Routing

Mon Jun 25, 2012 1:31 pm

If you deactivate second route then there is no rotues in R1 routing table, so destination is resolved using main routing table.
 
antkamidiv
just joined
Topic Author
Posts: 24
Joined: Fri Jun 22, 2012 12:22 pm
Contact:

Re: Routing

Tue Jun 26, 2012 4:49 pm

Thank you!!!