Buffl

Day 11 Routing Fundamentals & Static Routing

as
by abdullah S.

Main Concepts



What is Routing? Routing is the process that routers use to determine the path that IP packets should take over a network to reach their destination. Routers store routes to all known destinations in a routing table, which functions similarly to a switch's MAC address table but operates at Layer 3 with IP addresses instead of MAC addresses.

The Routing Table A routing table is essentially a set of instructions that tells the router how to forward packets. Each route provides guidance: to reach destination network X, send the packet to next-hop Y (the next router in the path), or if the destination is directly connected, send the packet directly to that destination.


Connected Routes (Code: C) Connected routes are automatically added to the routing table when you configure an IP address on an interface and enable it with the NO SHUTDOWN command. These routes point to the network that the interface is directly connected to, using the actual netmask configured on the interface.


Local Routes (Code: L) Local routes are also automatically added when you configure and enable an interface. These routes point to the exact IP address configured on the interface and always use a /32 prefix length, which specifies only that single IP address. Local routes tell the router that packets destined for this address are meant for the router itself.


Static Routes (Code: S) Static routes are manually configured by a network administrator to tell the router how to reach remote networks that are not directly connected. Unlike connected and local routes, static routes are not added automatically and must be explicitly configured.


Default Routes A default route is a route to 0.0.0.0/0, which matches all possible IP addresses. It serves as the "route of last resort" - if no more specific route matches a packet's destination, the default route is used. This is commonly used to direct traffic toward the Internet.

Author

abdullah S.

Information

Last changed