| 1 | % Layer 2 Network Design Lab |
|---|
| 2 | |
|---|
| 3 | \pagebreak |
|---|
| 4 | |
|---|
| 5 | # Part 1 |
|---|
| 6 | |
|---|
| 7 | ## Introduction |
|---|
| 8 | |
|---|
| 9 | The purpose of these exercises is to build Layer 2 (switched) networks |
|---|
| 10 | utilizing the concepts explained in today's design presentations. Students |
|---|
| 11 | will see how star topology, aggregation, virtual LANs, Spanning Tree |
|---|
| 12 | Protocol, etc. are put to work. |
|---|
| 13 | |
|---|
| 14 | There will be 5 groups of students, with 4 switches per group. The |
|---|
| 15 | distribution of IP address space for the building (Layer 2) networks will be |
|---|
| 16 | as follows: |
|---|
| 17 | |
|---|
| 18 | * Group 1: 10.10.64.0/24 |
|---|
| 19 | * Group 2: 10.20.64.0/24 |
|---|
| 20 | * Group 3: 10.30.64.0/24 |
|---|
| 21 | * Group 4: 10.40.64.0/24 |
|---|
| 22 | * Group 5: 10.50.64.0/24 |
|---|
| 23 | |
|---|
| 24 | ### Switch types used in the lab |
|---|
| 25 | |
|---|
| 26 | Cisco 3725 with 16 Port 10BaseT/100BaseTX EtherSwitch (NM-16ESW) module |
|---|
| 27 | |
|---|
| 28 | *Note: This Cisco model is actually a router, but the 16-port module provides |
|---|
| 29 | basic Layer-2 capabilities, and we will use these as switches. Dynamips does |
|---|
| 30 | not support the emulation of the Cisco Catalyst class of switches, unfortunately.* |
|---|
| 31 | |
|---|
| 32 | ### Lab access instructions |
|---|
| 33 | |
|---|
| 34 | Refer to the file called [lab-access-dynamips.txt]() |
|---|
| 35 | |
|---|
| 36 | ## Hierarchical, redundant network |
|---|
| 37 | |
|---|
| 38 | Our building network consists of two redundant backbone switches and two edge |
|---|
| 39 | switches. The backbone switches connect to the core of our campus network |
|---|
| 40 | and serve as aggregation points for all the edge switches. Edge switches serve |
|---|
| 41 | the end users. Each edge switch has a connection to both backbone switches, so that |
|---|
| 42 | if one of the backbone switches fails, the switch has an alternative connection. |
|---|
| 43 | |
|---|
| 44 |  |
|---|
| 45 | |
|---|
| 46 | ### Basic Switch Configuration |
|---|
| 47 | |
|---|
| 48 | Follow these instructions to configure each switch: |
|---|
| 49 | |
|---|
| 50 | 1. Name the switch |
|---|
| 51 | |
|---|
| 52 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 53 | enable |
|---|
| 54 | config terminal |
|---|
| 55 | hostname <NAME> |
|---|
| 56 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 57 | |
|---|
| 58 | 2. Configure Authentication |
|---|
| 59 | |
|---|
| 60 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 61 | aaa new-model |
|---|
| 62 | aaa authentication login default local |
|---|
| 63 | aaa authentication enable default enable |
|---|
| 64 | username nsrc secret nsrc |
|---|
| 65 | enable secret nsrc |
|---|
| 66 | service password-encryption |
|---|
| 67 | line vty 0 4 |
|---|
| 68 | transport preferred none |
|---|
| 69 | line console 0 |
|---|
| 70 | transport preferred none |
|---|
| 71 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 72 | |
|---|
| 73 | 3. Configure logging |
|---|
| 74 | |
|---|
| 75 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 76 | no logging console |
|---|
| 77 | logging buffered 8192 debugging |
|---|
| 78 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 79 | |
|---|
| 80 | 4. Disable DNS resolution |
|---|
| 81 | |
|---|
| 82 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 83 | no ip domain-lookup |
|---|
| 84 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 85 | |
|---|
| 86 | 5. Exit configuration mode and save |
|---|
| 87 | |
|---|
| 88 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 89 | end |
|---|
| 90 | write memory |
|---|
| 91 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 92 | |
|---|
| 93 | |
|---|
| 94 | ### IP Address Configuration |
|---|
| 95 | |
|---|
| 96 | 1. Assign each switch a different IP address as follows: |
|---|
| 97 | |
|---|
| 98 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 99 | int vlan 1 |
|---|
| 100 | ip address 10.X0.64.Y 255.255.255.0 |
|---|
| 101 | no shut |
|---|
| 102 | end |
|---|
| 103 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 104 | |
|---|
| 105 | Replace the "X" with the corresponding octet from your group's IP prefix, |
|---|
| 106 | and replace "Y" like this: |
|---|
| 107 | |
|---|
| 108 | 1. BBX1: 10.X0.64.4 |
|---|
| 109 | 1. BBX2: 10.X0.64.5 |
|---|
| 110 | 1. SWX1: 10.X0.64.6 |
|---|
| 111 | 1. SWX2: 10.X0.64.7 |
|---|
| 112 | |
|---|
| 113 | Verify connectivity by pinging each switch. Do not continue until you |
|---|
| 114 | can ping each switch from every other switch. |
|---|
| 115 | |
|---|
| 116 | HINT: If ping fails, but the configuration seems OK, try doing the following: |
|---|
| 117 | |
|---|
| 118 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 119 | int vlan 1 |
|---|
| 120 | shutdown |
|---|
| 121 | no shutdown |
|---|
| 122 | end |
|---|
| 123 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 124 | |
|---|
| 125 | (this is not normal, but most likely a bug in the IOS code somewhere) |
|---|
| 126 | |
|---|
| 127 | ## Spanning Tree Protocol |
|---|
| 128 | |
|---|
| 129 | ### STP Status |
|---|
| 130 | |
|---|
| 131 | Run the following commands and pay close attention to the output: |
|---|
| 132 | |
|---|
| 133 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 134 | show spanning-tree brief |
|---|
| 135 | show spanning-tree blockedports |
|---|
| 136 | show spanning-tree |
|---|
| 137 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 138 | |
|---|
| 139 | a. What is the priority on each switch? |
|---|
| 140 | |
|---|
| 141 | b. Which switch is the root? Why? |
|---|
| 142 | |
|---|
| 143 | c. Which ports are blocked? Why? |
|---|
| 144 | |
|---|
| 145 | ### STP Configuration |
|---|
| 146 | |
|---|
| 147 | 1. Configure the STP priorities explicitly for each switch, according |
|---|
| 148 | to the plan in Appendix A. |
|---|
| 149 | |
|---|
| 150 | For example, on BB11: |
|---|
| 151 | |
|---|
| 152 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 153 | BB11(config)#spanning-tree vlan 1 priority 12288 |
|---|
| 154 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 155 | |
|---|
| 156 | 2. Verify: |
|---|
| 157 | |
|---|
| 158 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 159 | show spannning-tree brief |
|---|
| 160 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 161 | |
|---|
| 162 | Why is it so important to set the priorities explicitly? |
|---|
| 163 | |
|---|
| 164 | ### Disabling STP |
|---|
| 165 | |
|---|
| 166 | We are now going to disable spanning tree to see what effect it has. |
|---|
| 167 | |
|---|
| 168 | *WARNING: Disabling spanning tree has a significant effect on the Dynamips |
|---|
| 169 | server's CPU load. For this reason, we cannot have all groups disable |
|---|
| 170 | spanning tree at the same time. We will take turns.* |
|---|
| 171 | |
|---|
| 172 | |
|---|
| 173 | **ASK THE INSTRUCTOR BEFORE DISABLING STP!!!** |
|---|
| 174 | |
|---|
| 175 | |
|---|
| 176 | When you get the go-ahead from the instructor, execute the following |
|---|
| 177 | on each switch: |
|---|
| 178 | |
|---|
| 179 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 180 | no spanning-tree vlan 1 |
|---|
| 181 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 182 | |
|---|
| 183 | Can the switches ping each other reliably now? Why? |
|---|
| 184 | |
|---|
| 185 | Watch the port counters on the inter-switch links. |
|---|
| 186 | |
|---|
| 187 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 188 | show interfaces stats |
|---|
| 189 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 190 | |
|---|
| 191 | What happens with the counters of the connected interfaces? |
|---|
| 192 | What is going on? |
|---|
| 193 | |
|---|
| 194 | Very quickly enable STP again on all switches: |
|---|
| 195 | |
|---|
| 196 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 197 | spanning-tree vlan 1 |
|---|
| 198 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 199 | |
|---|
| 200 | ### Simulate a backbone failure |
|---|
| 201 | |
|---|
| 202 | 1. Disconnect BBX1 from the rest of the network: |
|---|
| 203 | |
|---|
| 204 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 205 | interface range fastEthernet 1/12 - 15 |
|---|
| 206 | shutdown |
|---|
| 207 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 208 | |
|---|
| 209 | While it is cut off from the rest, verify spanning tree status on the |
|---|
| 210 | other switches. |
|---|
| 211 | |
|---|
| 212 | a. Who is the root now? |
|---|
| 213 | |
|---|
| 214 | b. Verify port roles and status. Verify connectivity with ping. |
|---|
| 215 | |
|---|
| 216 | 2. Reconnect BBX1: |
|---|
| 217 | |
|---|
| 218 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 219 | interface range fastEthernet 1/12 - 15 |
|---|
| 220 | no shutdown |
|---|
| 221 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 222 | |
|---|
| 223 | What happens to the spanning tree when the switch comes back online? |
|---|
| 224 | |
|---|
| 225 | # Part 2 |
|---|
| 226 | |
|---|
| 227 | ## VLANs |
|---|
| 228 | |
|---|
| 229 | We now want to segment the network to separate end-user traffic from VOIP and |
|---|
| 230 | network management traffic. Each of these segments will be a separate subnet. |
|---|
| 231 | |
|---|
| 232 | ### Configure the switches with DATA, VOIP and MGMT VLANs. |
|---|
| 233 | |
|---|
| 234 | VTP (VLAN Trunking Protocol) is a proprietary Cisco technology that allows |
|---|
| 235 | for dynamic VLAN provisioning. We will not use it here. |
|---|
| 236 | |
|---|
| 237 | 1. Disable VTP by setting it to 'transparent mode': |
|---|
| 238 | |
|---|
| 239 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 240 | vtp mode transparent |
|---|
| 241 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 242 | |
|---|
| 243 | 2. Add the VLANs to the VLAN database and give them names to better identify them: |
|---|
| 244 | |
|---|
| 245 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 246 | vlan 64 |
|---|
| 247 | name DATA |
|---|
| 248 | vlan 65 |
|---|
| 249 | name VOIP |
|---|
| 250 | vlan 255 |
|---|
| 251 | name MGMT |
|---|
| 252 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 253 | |
|---|
| 254 | 3. Move the IP address to the MGMT vlan (notice the new subnet octet "255"): |
|---|
| 255 | |
|---|
| 256 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 257 | interface vlan 1 |
|---|
| 258 | no ip address |
|---|
| 259 | interface vlan 255 |
|---|
| 260 | ip address 10.X0.255.Y 255.255.255.0 |
|---|
| 261 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 262 | |
|---|
| 263 | Verify connectivity between switches. Can you ping? What's missing? |
|---|
| 264 | |
|---|
| 265 | 4. Configure trunk ports. Do the following for each port that needs |
|---|
| 266 | to tag VLAN frames: |
|---|
| 267 | |
|---|
| 268 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 269 | interface FastEthernet1/14 |
|---|
| 270 | switchport mode trunk |
|---|
| 271 | switchport trunk encapsulation dot1q |
|---|
| 272 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 273 | |
|---|
| 274 | Note: Check Figure 1 to see which ports you need to modify. BBX1 and |
|---|
| 275 | BBX2 are each connected to a router on Fast1/1. This port also needs |
|---|
| 276 | to be a trunk. |
|---|
| 277 | |
|---|
| 278 | Try pinging between switches again. It should work now. |
|---|
| 279 | |
|---|
| 280 | 5. Designate 5 edge ports for each DATA and VOIP VLAN access: |
|---|
| 281 | |
|---|
| 282 | On SWX1 and SWX2 only: |
|---|
| 283 | |
|---|
| 284 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 285 | interface range Fast1/1 - 5 |
|---|
| 286 | switchport mode access |
|---|
| 287 | switchport access vlan 64 |
|---|
| 288 | ! |
|---|
| 289 | interface range Fast1/6 - 10 |
|---|
| 290 | switchport mode access |
|---|
| 291 | switchport access vlan 65 |
|---|
| 292 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 293 | |
|---|
| 294 | Verify which ports are members or trunks of each vlan: |
|---|
| 295 | |
|---|
| 296 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 297 | show vlan-switch id <VLAN ID> |
|---|
| 298 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 299 | |
|---|
| 300 | Imagine that there are computers connected to the DATA vlan. Would they be able |
|---|
| 301 | to ping the switch? Explain your response. |
|---|
| 302 | |
|---|
| 303 | Verify the Spanning Tree status: |
|---|
| 304 | |
|---|
| 305 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 306 | show spanning-tree brief |
|---|
| 307 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 308 | |
|---|
| 309 | Notice the root and bridge priorities on each VLAN (1,64,65,255). Are they the same? |
|---|
| 310 | |
|---|
| 311 | *Note: This is called "Per-VLAN spanning tree", or PVST. This means that the switches are |
|---|
| 312 | creating 4 separate trees, each with its own parameters, status, calculations, etc. |
|---|
| 313 | Imagine if you had several hundred VLANs! This is certainly not ideal. There are |
|---|
| 314 | better standards, like "Multiple Spanning Tree" (MST), that allow the administrator |
|---|
| 315 | to create only the desired number of trees, and map groups of VLANs to each tree. |
|---|
| 316 | Unfortunately, this Cisco device does not support MST.* |
|---|
| 317 | |
|---|
| 318 | ## VLAN load-balancing with PVST |
|---|
| 319 | |
|---|
| 320 | Your two aggregation switches are each connected to a core router (not shown |
|---|
| 321 | in the pictures). |
|---|
| 322 | |
|---|
| 323 | Suppose you wanted to load-balance the traffic from your various VLANs as |
|---|
| 324 | they leave your aggregation switches towards your routers? How can you achieve |
|---|
| 325 | this? |
|---|
| 326 | |
|---|
| 327 | 1. Configure BBX1 as the root switch for VLANs 64,65, and BBX2 as the root switch |
|---|
| 328 | for VLAN 255. Also, make each switch a secondary root for the other VLAN(s): |
|---|
| 329 | |
|---|
| 330 | On BBX1: |
|---|
| 331 | |
|---|
| 332 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 333 | spanning-tree vlan 64 priority 12288 |
|---|
| 334 | spanning-tree vlan 65 priority 12288 |
|---|
| 335 | spanning-tree vlan 255 priority 16384 |
|---|
| 336 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 337 | |
|---|
| 338 | On BBX2: |
|---|
| 339 | |
|---|
| 340 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 341 | spanning-tree vlan 64 priority 16384 |
|---|
| 342 | spanning-tree vlan 65 priority 16384 |
|---|
| 343 | spanning-tree vlan 255 priority 12288 |
|---|
| 344 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 345 | |
|---|
| 346 | On SWX1 and SWX2, the priorities are the same on every VLAN: |
|---|
| 347 | |
|---|
| 348 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 349 | spanning-tree vlan 64 priority 24576 |
|---|
| 350 | spanning-tree vlan 65 priority 24576 |
|---|
| 351 | spanning-tree vlan 255 priority 24576 |
|---|
| 352 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 353 | |
|---|
| 354 | 2. Verify that the root switch is the correct one in all cases: |
|---|
| 355 | |
|---|
| 356 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 357 | show spanning-tree brief |
|---|
| 358 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 359 | |
|---|
| 360 | ## STP Extended Features |
|---|
| 361 | |
|---|
| 362 | ### PortFast |
|---|
| 363 | |
|---|
| 364 | PortFast is a feature that allows end-user stations to be granted instant access |
|---|
| 365 | to the L2 network. Instead of starting at the bottom of the Blocking-Listening- |
|---|
| 366 | Learning-Forwarding hierarchy of states (30 seconds!), Portfast starts at the top. |
|---|
| 367 | The port starts in Forwarding state, and if a loop is detected, STP does all its |
|---|
| 368 | calculations and blocks the necessary ports. This feature should only be applied |
|---|
| 369 | to ports that connect end-user stations. |
|---|
| 370 | |
|---|
| 371 | 1. Configure end-user ports to be in PortFast mode: |
|---|
| 372 | |
|---|
| 373 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 374 | interface range fast1/1 - 10 |
|---|
| 375 | spanning-tree portfast |
|---|
| 376 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 377 | |
|---|
| 378 | ### BPDUGuard |
|---|
| 379 | |
|---|
| 380 | With PortFast, end-user ports still participate in STP. That means that anything |
|---|
| 381 | connected to those ports can send BPDUs and participate in (and affect the status of) |
|---|
| 382 | the spanning tree calculations. For example, if the device connected to the edge port |
|---|
| 383 | is configured with a lower bridge priority, it becomes the root switch and the tree |
|---|
| 384 | topology becomes suboptimal. |
|---|
| 385 | |
|---|
| 386 | Another useful Cisco feature that avoids this situation is BPDUGuard. At the reception |
|---|
| 387 | of BPDUs, the BPDU guard operation disables the port that has PortFast configured. |
|---|
| 388 | |
|---|
| 389 | 1. Enable BPDUGuard on all ports with PortFast enabled: |
|---|
| 390 | |
|---|
| 391 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 392 | spanning-tree portfast bpduguard |
|---|
| 393 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 394 | |
|---|
| 395 | ## Port Bundling |
|---|
| 396 | |
|---|
| 397 | We now want more capacity and link redundancy between the aggregation switches. |
|---|
| 398 | |
|---|
| 399 | 1. Configure a Port Channel between BBX1 and BBX2: |
|---|
| 400 | |
|---|
| 401 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 402 | interface port-channel 1 |
|---|
| 403 | description BBX1-BBX2 aggregate link |
|---|
| 404 | ! |
|---|
| 405 | interface range fast1/12 - 13 |
|---|
| 406 | channel-group 1 mode on |
|---|
| 407 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 408 | |
|---|
| 409 | 2. Verify the status: |
|---|
| 410 | |
|---|
| 411 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 412 | show interface port-channel 1 |
|---|
| 413 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 414 | |
|---|
| 415 | What capacity do you have now on the new trunk? |
|---|
| 416 | Hint: Look for the line that says BW ... Kbit/sec |
|---|
| 417 | |
|---|
| 418 | 3. Disable one of the ports in the bundle. |
|---|
| 419 | |
|---|
| 420 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 421 | interface fast 1/12 |
|---|
| 422 | shutdown |
|---|
| 423 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 424 | |
|---|
| 425 | Is the channel still up? |
|---|
| 426 | |
|---|
| 427 | 4. Enable it again: |
|---|
| 428 | |
|---|
| 429 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 430 | interface fast 1/12 |
|---|
| 431 | no shutdown |
|---|
| 432 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 433 | |
|---|
| 434 | *Note: There is a standard protocol for port bundling. It's called "LACP" |
|---|
| 435 | (Link Aggregation Control Protocol). This particular Cisco device does |
|---|
| 436 | not support LACP, so these port channels are actually using a proprietary |
|---|
| 437 | Cisco protocol called "EtherChannel". All modern switches support LACP, so |
|---|
| 438 | we strongly recommend using it, instead of any proprietary versions.* |
|---|
| 439 | |
|---|
| 440 | \pagebreak |
|---|
| 441 | |
|---|
| 442 | # Reference |
|---|
| 443 | |
|---|
| 444 | ## Appendix A - Spanning Tree Configuration |
|---|
| 445 | |
|---|
| 446 | Refer to this priority table below for the appropriate priorities on each |
|---|
| 447 | switch. |
|---|
| 448 | |
|---|
| 449 | --------------------------------------------------------------------------- |
|---|
| 450 | Priority Description Notes |
|---|
| 451 | -------- ----------------------- -------------------------------------- |
|---|
| 452 | 0 Core Node The core switches/routers will not be |
|---|
| 453 | participating in STP... reserved in |
|---|
| 454 | case they ever are |
|---|
| 455 | |
|---|
| 456 | 4096 Redundant Core Node Ditto |
|---|
| 457 | |
|---|
| 458 | |
|---|
| 459 | 8192 Reserved |
|---|
| 460 | |
|---|
| 461 | 12288 **Building Backbone** |
|---|
| 462 | |
|---|
| 463 | 16384 **Redundant Backbones** |
|---|
| 464 | |
|---|
| 465 | 20480 Secondary Backbone This is for building complexes, where |
|---|
| 466 | there are separate building (secondary) |
|---|
| 467 | backbones that terminate at the complex |
|---|
| 468 | backbone. |
|---|
| 469 | |
|---|
| 470 | 24576 **Access Switches** This is the normal edge-device priority |
|---|
| 471 | |
|---|
| 472 | 28672 Access Switches Used for access switches that are |
|---|
| 473 | daisy-chained from another access switch. |
|---|
| 474 | We're using this terminology instead of |
|---|
| 475 | "aggregation switch" because it's hard to |
|---|
| 476 | define when a switch stops being an |
|---|
| 477 | access switch and becomes an |
|---|
| 478 | aggregation switch. |
|---|
| 479 | |
|---|
| 480 | 32768 Default No managed network devices should have |
|---|
| 481 | this priority. |
|---|
| 482 | --------------------------------------------------------------------------- |
|---|
| 483 | |
|---|
| 484 | Table: Priority Table |
|---|
| 485 | |
|---|
| 486 | |
|---|
| 487 | \pagebreak |
|---|
| 488 | |
|---|