Prac 1 SDN
Prac 1 SDN
Topology
Addressing Table
Objectives
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.
Attach the devices as shown in the topology diagram, and cable as necessary.
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
line con 0
exec-timeout 0 0
logging synchronous
exit
shutdown
exit
exit
shutdown
exit
no shutdown
exit
vlan 2
name SecondVLAN
exit
interface vlan 1
no shut
exit
Switch D2
hostname D2
line con 0
exec-timeout 0 0
logging synchronous
exit
exit
shutdown
exit
shutdown
exit
no shutdown
exit
vlan 2
name SecondVLAN
exit
interface vlan 1
no shut
exit
Switch A1
hostname A1
line con 0
exec-timeout 0 0
logging synchronous
exit
shutdown
exit
no shutdown
exit
vlan 2
name SecondVLAN
exit
interface vlan 1
no shut
exit
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.
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
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.