Routing distance and subnets priority
Posted: Thu Feb 12, 2015 3:08 pm
If I understand correctly, when you create a new route, "distance" makes priority.
Eg. if you have two same route to different interface, route with smaller priority will have advantage and will be "active" route.
Example:
add comment="Route 1" distance=5 dst-address=10.10.10.0/24 gateway=Kon1
add comment="Route 2" distance=2 dst-address=10.10.10.0/24 gateway=Kon2
So, all packet to any address 10.10.10.0/24 will go on gateway Kon2 (distance 2)
BUT
But, if you have to different subnet mask / bits, but same ip range - proprity in distance is ignored!
Example:
add comment="Route 1" distance=5 dst-address=10.10.10.0/24 gateway=Kon1
add comment="Route 2" distance=2 dst-address=10.10.10.0/24 gateway=Kon2
add comment="Route 3" distance=1 dst-address=10.10.0.0/16 gateway=Kon3
All route to 10.10.10.0/24 will go on Kon2 anyway, but distance on Kon3 is "1" but subnet is 16bit and distance is igonred!
Is that standard behaviour in Mikrotik routers?
Eg. if you have two same route to different interface, route with smaller priority will have advantage and will be "active" route.
Example:
add comment="Route 1" distance=5 dst-address=10.10.10.0/24 gateway=Kon1
add comment="Route 2" distance=2 dst-address=10.10.10.0/24 gateway=Kon2
So, all packet to any address 10.10.10.0/24 will go on gateway Kon2 (distance 2)
BUT
But, if you have to different subnet mask / bits, but same ip range - proprity in distance is ignored!
Example:
add comment="Route 1" distance=5 dst-address=10.10.10.0/24 gateway=Kon1
add comment="Route 2" distance=2 dst-address=10.10.10.0/24 gateway=Kon2
add comment="Route 3" distance=1 dst-address=10.10.0.0/16 gateway=Kon3
All route to 10.10.10.0/24 will go on Kon2 anyway, but distance on Kon3 is "1" but subnet is 16bit and distance is igonred!
Is that standard behaviour in Mikrotik routers?