Sunteți pe pagina 1din 7

Lab ID: 8.8K1112A131.SWP.

SWITCH Lab: Spanning Tree Protocol


Objective
Observe the default spanning tree, congure Spanning Tree Protocol (STP), and verify the spanning tree
conguration. For this lab, you will be responsible for conguring all four switches. P1PC1 and P2PC2 are PC
workstations. P1ASW1 and P2ASW2 are Access layer switches. P1DSW1 and P2DSW2 are Distribution layer
switches. The Access and Distribution layers are two of the three layers in the Cisco three-layer hierarchical
network model, which also includes the Core layer.

Lab Topology
The Topology diagram below represents the NetMap in the Simulator:

VLAN 11

VLAN 12

P1PC1

P2PC2

P1ASW1

VLAN 1 172.16.1.10
VLAN 11 172.16.11.1

P1DSW1
VLAN 1 172.16.1.100
VLAN 11 172.16.11.100

P2ASW2
VLAN 1 172.16.1.20
VLAN 12 172.16.12.1

P2DSW2
VLAN 1 172.16.1.200
VLAN 12 172.16.12.200

Boson NetSim Lab Manual

Lab Tasks
Task 1: View the Default Spanning Tree
1.

2.

The spanning tree priority on P1DSW1 has been precongured to 24576. On P1DSW1, issue the show
spanning-tree vlan 1 detail command to display the spanning tree for VLAN 1. Use the output to answer
the following questions about the spanning tree.
a.

Which spanning tree is VLAN 1 executing? ____________________________________________

b.

What is the bridge ID? _____________________________________________________________

c.

Why is there no root port? __________________________________________________________


_______________________________________________________________________________

d.

Why are there no blocked ports for VLAN 1? ___________________________________________


_______________________________________________________________________________

e.

What is the timer value for sending bridge protocol data units (BPDUs)? _____________________

f.

What is the maximum age for a BPDU? _______________________________________________

g.

What is the value of the forward delay timer? ___________________________________________

Issue the show spanning-tree vlan 1 detail command on P2ASW2, and use the output to answer the
following questions:
a.

What is the bridge ID? _____________________________________________________________

b.

What is the root bridge ID? _________________________________________________________

c.

What is the root port? _____________________________________________________________

d.

What is the cost for using the root port? _______________________________________________

e.

What are the congured values for hello time, maximum age, and forward delay? ______________
_______________________________________________________________________________

f.

Are these the timers that are in effect? Why or why not? __________________________________
_______________________________________________________________________________
_______________________________________________________________________________

Boson NetSim Lab Manual

Lab Solutions
Task 1: View the Default Spanning Tree
1.

The following is sample output from P1DSW1 and should be used to answer the questions for this step:
P1DSW1#show spanning-tree vlan 1 detail
VLAN0001 is executing the ieee compatible Spanning Tree Protocol
Bridge Identifier has priority 24576, sysid 1, address 000C.1461.3123
Configured hello time 2, max age 20, forward delay 15
We are the root of the spanning tree
Topology change flag not set, detected flag not set
Number of topology changes 1 last change occurred 00:03:46 ago
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 1, topology change 0, notification 0, aging 15
Port 2 (FastEthernet0/1) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.2.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.2., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 459
Port 3 (FastEthernet0/2) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.3.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.3., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 459
Port 4 (FastEthernet0/3) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.4.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.4., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 454

(continued on next page)

Boson NetSim Lab Manual

(continued from previous page)


Port 5 (FastEthernet0/4) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.5.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.5., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 454
Port 12 (FastEthernet0/11) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.12.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.12., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 452
Port 13 (FastEthernet0/12) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.13.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.13., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 452

a.

VLAN 1 is executing IEEE.

b.

The bridge ID has priority 24576, sysid 1, and Media Access Control (MAC) address
000C.1461.3123.

c.

There is no root port because this is the root bridge.

d.

There are no blocked ports for VLAN 1 because all ports on the root bridge are designated ports.

e.

The timer value for sending BPDUs is 2 seconds.

f.

The maximum age for a BPDU is 20 seconds.

g.

The value of the forward delay timer is 15 seconds.

Boson NetSim Lab Manual

2.

The following sample output was used to answer the questions for this step:
P2ASW2#show spanning-tree vlan 1 detail
VLAN0001 is executing the ieee compatible Spanning Tree Protocol
Bridge Identifier has priority 32768, sysid 1, address 000C.1380.3538
Configured hello time 2, max age 20, forward delay 15
Current root has priority 24576, address 000C.1461.3123
Root port is 2 (FastEthernet0/1), cost of root path is 19
Topology change flag not set, detected flag not set
Number of topology changes 1 last change occurred 00:05:45 ago
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 1, topology change 0, notification 0, aging 15
Port 2 (FastEthernet0/1) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.2.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.2., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 163
Port 3 (FastEthernet0/2) of VLAN0001 is alternate blocking
Port path cost 19, Port priority 128, Port Identifier 128.3.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.3., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 163
Port 4 (FastEthernet0/3) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.4.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.4., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 158
Port 5 (FastEthernet0/4) of VLAN0001 is designated forwarding
Port path cost 19, Port priority 128, Port Identifier 128.5.
Designated root has priority 24576, address 000C.1461.3123
Designated bridge has priority 24576, address 000C.1461.3123
Designated port id is 128.5., designated path cost 19
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
Link type is point-to-point by default
BPDU: sent 0, received 158

Boson NetSim Lab Manual

a.

The bridge ID has priority 32768, sysid 1, and MAC address 000C.1380.3538.

b.

The current root has priority 24576 and address 000C.1461.3123.

c.

The root port is port 2 (FastEthernet0/1).

d.

The cost for using the root port is 19.

e.

The congured hello time is 2 seconds, the maximum age is 20 seconds, and the forward delay is
15 seconds.

f.

These timers are not in effect. The timers that are in effect are the timers advertised by the root
bridge.

Boson NetSim Lab Manual

Sample Conguration Scripts


P1DSW1
P1DSW1#show running-config
!
Version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname P1DSW1
ip cef
!
ip subnet-zero
!
no ip domain-lookup
spanning-tree mode pvst
spanning-tree vlan 1 priority 24576
spanning-tree extend system-id
!
interface FastEthernet0/1
description P1DSW1 to P1ASW1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
description P1DSW1 to P1ASW1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/3
description P1DSW1 to P2ASW2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
description P1DSW1 to P2ASW2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!

P1DSW1 (continued)
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
description P1DSW1 to P2DSW2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/12
description P1DSW1 to P2DSW2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan 1
ip address 172.16.1.100 255.255.255.0
no ip route-cache
!
interface Vlan0011
ip address 172.16.11.100 255.255.255.0
no ip route-cache
!
vlan 11 name 11
!
ip classless
no ip http server
!
line con 0
line aux 0
line vty 0 4
!
no scheduler allocate
end

Copyright 19962012 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

Boson NetSim Lab Manual

S-ar putea să vă placă și