IP Routes & Ports
The "Why" and the "How" of Network Communication
Introduction: The Digital Delivery Service
- IP Routes: The digital roads and highways for your data.
- Ports: The specific apartment numbers for different applications.
- Goal: To understand how data travels across networks.
IP Routing: Directing Traffic
- Definition: A rule in a router's routing table telling it where to send data.
Think of a router as a post office. It doesn't know every address in the world, but it knows the next post office to send a letter to.
IP Routing: Key Use Cases
- Internet Access: Your router's "default route" points to your ISP.
- Connecting Offices: "Static routes" create private links between business locations.
- Building Resilience: Multiple routes allow traffic to be rerouted if a path fails.
Ports: Application Specificity
- Definition: A virtual endpoint on a device for a specific application.
- Function: Directs incoming data to the correct software (e.g., web server vs. email server).
The IP address gets data to the right building. The port gets it to the right apartment.
Ports: Common Examples
- Port 80 (HTTP) / 443 (HTTPS): Web traffic
- Port 22 (SSH): Secure remote administration
- Port 25 (SMTP): Sending emails
The "How": Configuring a Static Route
We use the ip route command in Cisco IOS:
ip route [destination_network] [subnet_mask] [next_hop_address]
This command manually teaches the router about a path to a remote network.
Cisco IOS: Step-by-Step
Step 1: Enter Privileged EXEC Mode
Router> enable
Router#
Step 2: Enter Global Configuration Mode
Router# configure terminal
Router(config)#
Cisco IOS: Step-by-Step
Step 3: Write the Static Route Command
Tell the router how to reach network 192.168.2.0/24 via next-hop 203.0.113.2.
Router(config)# ip route 192.168.2.0 255.255.255.0 203.0.113.2
Cisco IOS: Verification
Step 4: Save the Configuration
Router# copy running-config startup-config
Step 5: Verify the Route
Router# show ip route
...
S 192.168.2.0/24 [1/0] via 203.0.113.2
...
The 'S' confirms the Static route is active.
Next Steps
- It's time to apply these concepts in the hands-on lab.
- You will build, configure, and verify your own routed network.