diff --git "a/43\346\236\227\346\200\241\347\220\264/20240507_\347\253\257\345\217\243\350\201\232\345\220\210\357\274\214\346\240\221\345\215\217\350\256\256\351\205\215\347\275\256.md" "b/43\346\236\227\346\200\241\347\220\264/20240507_\347\253\257\345\217\243\350\201\232\345\220\210\357\274\214\346\240\221\345\215\217\350\256\256\351\205\215\347\275\256.md" new file mode 100644 index 0000000000000000000000000000000000000000..ef2c67ce7c52b55f8dce665e7945d039a93f3dc7 --- /dev/null +++ "b/43\346\236\227\346\200\241\347\220\264/20240507_\347\253\257\345\217\243\350\201\232\345\220\210\357\274\214\346\240\221\345\215\217\350\256\256\351\205\215\347\275\256.md" @@ -0,0 +1,70 @@ +##### 树协议配置 + +1. 交换机默认有生成树协议STP在工作,收敛时间很慢 +2. 作用:生成树协议的作用,防止冗余链路形成环路 +3. RSTP:快速生成树协议RSTP,收敛时间很快 + +```C# +spanning-tree mode rapid-pvst //指定生成树协议的类型为RSTP +show spanning-tree //査看交换机生成树运行状态 +show spanning-tree summary //査看生成树的配置信息 +``` + + + +##### 端口聚合配置 + +```c# +Switch(config)#int r f0/3-5 +Switch(config-if-range)#swi mode trunk //将端口配置为Trunk模式 +Switch(config-if-range)#channel-group 1 mode on //加入链路组1并开启 +Switch(config-if-range)#exit +Switch(config)#port-channel load-balance dst-ip //按目的IP地址来实现负载均衡 +Switch(config)#exit +Switch#show etherchannel summary //显示以太通道信息 +Switch#show interfaces etherchannel //显示聚合端口信息 +``` + + + +##### 作业 + +- 树协议配置 + + ![image-20240507112240054](./imgs/0571.png) + + ```c# + Switch>en + Switch#conf t + Switch(config)#int r f0/3-5 + Switch(config-if-range)#swi m t + Switch(config-if-range)#ex + Switch(config)#spanning-tree mode rapid-pvst + Switch(config)#do show sp + Switch(config)#inter f0/3 + Switch(config-if)#shutdown + ``` + + ![image-20240507113320183](./imgs/0572.png) + + ![image-20240507113256763](./imgs/0573.png) + +- 端口聚合配置 + + ![image-20240507112240054](./imgs/0571.png) + +```c# +Switch>en +Switch#conf t +Switch(config)#int r f0/3-5 +Switch(config-if-range)#swi m t +Switch(config-if-range)#channel-group 1 mode on +Switch(config)#port-channel load-balance dst-ip +Switch(config)#ex +Switch#show etherchannel summary +Switch#show int etherchannel +``` + +![image-20240507112345994](./imgs/0574.png) + +![image-20240507112406221](./imgs/0575.png) \ No newline at end of file diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0571.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0571.png" new file mode 100644 index 0000000000000000000000000000000000000000..b25a0de98032663fc69843824543804b041fc957 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0571.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0572.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0572.png" new file mode 100644 index 0000000000000000000000000000000000000000..7dab855846af831c35f03c8212da2a6f5582e0a5 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0572.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0573.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0573.png" new file mode 100644 index 0000000000000000000000000000000000000000..dcf8f06084ffd09cad93adc137e47f4f9f52f5a4 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0573.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0574.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0574.png" new file mode 100644 index 0000000000000000000000000000000000000000..c260df711cae997eec35426b90d5f22b619be9a9 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0574.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0575.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0575.png" new file mode 100644 index 0000000000000000000000000000000000000000..190179579eb2c49257b4084cf7c99c4e54802b79 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0575.png" differ