From 09b9ee93997391a7ee7cff0b15836a7a8cfe1f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=9C=89=E5=8D=AB?= <3411348686@qq.com> Date: Wed, 8 May 2024 22:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...257\345\217\243\345\256\211\345\205\250.md" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "\351\273\204\346\234\211\345\215\253/\347\254\224\350\256\260/20240508-16\347\253\257\345\217\243\345\256\211\345\205\250.md" diff --git "a/\351\273\204\346\234\211\345\215\253/\347\254\224\350\256\260/20240508-16\347\253\257\345\217\243\345\256\211\345\205\250.md" "b/\351\273\204\346\234\211\345\215\253/\347\254\224\350\256\260/20240508-16\347\253\257\345\217\243\345\256\211\345\205\250.md" new file mode 100644 index 0000000..3fd155a --- /dev/null +++ "b/\351\273\204\346\234\211\345\215\253/\347\254\224\350\256\260/20240508-16\347\253\257\345\217\243\345\256\211\345\205\250.md" @@ -0,0 +1,18 @@ +## 端口安全 +1 SW(conf)# int f0/1 选择你所要选的端口,可以是 03 06 23 + +2 SW(if) swport port-security 启用交换机端口安全配置 + +3 SW(if);soport mode access 将端口改为动态模式 + +4 SW(if);sport post-security 再次启用端口 + +5 SW(if) swport-security port-security maximun 1 设置端口的最大连接数 最大只能为1 + +6 SW(if) swport post-security viovlan shutonm 设置端口错误进行违规设备的处理方式 + +7 SW(if) swport post-security mac-address sticky 绑定端口的mac地址 ,先让电脑正确的访问一次让交换机学习到这个地址 + +8 SW(#) clear port-securtity stiky 清空mac地址 ,然后就可以重新学习了 + +9 SW(if) shut 要手动关闭一次 ,在重新启动一次, no shut \ No newline at end of file -- Gitee