×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Which takes precedence in placing a route on the routing tabe?

Unanswered Question
Jun 25th, 2002
User Badges:
  • Bronze, 100 points or more

I have the following routing table:


Gateway of last resort is not set


R 192.168.12.0/24 [120/10] via 192.168.23.2, 00:00:08, Ethernet0

C 192.168.13.0/24 is directly connected, Serial0

2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D EX 2.2.2.2/32 [170/4729856] via 192.168.13.1, 00:37:59, Serial0

R 2.0.0.0/8 [120/10] via 192.168.23.2, 00:00:08, Ethernet0

3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 3.3.3.3/32 is directly connected, Loopback1

D 3.0.0.0/8 is a summary, 00:40:50, Null0

C 192.168.23.0/24 is directly connected, Ethernet0



As shown, I have two routes to network 2.0.0.0, one learned via RIP and External EIGRP. How come the route 'D EX 2.2.2.2' is used even though it has a higher administrative distance and a higher metric than the one RIP provided? Which takes precedence when placing routes in the routing table; Administraative distance or longest-match prefix?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Anonymous (not verified) Tue, 06/25/2002 - 14:17
User Badges:

Rule is:


1)longest match first


2)Tie breaker is the admin distance.


So, if you want to reach 2.2.2.2/32, the longest match in the routing

table is 2.2.2.2/32, so you select the EIGRP route.



Actions

This Discussion