Compare cert salaries and plan your next career move
networker050184 wrote: » Thats they way the routing logic is built. The longest match is the first criteria checked followed by AD then metric. Those two overlapping prefixes could also go to different destinations.
solnsusie wrote: » hiit says in the ICND1 book of Wendell Odom page 483 that, "when a particular destination IP address matches more than one route in a router's routing table, the router uses the most specific route, in other words, the route with the longest prefix length." which means if an ip address 172.16.1.2 finds 2 routes, 1) 172.16.1.0/24 with hop count 2, and 2)172.16.0.0/22 with hop count 1, it will take the route with the 24 mask, so my question is 1st, what is the logic that it will use with the bigger prefix? and 2nd, why is it choosing the route with the longer prefix mask over the route with the less hop count??
Monkerz wrote: » Suppose that router (R1) is summarizing 172.16.0.0/22 out Ser0/0 to R2, and also has a route to 172.16.1.0/24 to R3 out Ser0/1 that is 2 hops away. Would you want the packets coming from R2 destined to 172.16.1.4/24 to route to R1's Null0 rather than to R3, because Null0 is local and theoretically closer?
solnsusie wrote: » thanks for your reply.so what you saying is, that if I have 2 routes one with EIGRP and a 2nd with RIP, and the rip has a bigger prefix it will choose the RIP route? even its not using some good features like VLSM? Just because it has a bigger prefix??? that’s interesting!!!! And sad!!!!
ehnde wrote: » Someone correct me if I'm wrong, but if you have two routes, one EIGRP and the other RIP, the router will choose the EIGRP route because it has an administrative distance of 90. RIP has an administrative of 120. Your book scenario with a more specific prefix would apply when comparing two rip routes. Maybe I'm wrong
Monkerz wrote: » I believe AD is considered if both routes have the same prefix.
solnsusie wrote: » I’m talking specifically with different prefix!!!
Monkerz wrote: » Ok, we are just confusing you. If you have to routes using the same routing protocol, the longest prefix is used to determine the best route.
Monkerz wrote: » If two routing protocols are used, AD is used find the best route. The router prefers routes with a lower AD because they are more believable.
solnsusie wrote: » so back to my question, why will it take the route with the longer prefix when it has more hop counts??
solnsusie wrote: » even with longer prefix? is this final for the exam???
ehnde wrote: » If you're wondering WHY the more specific route is chosen, consider this: /22 means 10 host bits. 2^10 - 2 = 1024 addresses. /24 means 8 host bits. 2^8 - 2 = 254 addresses. with 1024 possible hosts to contend with, the /22 would be busier, so it would be more efficient to send to the /24.
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.
networker050184 wrote: » No, the FIRST thing checked is the longest match. Once that is decided, and only then, is the AD consulted. Once that is decided the metric (hop count for RIP) is used.
networker050184 wrote: » Yes, you are wrong.
networker050184 wrote: » What? It has nothing to do with who would be busier.
ehnde wrote: » I will admit I had to do some reviewing to get to the bottom of this. Route specificity takes preference over administrative distance. As you may recall, static routes have an AD of 1. If you have a static default route of 0.0.0.0/0 and another route with a higher cost (EIGRP, RIP, whatever) to 192.168.1.0/24, you wouldn't want traffic intended for the 192.168.1.0 network going to 0.0.0.0 just because 0.0.0.0 has a lower AD. Thank you for the refresher
solnsusie wrote: » so what are you saying is? it will use the 0.0.0.0/0 route, or hte 192.168.1.0/24 route? isn't the /0 a lower AD? i dont get it! in the Odom ICND1 book it says that it won't use the 0.0.0.0/0 route over the 192.168.1.0/24. and i dont know why, this is another question,
[B]ip route 0.0.0.0 0.0.0.0 170.170.3.8[/B]
RC--------------------------RA--------------------------RB-Host 10.1.1.1 <------10.0.0.0/8 10.1.1.0/24-------->
networker050184 wrote: » Ok, try and take a look at this crappy diagram.RC--------------------------RA--------------------------RB-Host 10.1.1.1 <------10.0.0.0/8 10.1.1.0/24--------> RouterA (RA) receives a packet destined for host 10.1.1.1. When it look in its routing table it sees a route for 10.0.0.0/8 with AD of 5 and a route for 10.1.1.0/24 with AD of 110. If the router didn't look for the longest match and used AD only it would send the packet to RC which would be the incorrect destination.
solnsusie wrote: » if the packet can be reached through both routers why will it choose the route with the higher mask which use RIP routing protocol and losing the benefits of let’s say EIGRP???
ehnde wrote: » Your keyword here is if. Yes sometimes two or more different routes can lead to the same destination. But not always. networker050184 just gave a specific example of how this could be incorrect. Taking the correct path is more important than getting there the fastest.
Compare salaries for top cybersecurity certifications. Free download for TechExams community.