diff --git "a/43\346\236\227\346\200\241\347\220\264/20240508_\347\253\257\345\217\243\345\256\211\345\205\250.md" "b/43\346\236\227\346\200\241\347\220\264/20240508_\347\253\257\345\217\243\345\256\211\345\205\250.md" new file mode 100644 index 0000000000000000000000000000000000000000..1bb85f9b54bd59dbfb54f20a5925bc4eea93a5ab --- /dev/null +++ "b/43\346\236\227\346\200\241\347\220\264/20240508_\347\253\257\345\217\243\345\256\211\345\205\250.md" @@ -0,0 +1,68 @@ +##### 端口安全 + +- 配置命令 + + ```C# + int f0/1 //进去端口模式 + swi mode access //访问模式access + swi port-security //启用接口安全模式 + swi port-security maximum //设置最大允许终端电脑数量 + swi port-security violation shutdown //设置超过最大连接数当违规设备处理关闭 + swi port-security mac-address sticky //绑定正确的物理地址 + ``` + +- 如果违规安全设置,将如何开启 + + ```c# + int f0/1 //进入端口 + shutdown //关闭端口 + no shutdown //开启端口 + ``` + +- 清除安全设置 + + ```c# + clear port-security sticky + ``` + +- 如何测试是否生效 + + - 要让交换机记录到正确的MAC地址,需要在PC端ping IP地址 + +- 查看安全配置 + + ```c# + show port-security + ``` + +- 查看端口的安全配置 + + ```c# + show port-security int f0/1 + //如果port-security为Enabled,那说明是已启用 + ``` + +- 查看Mac地址 + + ```c# + show mac-address + ``` + + + + +##### 作业 + +![image-20240509001117509](./imgs/0581.png) + +- PC端 + +![image-20240509001326023](./imgs/0582.png) + +- 三层交换机RIP + +![image-20240509001401185](./imgs/0583.png) + +- 路由RIP + +![image-20240509001428724](./imgs/0584.png) \ No newline at end of file diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0581.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0581.png" new file mode 100644 index 0000000000000000000000000000000000000000..e235309d3db548d021c7f9729a864713b198ccff Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0581.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0582.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0582.png" new file mode 100644 index 0000000000000000000000000000000000000000..ee53b787917036a669b6e96ec36b2cc8f8ac70c2 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0582.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0583.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0583.png" new file mode 100644 index 0000000000000000000000000000000000000000..caaf16e6b58c95b3a6f404c9405827e0fffa1280 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0583.png" differ diff --git "a/43\346\236\227\346\200\241\347\220\264/imgs/0584.png" "b/43\346\236\227\346\200\241\347\220\264/imgs/0584.png" new file mode 100644 index 0000000000000000000000000000000000000000..588b072d196f73a313086724cc204ed0551ce5c5 Binary files /dev/null and "b/43\346\236\227\346\200\241\347\220\264/imgs/0584.png" differ