|
1 | | -# 10 - Networks with Multiple Routers with RIP Routing |
| 1 | +# 10 - Configuring Static Routing in Cisco Packet Tracer |
| 2 | + |
| 3 | +This tutorial is the tenth in our Cisco Packet Tracer series and focuses on **static routing**, a foundational technique for routing traffic between networks. Unlike RIP, where routers exchange routing tables automatically, static routes must be manually defined on each router, giving you full control over path selection. |
| 4 | + |
| 5 | +We'll use the same three-router topology from the previous tutorial, manually configure IP addresses, and add static routes to ensure full connectivity between all PCs. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Part 1 – Network Topology Overview |
| 10 | + |
| 11 | +This setup mirrors the RIP tutorial: |
| 12 | + |
| 13 | +* **Three routers (R1, R2, R3)** connected linearly |
| 14 | +* **Three switches (S1, S2, S3)** – one per router |
| 15 | +* **Two PCs per switch** (6 total PCs) |
| 16 | + |
| 17 | +The goal is to enable all PCs to communicate through **manually configured static routes**. |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Part 2 – Device Placement and Cabling |
| 24 | + |
| 25 | +### Step 2.1 – Add Devices to the Workspace |
| 26 | + |
| 27 | +Add: |
| 28 | + |
| 29 | +* **3 Routers** (Router-PT-Empty) |
| 30 | +* **3 Switches** (2960) |
| 31 | +* **6 PCs** |
| 32 | + |
| 33 | +Label: |
| 34 | + |
| 35 | +* Routers: **R0**, **R1**, **R2** |
| 36 | +* Switches: **S0**, **S1**, **S2** |
| 37 | +* PCs: **PC0–PC5** |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +### Step 2.2 – Add Network Modules to Routers |
| 42 | + |
| 43 | +For this topology, use **Router-PT-Empty** devices. Each router needs **two Serial** and **two FastEthernet** interfaces to support all required connections. |
| 44 | + |
| 45 | +```{admonition} Note |
| 46 | +:class: note |
| 47 | +We will only be using one serial and one FastEthernet interface per router for this tutorial, but the additional interfaces will allow for future expansion in subequent tutorials. |
| 48 | +``` |
| 49 | + |
| 50 | +Follow these steps for **R0**, **R1**, and **R2**: |
| 51 | + |
| 52 | +1. Click the router to open its configuration window. |
| 53 | +2. Go to the **Physical** tab. |
| 54 | +3. Click the **power button** to turn off the router (the green light will go out). |
| 55 | +  |
| 56 | +4. In the module area, locate **PT-ROUTER-NM-1S** (Serial Port) and **PT-ROUTER-NM-1CFE** (FastEthernet). |
| 57 | +5. Drag and insert **two** PT-ROUTER-NM-1S modules into the first two empty slots (from right to left). |
| 58 | +  |
| 59 | +6. Drag and insert **two** PT-ROUTER-NM-1CFE modules into the next two empty slots. |
| 60 | +  |
| 61 | +7. Click the **power button** again to turn the router back on. |
| 62 | +  |
| 63 | + |
| 64 | +### Step 2.3 – Cabling |
| 65 | + |
| 66 | +#### **Copper Straight-Through** |
| 67 | + |
| 68 | +| From | To | Port/Interface | |
| 69 | +| ---- | -- | -------------- | |
| 70 | +| PC0 | S1 | fa0/1 | |
| 71 | +| PC1 | S1 | fa0/2 | |
| 72 | +| S1 | R0 | fa0/24 → fa2/0 | |
| 73 | +| PC2 | S2 | fa0/1 | |
| 74 | +| PC3 | S2 | fa0/2 | |
| 75 | +| S2 | R1 | fa0/24 → fa2/0 | |
| 76 | +| PC4 | S3 | fa0/1 | |
| 77 | +| PC5 | S3 | fa0/2 | |
| 78 | +| S3 | R2 | fa0/24 → fa2/0 | |
| 79 | + |
| 80 | +#### **Serial DTE Connections** |
| 81 | + |
| 82 | +| From | To | Port/Interface | |
| 83 | +| ---- | -- | -------------- | |
| 84 | +| R0 | R1 | se0/0 ↔ se1/0 | |
| 85 | +| R1 | R2 | se0/0 ↔ se1/0 | |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +## Part 3 – IP Addressing Scheme |
| 92 | + |
| 93 | +Same IP scheme as the RIP tutorial. |
| 94 | + |
| 95 | +### Subnet Allocation |
| 96 | + |
| 97 | +| Subnet | Devices | Subnet Mask | |
| 98 | +| -------------- | ------------ | ------------- | |
| 99 | +| 192.168.1.0/24 | PC0, PC1, R0 | 255.255.255.0 | |
| 100 | +| 192.168.2.0/24 | PC2, PC3, R1 | 255.255.255.0 | |
| 101 | +| 192.168.3.0/24 | PC4, PC5, R2 | 255.255.255.0 | |
| 102 | +| 10.0.0.0/30 | R0 ↔ R1 | 255.0.0.0 | |
| 103 | +| 11.0.0.0/30 | R1 ↔ R2 | 255.0.0.0 | |
| 104 | + |
| 105 | +### Step 3.1 – Assign IPs to PCs |
| 106 | + |
| 107 | +| PC | IP Address | Subnet Mask | Default Gateway | |
| 108 | +| --- | ------------ | ------------- | --------------- | |
| 109 | +| PC0 | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 | |
| 110 | +| PC1 | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 | |
| 111 | +| PC2 | 192.168.2.12 | 255.255.255.0 | 192.168.2.1 | |
| 112 | +| PC3 | 192.168.2.13 | 255.255.255.0 | 192.168.2.1 | |
| 113 | +| PC4 | 192.168.3.14 | 255.255.255.0 | 192.168.3.1 | |
| 114 | +| PC5 | 192.168.3.15 | 255.255.255.0 | 192.168.3.1 | |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +--- |
| 121 | + |
| 122 | +## Part 4 – Router Configuration |
| 123 | + |
| 124 | +Here, we manually add static routes to each router. |
| 125 | + |
| 126 | +```{admonition} Note |
| 127 | +:class: note |
| 128 | +Here the static routing configuration is done manually. For example in R0, we add routes to R1 and R2 via the lines - |
| 129 | +
|
| 130 | + ```bash |
| 131 | + ip route 192.168.2.0 255.255.255.0 10.0.0.2 |
| 132 | + ip route 192.168.3.0 255.255.255.0 10.0.0.2 |
| 133 | + ``` |
| 134 | +
|
| 135 | +This means that R0 will know how to reach the networks of R1 and R2 through the serial link to R1 (10.0.0.2). |
| 136 | +
|
| 137 | +``` |
| 138 | + |
| 139 | +### Step 4.1 – R0 Configuration |
| 140 | + |
| 141 | +```bash |
| 142 | +enable |
| 143 | +configure terminal |
| 144 | +hostname R0 |
| 145 | + |
| 146 | +interface fa2/0 |
| 147 | +ip address 192.168.1.1 255.255.255.0 |
| 148 | +no shutdown |
| 149 | +exit |
| 150 | + |
| 151 | +interface se0/0 |
| 152 | +ip address 10.0.0.1 255.0.0.0 |
| 153 | +clock rate 64000 |
| 154 | +no shutdown |
| 155 | +exit |
| 156 | + |
| 157 | +ip route 192.168.2.0 255.255.255.0 10.0.0.2 |
| 158 | +ip route 192.168.3.0 255.255.255.0 10.0.0.2 |
| 159 | +exit |
| 160 | + |
| 161 | +write memory |
| 162 | +exit |
| 163 | +``` |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | +### Step 4.2 – R1 Configuration |
| 168 | + |
| 169 | +```bash |
| 170 | +enable |
| 171 | +configure terminal |
| 172 | +hostname R1 |
| 173 | + |
| 174 | +interface fa2/0 |
| 175 | +ip address 192.168.2.1 255.255.255.0 |
| 176 | +no shutdown |
| 177 | +exit |
| 178 | + |
| 179 | +interface se1/0 |
| 180 | +ip address 10.0.0.2 255.0.0.0 |
| 181 | +no shutdown |
| 182 | +exit |
| 183 | + |
| 184 | +interface se0/0 |
| 185 | +ip address 11.0.0.1 255.0.0.0 |
| 186 | +clock rate 64000 |
| 187 | +no shutdown |
| 188 | +exit |
| 189 | + |
| 190 | +ip route 192.168.1.0 255.255.255.0 10.0.0.1 |
| 191 | +ip route 192.168.3.0 255.255.255.0 11.0.0.2 |
| 192 | +exit |
| 193 | + |
| 194 | +write memory |
| 195 | +exit |
| 196 | +``` |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | +### Step 4.3 – R2 Configuration |
| 201 | + |
| 202 | +```bash |
| 203 | +enable |
| 204 | +configure terminal |
| 205 | +hostname R2 |
| 206 | + |
| 207 | +interface fa2/0 |
| 208 | +ip address 192.168.3.1 255.255.255.0 |
| 209 | +no shutdown |
| 210 | +exit |
| 211 | + |
| 212 | +interface se1/0 |
| 213 | +ip address 11.0.0.2 255.0.0.0 |
| 214 | +no shutdown |
| 215 | +exit |
| 216 | + |
| 217 | +ip route 192.168.1.0 255.255.255.0 11.0.0.1 |
| 218 | +ip route 192.168.2.0 255.255.255.0 11.0.0.1 |
| 219 | +exit |
| 220 | + |
| 221 | +write memory |
| 222 | +exit |
| 223 | +``` |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | +--- |
| 228 | + |
| 229 | +## Part 5 – Verification and Testing |
| 230 | + |
| 231 | +### Step 5.1 – Routing Table Check |
| 232 | + |
| 233 | +```bash |
| 234 | +show ip route |
| 235 | +``` |
| 236 | + |
| 237 | +You should see **static routes (`S`)** to remote networks. |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | +### Step 5.2 – Test Connectivity |
| 242 | + |
| 243 | +From **PC0**, test: |
| 244 | + |
| 245 | +```bash |
| 246 | +ping 192.168.1.11 |
| 247 | +ping 192.168.2.12 |
| 248 | +ping 192.168.3.14 |
| 249 | +``` |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | +From **PC3**, test: |
| 254 | + |
| 255 | +```bash |
| 256 | +ping 192.168.3.14 |
| 257 | +``` |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | +Repeat between any pair of PCs. |
| 262 | + |
| 263 | +--- |
| 264 | + |
| 265 | +## Summary |
| 266 | + |
| 267 | +In this tutorial, you: |
| 268 | + |
| 269 | +* Reused a three-router, three-switch network |
| 270 | +* Assigned IPs to all devices |
| 271 | +* Manually configured static routes |
| 272 | +* Verified end-to-end connectivity with `ping` |
0 commit comments