Loopback Cert Guide
Lab 3.2Routing decisions

Longest match first, then AD, then metric.

R1 hears overlapping routes from OSPF, EIGRP and RIP neighbors, plus its own statics. Fire a packet at any address and see which entries match, which one wins, and which offers never made it into the table.

  • 3.1Interpret the components of routing table
  • 3.2Determine how a router makes a forwarding decision by default
  • 3.2.aLongest prefix match
  • 3.2.bAdministrative distance
  • 3.2.cRouting protocol metric
01Live network

Four sources, one decision.

The packet tester opens in Inspect: type any address, or click a suggestion, and the green cable shows where R1 sends it. Click R1 to see every route it heard and why each one won or lost, a neighbor to withdraw its routes, a cable to unplug it.

Live network · routing table · simulated
  • R1 port up
  • Port down
  • Shut down

Simulated: the routers, addresses (10.x.x.x and 172.16.x.x private space, 192.168.30.0/24) and console output are Loopback's simulation of an IOS router. Metrics (OSPF cost, EIGRP composite metric, RIP hop count) are made up for the exercise; administrative distances are Cisco's defaults.

02Tasks

Solve the task and the network checks your work.

Each task loads its own starting point onto the network. Solve it from the console or with clicks; the checks tick live, and you see one model answer when you're done.

    03What happens if

    Predict the result, then watch it happen.

    Eight lookups that trip people up: a longer prefix from a worse protocol, two protocols for one prefix, a tie, a metric that doesn't matter. Pick where the packet goes, then load it on the network.

      04Drills

      A new question every round, so nothing is memorized.

      Read a route line field by field, build the table from competing offers, find the longest match and recall the default distances. Build a streak.

      05Recall sheet

      The whole topic on one sheet.

      The numbers, orders and commands the network runs on. Cover a column and say it before you look.

      The order

      1. Into the table: for each prefix, lowest administrative distance wins.
      2. Same AD (same protocol): lowest metric wins. A tie on both: all of them, load-shared.
      3. Out the door: for each packet, the longest matching prefix in the table wins.
      4. Nothing matches and no default route: dropped.

      AD and metric only compare routes to the exact same prefix. A /24 and a /22 are different routes and both go in.

      Default AD

      Connected0
      Static1
      eBGP20
      EIGRP internal90
      OSPF110
      RIP120
      EIGRP external170
      iBGP200
      Unknown255

      Metrics

      OSPF
      Cost, from interface bandwidth
      EIGRP
      Composite: bandwidth and delay by default
      RIP
      Hop count, 15 is the most

      Metrics of different protocols are never compared with each other.

      One line, every field

      O    172.16.0.0/16 [110/20] via 10.0.12.2, 00:05:21, GigabitEthernet0/1
      OProtocol code (O OSPF, D EIGRP, R RIP, S static, C connected, L local, * candidate default)
      172.16.0.0Prefix
      /16Network mask
      [110/20][Administrative distance / metric]
      10.0.12.2Next hop
      00:05:21Time since the route was learned
      Gi0/1Exit interface

      Gateway of last resort is 10.0.14.2 to network 0.0.0.0: where packets go when nothing longer matches.

      Commands

      Verify

      show ip route
      show ip route ospf
      show ip route 172.16.8.9
      show ip interface brief

      Change the choice

      router ospf 1
       distance 80
      ip route 172.16.8.50 255.255.255.255 10.0.12.2
      ip route 10.50.0.0 255.255.0.0 10.0.14.2 115

      All of these work in R1's console, along with ?, Tab, do and | include.

      Jump to a page

      1. Gi0/1HomeconnectedHow the exam works and a sample of every station
      2. Gi0/2Practice Testsconnected18 tests by domain, every answer explained
      3. Gi0/3Flashcardsconnected401 cards on every objective, plus your own
      4. Gi0/4CLI LabconnectedCommand drills and config tasks, checked like IOS
      5. Gi0/5Concept LabsconnectedYou're in Lab 3.2 Routing decisions. All labs.
      6. Gi0/6Study PlanconnectedAll 53 objectives, graded from your progress