The router selects the route with the longest prefix that matches the destination IP address. In this case, 10.0.1.0/24 is the most specific route matching 10.0.1.45, as it has a subnet mask of 255.255.255.0. This means the router will forward the packet to the next-hop IP address 192.168.1.3. The other routes are less specific and therefore not chosen:
10.0.0.0/8 (255.0.0.0) is a broader match.
10.0.0.0/16 (255.255.0.0) is more specific than /8 but less specific than /24.
0.0.0.0/0 is the default route used when no other routes match.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the term 'longest prefix match' mean in routing?
Open an interactive chat with Bash
What are subnet masks and why are they important in routing?
Open an interactive chat with Bash
What is a default route in a routing table?
Open an interactive chat with Bash
Cisco CCNA 200-301
IP Connectivity
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access