> For the complete documentation index, see [llms.txt](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/testout-ccna-training/labs/6.2.5-configure-static-routes.md).

# 6.2.5 Configure Static Routes

Your branch office is connected to the main office and the internet through the SFO router. Both serial interfaces connecting the SFO router to the main office and the internet have been configured and are up. You need to configure static routes on the SFO router for each destination. Use the next hop address when assigning the static routes. Your ISP's address is 160.12.99.1. Use the show cdp neighbors detail command to discover the next hop address for the 10.0.0.0 network.

In this lab, your task is to:

* Configure a static route to 10.0.0.0/8 network.
* Configure a default route to the internet.
* Save your changes to the startup-config file.

### *<mark style="color:red;background-color:blue;">**For this exercise I used Chat GPT O1 Pro to generate a prompt that I then used with Chat GPT 4o Turbo to create walkthrough instructions for the lab. I also Included screen shots of what I did in the lab.**</mark>*<br>

Buckle up because we’re diving into this CCNA lab like it’s a game where YOU are the network wizard saving the office (and the world) from disconnected chaos. 🚀 Let’s get those routers talking and the packets flowing.

***

### 🛠️ Lab: Configuring Static Routes on SFO Router

You’ll configure:

1. A static route to reach the 10.0.0.0/8 network.
2. A default route to send traffic to the internet.
3. Save your work so it doesn’t poof into thin air when the router reboots.

***

#### **Step 1: Get Into the Router**

Picture this: you’re about to speak to the heart of your network (the CLI). Let’s log in to the SFO router.

```bash
Router> enable
Router# configure terminal
```

**Why?** You’re entering the router’s inner sanctum (privileged EXEC mode) to make changes.

<figure><img src="/files/axnpOQWqgTVIz8kKMCMm" alt=""><figcaption></figcaption></figure>

***

#### **Step 2: Configure a Static Route to the 10.0.0.0 Network**

Think of static routes as a treasure map. You’re telling the SFO router where to send packets destined for 10.0.0.0/8.

1. Find the next-hop address:

   ```bash
   Router# show cdp neighbors detail
   ```

   Look for the **IP address** of the device leading to the 10.0.0.0 network (likely the LAX router).

*<mark style="color:red;background-color:blue;">**I wasn't quite finding what I was looking for:**</mark>*

<figure><img src="/files/Hg0uSqwEwUhZ9NokUssg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/9D9BhlIzlGxtuXSTJ6Ln" alt=""><figcaption></figcaption></figure>

*<mark style="color:red;background-color:blue;">**I had to ask Chat GPT how to enter into configure mode**</mark>*

<figure><img src="/files/DDGrINsMywhQfBgi3Q3d" alt=""><figcaption></figcaption></figure>

1. Add the static route:

   ```bash
   Router(config)# ip route 10.0.0.0 255.0.0.0 <NEXT_HOP_IP>
   ```

   Replace `<NEXT_HOP_IP>` with the IP you found in the previous step (e.g., 192.168.1.1).

**Why?** Without this route, the SFO router would stare blankly when packets for 10.0.0.0 come knocking.

*<mark style="color:red;background-color:blue;">**This didn't work for me because I tried to add the /30 at the end of the IP. I exited out of config mode, pinged the lax ip, then went back into config terminal and then set IP route without adding the /30 at the end.**</mark>*&#x20;

<figure><img src="/files/MC6256kdqBHflEb1q5vb" alt=""><figcaption></figcaption></figure>

***

#### **Step 3: Configure a Default Route to the Internet**

This is the “catch-all” route. If the router doesn’t know where to send traffic, it sends it to the internet.

```bash
Router(config)# ip route 0.0.0.0 0.0.0.0 160.12.99.1
```

**Why?** In real life, default routes make your network internet-savvy, like the GPS for everything “not in the known map.”

<figure><img src="/files/TGVM8MJr6Ss7t3Khhfkl" alt=""><figcaption></figcaption></figure>

***

#### **Step 4: Verify Your Work**

Time to check if the magic worked. Run these commands:

1. **See the routing table:**

   ```bash
   Router# show ip route
   ```

   Look for:

   * A static route to 10.0.0.0/8.
   * A default route (`0.0.0.0/0`).

<figure><img src="/files/HzvHFTFUiIhHVHphwMp7" alt=""><figcaption></figcaption></figure>

1. **Test connectivity:**

   ```bash
   Router# ping 10.0.0.1
   Router# ping 8.8.8.8
   ```

   Replace IPs as needed. If you get replies, you’re golden.

**Why?** Verification saves you from future troubleshooting headaches.

***

#### **Step 5: Save Your Configuration**

You’ve done the work; now save it like a responsible engineer.

```bash
Router# copy running-config startup-config
```

**Why?** If the router reboots and your config isn’t saved, it’s back to square one. Trust me, no one wants that.

*<mark style="color:red;background-color:blue;">**You have to type exit to exit the config mode before saving**</mark>*

<figure><img src="/files/k5chVvM9a1u9eIPHxmXt" alt=""><figcaption></figcaption></figure>

***

#### 📝 **Common Pitfalls (Avoid These Traps!)**

1. **Wrong Next-Hop IP:** Double-check it with `show cdp neighbors detail`.
2. **Forgetting the Default Route:** No default route means no internet.
3. **Not Saving Config:** All your hard work will disappear. Don’t skip this!

***

#### 🎉 **Wrap-Up**

* You configured a static route and a default route.
* You verified your changes.
* You saved your work. Gold star for you! 🌟

***

Great job today! You’re one step closer to CCNA domination. Keep going—you’ve got this! 💪

TestOut instructions for the lab:

In this lab, your task is to:

* Configure a static route to 10.0.0.0/8 network.
* Configure a default route to the internet.
* Save your changes to the startup-config file.

Complete this lab as follows:

1. Select SFO.
2. Press Enter to get started.
3. At the SFO> prompt, type enable and press Enter.
4. At the SFO# prompt, type configure terminal and press Enter.
5. At the SFO(config)# prompt, type ip route 10.0.0.0 255.0.0.0 172.17.12.98 and press Enter.
6. At the SFO(config)# prompt, type ip route 0.0.0.0 0.0.0.0 160.12.99.1 and press Enter.
7. At the SFO(config)# prompt, type exit and press Enter.
8. At the SFO# prompt, type copy run start and press Enter.
9. Press Enter to begin building the configuration.
