# IP Routing Explained

**URL:** <https://forum.networklessons.com/t/ip-routing-explained/1472>\
**Category:** Lessons Discussion\
**Created:** [February 3, 2017, 2:23pm UTC](https://forum.networklessons.com/t/ip-routing-explained/1472 "2017-02-03T14:23:59Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [August 29, 2020, 5:52am UTC](https://forum.networklessons.com/t/ip-routing-explained/1472/28 "2020-08-29T05:52:10Z")

</div>

Hello Kevin

First of all I had to remove the image in your post because it violates our [Terms of Service](https://forum.networklessons.com/t/terms-of-service/4). Sorry about that! But I will answer your question.

The question states, if R1 is sending traffic to 192.168.10.45, the traffic is sent through which interface? In other words, which of the entries in the routing table will be used? Of course, the specific destination IP address matches **192.168.10.0/24 fa1/0** and **192.168.0.0/16 fa1/1** and **192.168.10.32/27 fa0/1**. But the rule that is always used for routing is **match the most specific prefix**. In other words, match the routing entry that has the smallest range, or the smallest subnet size.

The most specific prefix in this case is 192.168.10.32/27 because it has a /27 subnet.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/ip-routing-explained/1472)._
