02-07-2012 12:41 AM - edited 03-10-2019 12:17 PM
Hello, i have an easy question regarding installing routes.
Imagine if i have two PC's with loopbacks.
PC1 have been configured with loopback ip address 192.168.1.1/24
PC2 have been configured with loopback ip address 192.168.1.1/32
routing between them is for example is made with EIGRP, no auto summary. (or static routing whatever)
Why when i issue the command on PC1 "show ip route 192.168.1.1" i see the connected /24 loopback. Why i not see the EIGRP learned /32 route from PC2 ? I should've forgot something basic, i remember that it should select routes by the longest match ? whats means i should see /32 from PC2 ?
Thanks...
Solved! Go to Solution.
12-09-2019 06:24 PM - edited 12-09-2019 06:45 PM
The longest prefix match always wins among the routes actually installed in the routing table, while the routing protocol with the lowest administrative distance always wins when installing routes into the routing table
you guys did not answer his question actually. The two routes have different prefix (192.168.1.1/32 and 192.168.1.1/24), this means they are considered two different destinations and thus both routes should be installed in the routing table but they were not installed. I think the router installed the /24 one because if you look in the routing table, you will see that route also has the letter L. and mask changed to /32 and thus preferring it over the static one since both now have same prefix but different AD
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide