| 场景 | 选择超限处置策略 |
|---|---|
| 适用 | 三厂 |
| 语义 | protect=静默丢弃;restrict=丢弃并告警计数;shutdown=关闭端口并告警 |
三厂违例动作用词对照
| 处理动作 | 华为 | 思科 | H3C |
|---|---|---|---|
| 静默丢弃 | protect | violation protect | intrusion-mode blockmac |
| 丢弃 + 告警 | restrict | violation restrict | intrusion-mode blockmac 加日志 |
| 关端口 | shutdown | violation shutdown | intrusion-mode disableport |
| 临时关端口 | shutdown + 自动恢复 | shutdown + errdisable recovery | intrusion-mode disableport-temporarily |
华为 VRP
华为 VRP
interface GigabitEthernet0/0/1
port-security protect-action restrict
display port-security interface GigabitEthernet0/0/1思科 IOS
思科 IOS
interface GigabitEthernet0/1
switchport port-security violation restrict
show port-security interface GigabitEthernet0/1H3C Comware
H3C Comware
interface GigabitEthernet1/0/1
port-security intrusion-mode blockmac
display port-security interface GigabitEthernet1/0/1差异:思科 violation 缺省是 shutdown(很容易误关端口),华为缺省是 protect;上线前显式配置并核对一次。