PVST+
- 1 Support ISL and IEEE802.1Q relay
- 2 Support cisco's proprietary stp extension
- 3 Add BPDU guard and root guard enhancements
- 4 Allow each VLAN to have its own root bridge
network load balancing
Through a certain load sharing technology, the requests sent from the outside are evenly distributed to a server in the symmetric structure, and the server that receives the request responds to the client's request independently. Load balancing can evenly distribute client requests to the server array, thereby providing quick access to important data and solving the problem of a large number of concurrent access services.
The five STP states of the switch port
STP (Spanning Tree Protocol) logically disconnect the loop to prevent broadcast storms in Layer 2 networks. When the line fails, the disconnected interface is activated to restore communication and function as a backup lineThe role of STP is to prune a looped bridge network into a loop-free tree topology by blocking redundant links.
condition | use |
---|---|
forwarding | Forward/receive user data |
learning | Build the bridge table |
listening | Build the "live" topology |
blocking | only receive BPDUs |
disabled | force close |
Purpose
- sw1 becomes the root bridge of vlan10
- sw2 becomes the root bridge of vlan20
experiment analysis
- Configure the vlan for the switch and configure the switch connection port as TRUNK
- Configure vlan load balancing
- Verify stp information
Experiment starts
- Use GNS3 to draw the topology map required for this experiment, and mark the key information
- Set the three switch ports as trunk and select the encapsulation type as dot1q
int range f1/0 -1 //进入多个连续接口 switchport mode trunk//中继链路 switchport trunk encapsulation dot1q//封装类型
- Divide sw1 into vlan10 vlan20 and set up vtp (if you feel troublesome here, you can directly divide vlan on three switches, I use vtp here to consolidate knowledge points)
vlan 10,20//划分vlan10 vlan20
vtp domain test//vtp名称为test
vtp mode server//服务端
vtp version 2//版本号为2
vtp pruning//vtp修剪
The vtp configuration of sw2 changes the server to the client. The settings of sw2 and sw3 are the same. After the setting is completed, check the vlan information, and you can find that sw2 and sw3 have learned the vlan division of sw1 by themselves.
- Configure vlan load balancing
sw1
spanning-tree vlan 10//启用vlan10的生成树
spanning-tree vlan 10 root primary//指定sw1为vlan10的根网桥
spanning-tree vlan 20//启用vlan20的生成树
spanning-tree vlan 20 root secondary//指定sw1为vlan的备用网桥
show spanning-tree brief//查询生成树信息
sw2
.
- Verify stp information