cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
0
Helpful
3
Replies

Route selection query on cisco router

knaik99
Level 1
Level 1

if  Cisco router has connected route as 10.10.10.0/24 and eigrp route as 10.10.10.0/30 in its routing table and we want to go to user 10.10.10.2 then Cisco router would select which route ?

as per me ,selected route  is eigrp route due to prefix length

please share explanation and Cisco article also on such issue.

3 Replies 3

Hello,

 

you are correct, longest prefix wins.

 

Check the article below:

 

Route Selection in Cisco Routers

 

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

friend for your case and for feature use 
show ip route 10.10.10.2 
this give you exactly the path the router will elect to forward the packet.

Hello


@knaik99 wrote:

if  Cisco router has connected route as 10.10.10.0/24 and eigrp route as 10.10.10.0/30
as per me ,selected route  is eigrp route due to prefix length


Correct longest match is always preferred before admin distance. 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card