0% found this document useful (0 votes)
18 views8 pages

Prac 1 SDN

Uploaded by

4832550
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views8 pages

Prac 1 SDN

Uploaded by

4832550
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

PRACTICAL 6

AIM - Observe STP Topology Changes and Implement RSTP

Topology

Addressing Table

Objectives

Part 1: Build the Network and Configure Basic Device Settings

Part 2: Observe STP Convergence and Topology Change

Background / Scenario
The potential effect of a loop in the Layer 2 network is significant. Layer 2 loops could impact
connected hosts as well as the network equipment. Layer 2 loops can be prevented by
following good design practices and careful implementation of the Spanning Tree Protocol. In
this lab, you will observe the operation of spanning tree protocols to protect the Layer 2
network from loops and topology disruptions. The terms "switch" and "bridge" will be used
interchangeably throughout the lab.
Required Resources

• 2 Switches (Cisco 3650 with Cisco IOS XE release 16.9.4 universal image or comparable)
• 1 Switch (Cisco 2960+ with Cisco IOS release 15.2 lanbase image or comparable)
• 1 PC (Windows with a terminal emulation program, such as Tera Term)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet cables as shown in the topology

Instructions

Part 1: Build the Network and Configure Basic Device Settings and Interface Addressing

In Part 1, you will set up the network topology and configure basic settings and
interface addressing on routers.

Step 1: Cable the network as shown in the topology.

Attach the devices as shown in the topology diagram, and cable as necessary.

Step 2: Configure basic settings for each switch.

a. Console into each switch, enter global configuration mode, and apply the basic
settings and interface addressing. The startup configuration is provided below for each
switch in the topology.

Switch D1

hostname D1

spanning-tree mode pvst

banner motd # D1, STP Topology Change and RSTP Lab #

line con 0

exec-timeout 0 0

logging synchronous

exit

interface range g1/0/1-24, g1/1/1-4, g0/0

shutdown

exit

interface range gigabitEthernet 1/0/1-24


shutdown

exit

interface range gigabitEthernet 1/1/1-4

shutdown

exit

interface range g1/0/1, g1/0/5-6

switchport mode trunk

no shutdown

exit

vlan 2

name SecondVLAN

exit

interface vlan 1

ip address 10.0.0.1 255.0.0.0

no shut

exit

Switch D2

hostname D2

banner motd # D2, STP Topology Change and RSTP Lab #

spanning-tree mode pvst

line con 0

exec-timeout 0 0

logging synchronous

exit

interface range gigabitEthernet 1/0/1-24


shutdown

exit

interface range gigabitEthernet 1/1/1-4

shutdown

exit

interface range g1/0/1, g1/0/5-6

shutdown

exit

switchport mode trunk

no shutdown

exit

vlan 2

name SecondVLAN

exit

interface vlan 1

ip address 10.0.0.2 255.0.0.0

no shut

exit

Switch A1

hostname A1

banner motd # A1, STP Topology Change and RSTP Lab #

spanning-tree mode pvst

line con 0

exec-timeout 0 0

logging synchronous
exit

interface range f0/1-24, g0/1-2

shutdown

exit

interface range f0/1-4

switchport mode trunk

no shutdown

exit

vlan 2

name SecondVLAN

exit

interface vlan 1

ip address 10.0.0.3 255.0.0.0

no shut

exit

Part 2: Discover the Default Spanning Tree

Your switches have been configured and interfaces have been enabled, and the Spanning Tree
Protocol, operational by default, has already converged onto a loop-free logical network. In this
part of the lab, we will discover what that default spanning tree looks like and evaluate why it
converged the way it did. We will do this by following the same set of steps that Spanning
Tree does. We will find the Root Bridge, then find the Root Ports, and lastly see which ports
are Designated ports, and which ports are non-Designated ports in our topology.

Step 1: Find the root bridge.


Our switches are running the Cisco default PVST+, and we have two VLANs in the
network, so we should see two root bridges.

a. On A1, issue the command show spanning-tree root and observe what the output tells you
about the root bridge. Amongst the lab devices being used to document this lab, A1 shows the
root id with a cost of 19 and the root port as interface FastEthernet 0/1 for both VLAN1 and
VLAN2
A1# show spanning-tree root

b. The root bridge is elected based upon which switch has the highest Bridge ID (BID). The
BID is made up of a configurable priority value (which defaults to 32768) and the base MAC
address for the switch. Use the command show spanning-tree root to gather that information
from your switches to support the root bridge decision.
D1# show spanning-tree root

D2# show spanning-tree root


c. What are the base MAC addresses for the devices we are using? Issue the command show
version |include MAC (capitalized exactly like that) on each switch.

Amongst the three switches being used to document this lab, D1 has the lowest base MAC
address. The OUI portion of each MAC address is the same. The first set of hexadecimal
characters are different; 0x28 is a lower number than 0x5d. This is what has caused D1 to be
elected as the root bridge.

You might also like