cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8100
Views
7
Helpful
15
Replies

Installing routes on route table.

from88
Level 4
Level 4

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...

15 Replies 15

from: https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/8651-21.html

 

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