▱HAMILTON TECH LAB
← Networking Lab
NETWORKING LAB · LESSON 4 OF 4

Routing, OSPF and NAT

Read the explanation, try the exercise, then answer the quiz.

Understand the concept

Routers forward packets between IP networks. A routing table selects a next hop based on destination prefix, longest-prefix matching, and applicable route-selection rules.

OSPF is a link-state routing protocol; its path selection uses interface cost. NAT changes address information, while PAT can distinguish many inside sessions using ports.

TRY IT YOURSELF

Practice task

Use show commands in a lab to compare connected, static, and OSPF-learned routes, then trace traffic end to end.

CHECK YOUR UNDERSTANDING

Quick quiz

What usually decides between two matching routes of different prefix lengths?