What is Routing?
Routing is the process of forwarding data packets between different networks based on their
destination IP addresses. Devices that perform routing are called routers.
Routers maintain a routing table, which contains information about different networks and how
to reach them. They use this table to make forwarding decisions for incoming packets.
Types of Routing
Routing can be classified into three main types:
1. Static Routing
Definition:
Static routing is when the network administrator manually configures routes in the routing table.
These routes don’t change unless manually modified.
Best Used For:
• Small, simple networks
• Networks with stable topology
• Lab/testing environments
Advantages:
• Simple to configure
• No routing protocol overhead
• More secure (no advertisement of routes)
Disadvantages:
• Not scalable
• Doesn’t adapt to network changes automatically
Example Scenario:
You have two routers (R1 and R2) directly connected:
R1 ——— R2
R1 IP: [Link]/24
R2 IP: [Link]/24
Command on R1 to reach R2’s network:
R1(config)# ip route [Link] [Link] [Link]
2. Dynamic Routing
Definition:
Dynamic routing uses routing protocols that allow routers to communicate with each other and
automatically update routing tables based on network changes.
Best Used For:
• Large, scalable networks
• Networks where topology can change frequently
Advantages:
• Automatically updates routes
• Scalable and efficient
• Adjusts to link failures
Disadvantages:
• More CPU/RAM usage
• More complex to configure
• Can be less secure if not managed properly
Common Dynamic Routing Protocols:
• RIP (Routing Information Protocol) – Uses hop count
• EIGRP (Cisco proprietary, fast and efficient)
• OSPF (Open standard, uses cost as metric)
• BGP (Used for internet routing between ISPs)
Example using RIP:
Routers R1 and R2 are connected.
On both routers:
Router(config)# router rip
Router(config-router)# version 2
Router(config-router)# network [Link]
Router(config-router)# network [Link]
This allows both routers to share routes dynamically.
3. Default Routing
Definition:
A default route is a “catch-all” path used when the router doesn’t have a specific route in its table
for the destination IP.
Best Used For:
• Edge routers connecting to the internet
• Small networks with one path to the outside world
Advantages:
• Saves routing table space
• Easy to configure
Disadvantages:
• All unknown traffic is sent to one place
• Not suitable for complex environments
Example Scenario:
Router connects internal network to the Internet.
Router(config)# ip route [Link] [Link] [Link]
This sends all unknown traffic to the next-hop router ([Link]), usually your ISP.
Summary Table
Routing Manual/Auto Best For Example Scalability Self-
Type Protocols Healing
Static Routing Manual Small networks N/A
Dynamic Automatic Large networks RIP, EIGRP,
Routing OSPF
Default Manual Gateway to N/A
Routing Internet (simple)