From 060ed7c4ccbe64a11035ace8700dd7fe654cf068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=99=E8=8B=8F=E6=96=87?= <12071386+que-su-wen@user.noreply.gitee.com> Date: Thu, 9 May 2024 04:23:10 +0000 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 Signed-off-by: 阙苏文 <12071386+que-su-wen@user.noreply.gitee.com> --- .../20240509\347\254\224\350\256\260.md" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "22 \351\230\231\350\213\217\346\226\207/20240509\347\254\224\350\256\260.md" diff --git "a/22 \351\230\231\350\213\217\346\226\207/20240509\347\254\224\350\256\260.md" "b/22 \351\230\231\350\213\217\346\226\207/20240509\347\254\224\350\256\260.md" new file mode 100644 index 0000000..7a1e8ab --- /dev/null +++ "b/22 \351\230\231\350\213\217\346\226\207/20240509\347\254\224\350\256\260.md" @@ -0,0 +1,18 @@ + +Switch(config)#int f0/1 //进入接口 + +Switch(config-if)#switchport mode access //更改为接入模式 + +Switch(config-if)#switchport port-securit maximum 1 //设置最大数为1的安全接入人数 + +Switch(config-if)#switchport port-securit violation shutdown //设置违反规则为关闭 + +Switch(config-if)#switchport port-securit mac-address sticky //设置接入物理地址为静态 + +安全接入设置完成后第一个访问的PC端将成为安全模式的受益者。 + +show mac-address-table //查看mac地址 + +clear port-security stick 清除安全模式的静态地址(也可以更改为清除所有all), 交换机会重新学习,并接入第一台访问的PC端 + +show port-security int fxx/xx 进入xx接口查看该接口安全设置的详情 \ No newline at end of file -- Gitee