diff --git "a/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.png" "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.png" new file mode 100644 index 0000000000000000000000000000000000000000..06e4b1c556be42885c21517abf0cfc332f90ff8d Binary files /dev/null and "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.png" differ diff --git "a/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20250508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250.md" "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20250508_\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..6e8d064a36a715c27b25b33555406c7eb2ba54d6 --- /dev/null +++ "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/20250508_\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,23 @@ +# 交换机端口安全的配置 + +```js +1.选择要进行安全设置的端口 + Switch(config)#int f0/1 +2.改成访问模式access + Switch(config-if)#switchport mode access +3.启用交换机接口的接口安全设置 + Switch(config-if)#switchport port-security +4.设置最大允许连接的终端数量1 + Switch(config-if)#switchport port-security maximum 1 +5.设置超过最大连接数的违规设备的处理方式 + Switch(config-if)#switchport port-security violation shutdown +6.绑定正确的MAC地址 + Switch(config-if)#switchport port-security mac-address sticky + +.如何测试是否生效,前提是交换机要记录到正确的MAC地址 +//为了让交换机记录到第一次正确的MAC地址,需要ping一次, +// 要重新启用被安全规则关闭的端口,先手动关闭一次,再手动开启。 +.清除交换机已经记录的安全MAC地址,重新开始记录 + Switch#clear port-security sticky +``` + diff --git "a/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/\344\275\234\344\270\232\346\210\252\345\233\276.png" "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/\344\275\234\344\270\232\346\210\252\345\233\276.png" new file mode 100644 index 0000000000000000000000000000000000000000..8f559fa18217cb65bb2ec27d2dd6abb4041ddac7 Binary files /dev/null and "b/49\351\253\230\351\233\205\350\257\227/20240508_\344\272\244\346\215\242\346\234\272\347\253\257\345\217\243\345\256\211\345\205\250/\344\275\234\344\270\232\346\210\252\345\233\276.png" differ diff --git "a/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/1.pkt" "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/1.pkt" new file mode 100644 index 0000000000000000000000000000000000000000..1a1809a863aa0155ebf00d4c940c4599243ee3fb Binary files /dev/null and "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/1.pkt" differ diff --git "a/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" new file mode 100644 index 0000000000000000000000000000000000000000..e821ef4aee3c07167e55d9c85b0dc174297afd0d --- /dev/null +++ "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272.md" @@ -0,0 +1,19 @@ +# 三层交换机 + +开启路由功能 + +​ ---作用让不同网段的ip互通,全局模式 + +​ ip routing + +开启端口的三层功能 + +​ ---让二层端口变成三层端口,使其可以绑定IP [要先进入对应的端口]int f 0/n + +​ no switchport + +将trunk模式先封装成dot1q协议模式-->才可以设置turnk,接口模式 + +​ switchport trunk encapsulation dot1q + +​ switchport mode trunk \ No newline at end of file diff --git "a/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\275\234\344\270\232.png" "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\275\234\344\270\232.png" new file mode 100644 index 0000000000000000000000000000000000000000..57f33d56df1f147794bc8bb66b8829b51597074a Binary files /dev/null and "b/49\351\253\230\351\233\205\350\257\227/20240510_\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272/20240510_\344\275\234\344\270\232.png" differ