VLAN Trunking Protocol (VTP) and Spanning Tree Protocol (STP)
VLAN Trunking Protocol (VTP) and Spanning Tree Protocol (STP)
This presentation will explore two fundamental protocols crucial for efficient and
robust network management: VLAN Trunking Protocol (VTP) and Spanning Tree
Protocol (STP).
Presented by:
Ashiqan e Muhammad
Laiba Shahzadi
Rabia Khalid
Understanding VLAN Trunking Protocol (VTP)
What is VTP? Why Use VTP?
VTP is a Cisco proprietary messaging protocol that propagates VTP drastically reduces administrative overhead, especially in large
VLAN configuration information across the network. It simplifies networks with many switches. Instead of manually creating, deleting, or
VLAN management by allowing changes made on one switch (the modifying VLANs on every switch, VTP ensures consistency and
VTP server) to be automatically replicated to other switches (VTP prevents configuration mismatches across the network, leading to fewer
clients) in the same VTP domain. errors and faster deployments.
Without VTP, managing VLANs across dozens or hundreds of switches would be a time-consuming and error-prone task. It centralizes
VLAN database updates, making network administration more efficient.
VTP Modes and Operation
VTP operates in three primary modes, each serving a distinct purpose within a VTP domain. Understanding these modes is key to proper VTP
implementation.
Switch>enable Switch>enable
Switch#configure terminal Switch#configure terminal
Switch(config)#vtp mode server Switch(config)#vtp mode client
Switch(config)#vtp domain MYNETWORK Switch(config)#vtp domain MYNETWORKSwitch(config)#vtp
Switch(config)#vtp password cisco password cisco
Switch(config)#vlan 10 Switch(config)#interface FastEthernet0/1
Switch(config-vlan)#name Sales Switch(config-if)#switchport mode trunk
Switch(config-vlan)#exit Switch(config-if)#end
Switch(config)#vlan 20 Switch#show vlan brief
Switch(config-vlan)#name HR
Switch(config-vlan)#exit
Switch(config)#interface FastEthernet0/1S
After configuring Switch2 as a VTP client and setting the correct
witch(config-if)#switchport mode trunk
domain and password, the VLANs created on Switch1 (Sales and
Switch(config-if)#end
HR) will automatically appear on Switch2's VLAN database.
Introduction to Spanning Tree Protocol (STP)
While redundant links are vital for network reliability, they also introduce the problem of broadcast storms and MAC address table instability
due to loops. This is where Spanning Tree Protocol (STP) comes in.
Blocking Listening
Receives BPDUs, does not forward user data. Prevents loops. Receives BPDUs, learns root bridge and path. Does not forward
Initial state for ports. user data. Transitions from Blocking.
Learning Forwarding
Receives BPDUs, learns MAC addresses and adds them to MAC Receives and sends BPDUs, learns MAC addresses, and forwards
table. Does not forward user data. Transitions from Listening. user data. Full operational state. Transitions from Learning.
A port typically takes about 30-50 seconds to transition from blocking to forwarding, which can cause delays during topology changes. Newer
versions of STP, like Rapid PVST+ (RSTP), significantly reduce this convergence time.
STP Configuration Scenario
This scenario demonstrates how STP automatically blocks a redundant link to prevent a loop in a simple three-switch topology. We will
manually configure one switch to be the root bridge for a specific VLAN.