ccna-notes

Routing Fundamentals

Routing is the process that routesrs use to determine the path that IP packets should take over a network to reach their destination. Routers store routes to all of their known destinations in a routing table. When routers receibe packets, they look in the routing table to find the best route to forward that packet.

Table of contents

Routing Methods

There are two main routing methods:

Routes

A route tells the router to:

Routing Tables

Topology of the network used throughout these notes

Pre-config

For simplicity we’ll only show R1’s config. Configuring router R1's interfaces

Connected and Local routes

`show ip route` command in action

Routing table's local and connected IPs (automatically added)

Connected Routes

Local Routes

Route Selection

R1 wants to send a packet with Destination IP to itself (192.168.1.1)

Both local and connected IP addresses match the packet destination

A packet destined for 192.168.1.1 is matched by 2 routes in the example above:

It will choose the most specific matching route.