这是阻断同网段内特定端口间互访最直接、最高效的方法。
原理:将特定端口加入同一个“隔离组”。同一个隔离组内的端口之间禁止直接通信,从而直接阻断来自扫描源端口(如GE1/0/1)的任何流量到达被扫描目标端口(如GE1/0/2)。
适用场景:适合精准控制单台交换机上特定端口之间的访问。
具体配置命令:
此方案更灵活,可以通过多种条件(如源目IP、MAC)来精细控制,但配置也相对复杂。
原理:创建一个匹配二层流量的ACL(通常是类型4000-4999的MAC ACL),然后在端口上通过QoS策略进行“出/入”方向的过滤。
适用场景:需要基于MAC地址或IP地址等多种组合条件进行过滤的复杂场景。
具体配置命令:
192.168.1.1 禁止扫描同网段 192.168.1.0/24 其他设备
interface GigabitEthernet1/0/1
port-isolate enable group 1
system-view
attack-defense tcp-scan enable
attack-defense udp-scan enable
attack-defense icmp-flood enable
attack-defense tcp-scan threshold 30
attack-defense udp-scan threshold 30
attack-defense enable
interface GigabitEthernet1/0/1
arp-rate-limit 10
port-security enable
port-security max-mac-count 2
system-view
# 1. 开启攻击防范
attack-defense enable
attack-defense tcp-scan enable
attack-defense udp-scan enable
attack-defense tcp-scan threshold 20
attack-defense udp-scan threshold 20
# 2. 所有接入口加入端口隔离
interface range GigabitEthernet1/0/1 to GigabitEthernet1/0/48
port-isolate enable group 1
arp-rate-limit 10
port-security enable
好兄弟,这个AI不准,好多命令交换机都不支持
好兄弟,这个AI不准,好多命令交换机都不支持
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明