From be875c8c5ec11552ff35fc98a881e66f2fefd520 Mon Sep 17 00:00:00 2001 From: chen Date: Thu, 9 May 2024 20:12:45 +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 --- .../0508.md" | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 "24\351\231\210\346\231\223\351\233\257/0508.md" diff --git "a/24\351\231\210\346\231\223\351\233\257/0508.md" "b/24\351\231\210\346\231\223\351\233\257/0508.md" new file mode 100644 index 0000000..2ab32e9 --- /dev/null +++ "b/24\351\231\210\346\231\223\351\233\257/0508.md" @@ -0,0 +1,21 @@ +交换机端口安全配置 + +``` +选择进行安全设置的端口 +S(config)#int f 0/x + +启用交换机接口的安全设置 +S(config-if)#sw mode acc +S(config-if)#sw port-security +S(config-if)#sw port-security maximum 1 设置允许最大连接的终端数量1 +S(config-if)#sw port-security violation shut 设置超过最大连接数的违规设备的处理方式 +S(config-if)#sw port-security mac-address sticky 绑定正确的MAC地址 + +ping ip +重新开启关闭端口 + +清除交换机已经记录的安全MAC地址,重新开始记录 +S#clear port-security sticky + +``` + -- Gitee