Routing Table Simulator
Learn how routers make forwarding decisions with our interactive routing table simulator. Practice longest prefix matching, understand routing protocols, and simulate real network scenarios.
Routing Table Simulator
Network Scenario
Current Routing Table
| Network | Next Hop | Interface | Protocol | Metric | Admin Distance |
|---|---|---|---|---|---|
| 203.0.113.0/30 | directly connected | wan0 | connected | 0 | 0 |
| 192.168.1.0/24 | directly connected | eth0 | connected | 0 | 0 |
| 10.0.0.0/24 | directly connected | eth1 | connected | 0 | 0 |
| 172.16.0.0/16 | 10.0.0.2 | eth1 | static | 1 | 1 |
| 0.0.0.0/0 | 203.0.113.1 | wan0 | static | 1 | 1 |
Network Interfaces
| Interface | IP Address | Network | Status |
|---|---|---|---|
| eth0 | 192.168.1.1/24 | 192.168.1.0/24 | up |
| eth1 | 10.0.0.1/24 | 10.0.0.0/24 | up |
| wan0 | 203.0.113.2/30 | 203.0.113.0/30 | up |
Packet Forwarding Simulation
Add Custom Route
How Routing Works
Longest Prefix Match
Routers use the most specific (longest prefix) route that matches the destination IP address.
Example: For destination 192.168.1.100, a /24 route is preferred over a /16 route.
Administrative Distance
When multiple routes have the same prefix length, the route with the lowest administrative distance is preferred.
Connected (0) > Static (1) > EIGRP (90) > OSPF (110) > RIP (120)
Metric
If routes have the same prefix length and administrative distance, the route with the lowest metric is chosen.
Metrics represent the "cost" of using a particular path.
Default Route
A route to 0.0.0.0/0 matches all destinations and is used when no more specific route exists.
Often called the "gateway of last resort".
Understanding Router Forwarding Decisions
Routing Table Basics
- Network: Destination network address and prefix length
- Next Hop: IP address of the next router in the path
- Interface: Local interface to use for forwarding
- Metric: Cost or distance to the destination
- Protocol: How the route was learned
Route Selection Process
- 1. Longest Prefix Match: Most specific route wins
- 2. Administrative Distance: Most trusted source
- 3. Metric: Lowest cost path
- 4. Load Balancing: Equal cost paths (if supported)
Common Routing Scenarios
🏠 Basic Home/Office
Simple network with:
- • Local LAN networks (192.168.x.x, 10.x.x.x)
- • Single internet connection
- • Default route to ISP
- • Static routes for remote offices
🏢 Enterprise Network
Complex network with:
- • Multiple LAN segments
- • OSPF for internal routing
- • Redundant WAN connections
- • Load balancing and failover
🌐 ISP/Service Provider
Internet-scale routing with:
- • BGP for internet routing
- • Customer route aggregation
- • Upstream provider connections
- • Traffic engineering
🔄 Redundant Paths
High availability with:
- • Primary and backup routes
- • Different metrics for failover
- • Automatic path selection
- • Network resilience
Routing Protocol Comparison
| Protocol | Type | Admin Distance | Metric | Use Case |
|---|---|---|---|---|
| Connected | Direct | 0 | 0 | Directly attached networks |
| Static | Manual | 1 | Manual | Small networks, backup routes |
| EIGRP | Distance Vector | 90 | Composite | Cisco networks, fast convergence |
| OSPF | Link State | 110 | Cost (bandwidth) | Enterprise networks, scalable |
| RIP | Distance Vector | 120 | Hop Count | Simple networks, legacy |
| BGP | Path Vector | 20 (eBGP) | Path Attributes | Internet routing, ISPs |
Learning Tips
- Start Simple: Begin with the basic scenario to understand fundamentals
- Test Different IPs: Try various destination addresses to see how routing changes
- Compare Scenarios: Switch between scenarios to see different routing approaches
- Add Custom Routes: Experiment with your own routes to see their effects
- Follow the Steps: Read the decision process to understand router logic
- Practice Subnetting: Use our subnet calculator to understand network boundaries
Related Network Tools
Subnet Calculator
Calculate subnet ranges and understand network boundaries used in routing tables.
VLSM Calculator
Design efficient network addressing schemes for complex routing scenarios.
Bandwidth Calculator
Calculate network capacity and transfer times for route planning.
IP Address Validator
Validate IP addresses used in routing configurations.