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 0000000000000000000000000000000000000000..7a1e8abdad6bb47697592138b869b5443471f8a3 --- /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