Let's say I have a router with three interfaces.
Interface #1 is 10.x.x.x /8
Interface #2 is 142.100.48.x /20
Interface #3 is 142.100.56.8 /21
I'm trying to send a file to [dest]142.100.57.5 from [src]10.0.0.5
When the router receives my first packet it will look at the destination address and compare to it's routing table then send it out to the correct network. However, in this situation Interface #2 and #3 are very similar and the destination address could be for either network.
So typically, how will the router deal with this? Will it go down the table matching the most network bits and select the winning route based on that or will it send it out on the first one that passes?