SOURCECODEBD.NET

Live Experience

5. IMPLEMENTING SPANNING TREE PROTOCOL_T7

HOW TO LOAD BALANCING IN STP
 
Task 1  
 
Configure VTP to propagate VLAN information. Create 2 VLANs (VLAN 2, VLAN 3)  
on SW1 (VTP server). Configure SW1 to be the root for VLAN 2 and configure SW2 to  
be the root for VLAN 3.  
  
Switch1   
                                                           
                                                                     
spanning-tree vlan 2 root primary                                   
  
Switch2
 
spanning-tree vlan 3 root primary 
 
  
Verification :  
  
SW1#show spanning-tree vlan 2  
 
The output displays that SW1 is root for VLAN 2 i.e  both ports fa 0/9 and fa 0/11 are in  
forwarding state.  
  
SW1#show spanning-tree vlan 3
 
The output displays that SW1 is not root for VLAN 3 and port fa 0/9 is in forwarding and  
fa 0/11 is in blocked state as it is not the root bridge. Thus load balancing is achieved.  
  
 
Task 2   
 
(Scenario Based on Task 1)  
 
Configure dotlq trunk between SW1 and  SW2 on ports fa0/9 and fa0/11. Configure VTP  
on both the switches to propagate VLAN information. Create VLANs 1 to 6 on SW1  
(server). Allow VLANs 2, 4, 6 on port fao/9 on  SW1 &  SW2. Allow VLANs 1, 3, 5 on  
port fao/11 on SW1 & SW2.  
  
Switch1                                                               
                                                                     
Int fa0/9                                                             
Switchport trunk encapsulation dotlq                                   
Switchport mode trunk                                                 
Switchport trunk allowed vlan 2, 4, 6                                 
                                                                     
Int fa0/11                                                            
Switchport trunk encapsulation dotlq                                   
Switchport mode trunk                                                 
Switchport trunk allowed vlan 1, 3, 5                                  
                                                                     
Switch2  
 
Int fa0/9
Switchport trunk encapsulation dotlq
Switchport mode trunk
Switchport trunk allowed vlan 2, 4, 6
 
Int fa0/11
Switchport trunk encapsulation dotlq
Switchport mode trunk
Switchport trunk allowed vlan 1, 3, 5
 
  
Verification:  
 
SW1#show int trunk
 
The output displays that on port fa0/9 only vlans 2, 4, 6 and on port fa0/11 only vlans  
1,3,5 are allowed  
  
SW1#show spanning-tree vlan 2
 
The output displays that port fa0/9 is in forwarding state as vlans 2 is configured to allow  
on port fa0/9.  
  
SW1#show spanning-tree vlan 3
You are here: Home / Switching / HOW TO LOAD BALANCING IN STP