Skip to content

Glossary: Networking Basics

longest prefix match

Also written: most specific route

The rule for choosing between routes: when several routes match an address, the one with the longest prefix wins. So a /26 route beats the default route (/0), which is used only when nothing else matches.

Where the book teaches it

Related terms

routing tabledefault routeprefix lengthip route get