diff --git "a/38\351\237\251\345\275\254/2024.5.8\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.md" "b/38\351\237\251\345\275\254/2024.5.8\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.md" new file mode 100644 index 0000000000000000000000000000000000000000..3debfccb2757464f0b82d827d970a698c0d3d5e4 --- /dev/null +++ "b/38\351\237\251\345\275\254/2024.5.8\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.md" @@ -0,0 +1,40 @@ +## 交换机的端口安全配置 + +`掌握交换机的端口安全功能,控制用户的安全接入` + +```js +1 先选择要进行安全设置的端口 + 进入全局模式 int f0/1 +2 启用交换机接口的安全设置 + switchport port-security +3 改成访问模式 + switchport mode access + switchport post-security--------再次启用交换机接口安全设置 +4 启动安全设置后 + switchport post-security maximum 1-----------设置最大连接的终端数量 + switchport port-seecurity violation shutdown-----设置最大连接数的违规设备的处理方式 + switchport poeer-security mac-adress sticky------绑定正确的mac地址 +5 * 为了让交换机记录到第一次正确的MAC地址,需要ping一次 + * 如果要重启被交换规则关闭的端口,先手动关闭一次再开启 +clear port-security sticky----------清除交换机已经记录安全MAC地址,重新开始记录 +``` + + + +​ switchport port-security maximum ? // 该命令用来设置此端口可以连接的客户机的最大数量,范围是1-132 + +​ switchport port-security violation ? //该命令用来设置如果连接的客户机数量超过规定时所要采取的措施 + +* protect Security violation protect mode //保护模式:超过限制客户机的帧将被抛弃 + +* restrict Security violation restrict mode //限制模式:超过限制就通过SNMP通告管理员 + +* shutdown Security violation shutdown mode //关闭模式:超过限制就关闭端口 + +​ switchport port-security mac-address //该命令用来绑定客户机MAC地址 + +* H.H.H 48 bit mac address //手动输入要绑定的地址 +* sticky Configure dynamic secure addresses as sticky //自动粘贴前 + +Switch#clear port-security sticky //清除所有已绑定的粘性MAC地址,清除后,再手动开启端口 + diff --git "a/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 VLAN\351\227\264\344\272\222\351\200\232.pkt" "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 VLAN\351\227\264\344\272\222\351\200\232.pkt" new file mode 100644 index 0000000000000000000000000000000000000000..79d8d1aa6e06d212145041d87b9f593ee42883b3 Binary files /dev/null and "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 VLAN\351\227\264\344\272\222\351\200\232.pkt" differ diff --git "a/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 \345\215\225\350\207\202\350\267\257\347\224\261\345\222\214ospf.pkt" "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 \345\215\225\350\207\202\350\267\257\347\224\261\345\222\214ospf.pkt" new file mode 100644 index 0000000000000000000000000000000000000000..a88edba81e6e2156b83fa511a69a189e89818dc6 Binary files /dev/null and "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272 \345\215\225\350\207\202\350\267\257\347\224\261\345\222\214ospf.pkt" differ diff --git "a/38\351\237\251\345\275\254/\344\275\234\344\270\232/\345\215\225\344\272\244\346\215\242\346\234\272\345\210\222\345\210\206VLAN.pkt" "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\345\215\225\344\272\244\346\215\242\346\234\272\345\210\222\345\210\206VLAN.pkt" new file mode 100644 index 0000000000000000000000000000000000000000..a8b4814ad8877f6e8ca22e4585b14731653b61a4 Binary files /dev/null and "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\345\215\225\344\272\244\346\215\242\346\234\272\345\210\222\345\210\206VLAN.pkt" differ diff --git "a/38\351\237\251\345\275\254/\344\275\234\344\270\232/\351\235\231\346\200\201\350\267\257\347\224\261\351\205\215\347\275\256.pkt" "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\351\235\231\346\200\201\350\267\257\347\224\261\351\205\215\347\275\256.pkt" new file mode 100644 index 0000000000000000000000000000000000000000..e14cdfd298ffbb333b2bf8e65ee3c9c740e3689b Binary files /dev/null and "b/38\351\237\251\345\275\254/\344\275\234\344\270\232/\351\235\231\346\200\201\350\267\257\347\224\261\351\205\215\347\275\256.pkt" differ