From 5afa2a2f027964cb0858e6f71fc05158e6c48e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BF=97=E7=BF=94?= <230825509@qq.com> Date: Thu, 9 May 2024 11:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...56\211\345\205\250\346\250\241\345\274\217.md" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "\345\220\264\345\277\227\347\277\224/20240508\347\253\257\345\217\243\345\256\211\345\205\250\346\250\241\345\274\217.md" diff --git "a/\345\220\264\345\277\227\347\277\224/20240508\347\253\257\345\217\243\345\256\211\345\205\250\346\250\241\345\274\217.md" "b/\345\220\264\345\277\227\347\277\224/20240508\347\253\257\345\217\243\345\256\211\345\205\250\346\250\241\345\274\217.md" new file mode 100644 index 0000000..b7fcc81 --- /dev/null +++ "b/\345\220\264\345\277\227\347\277\224/20240508\347\253\257\345\217\243\345\256\211\345\205\250\346\250\241\345\274\217.md" @@ -0,0 +1,15 @@ +## 端口安全模式 + +端口安全模式原理:每个pc的mac地址不一,我们可以将端口与电脑的mac地址绑定 + +将端口模式改为acc模式:switchport mode access + +设置接口允许的最大连接数1:switchport port-security maximum 1 + +设置超过连接数的违规设备的处理方式(关机):switchport port-security violation shutdown + +设置哪一个mac地址跟端口绑定: switchport port-security mac-address sticky + +需要先ping通让交换机学习才可以生效 + +特权模式:clear port-security sticky / all 清除学习的地址 / 全部地址(需要手动关闭和开启端口) \ No newline at end of file -- Gitee