Exclusively for TechExams members for Infosec Boot Camps starting before April 30, 2026
Forsaken_GA wrote: » Longest match on the prefix wins. ie, /32 routes will be taken over /24's which will be taken over /16's.
Forsaken_GA wrote: » Longest match on the prefix wins. ie, /32 routes will be taken over /24's which will be taken over /16's. So look at the ip, figure out which routes in the routing table it matches. If it can match more than one, look to see who has the longest prefix. That's the route it will take.
ChickenNuggetz wrote: » 172.16.4.3 = 172.16.1.0/16 (bottom 2 routes are applicable, but this one is the best) Does this sound right?
Forsaken_GA wrote: » Actually, I think that ones a typo, as 172.16.1.0/16 isn't a valid prefix, that should be 172.16.0.0/16. But otherwise, yes, you're correct. If an IP can match multiple routes, then the prefix length is the tiebreaker, and longest match always wins.
Exclusively for TechExam members. Applies to boot camps starting before April 30, 2026.