

图1 配置ARP安全功能组网图

ARP(Address Resolution Protocol)安全是一种用于防范ARP攻击的安全机制,通过对ARP表学习及ARP报文处理进行限制与检测,保障网络设备安全。
攻击类型 | 防护措施 |
|---|---|
网关欺骗 | ARP防网关冲突 |
ARP Miss攻击 | ARP Miss限速 |
ARP泛洪攻击 | ARP报文限速 |
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] vlan batch 10 20 30
[Switch] interface gigabitethernet 1/0/1
[Switch-GE1/0/1] port link-type trunk
[Switch-GE1/0/1] port trunk allow-pass vlan 10
[Switch] interface gigabitethernet 1/0/2
[Switch-GE1/0/2] port link-type trunk
[Switch-GE1/0/2] port trunk allow-pass vlan 20
[Switch] interface gigabitethernet 1/0/3
[Switch-GE1/0/3] port link-type trunk
[Switch-GE1/0/3] port trunk allow-pass vlan 30
[Switch] interface vlanif 10
ip address 10.8.8.4 24
[Switch] interface vlanif 20
ip address 10.9.9.4 24
[Switch] interface vlanif 30
ip address 10.10.10.3 24
[Switch] arp anti-attack gateway-duplicate enable
[Switch] arp-miss speed-limit source-ip maximum 20
[Switch] arp-miss speed-limit source-ip 10.10.10.2 maximum 40
[Switch] arp speed-limit source-mac 0001-0001-0001 maximum 10
[Switch] arp speed-limit source-ip 10.9.9.2 maximum 10
display arp anti-attack configuration all
display arp packet statistics
字段 | 含义 |
|---|---|
ARP Pkt Discard For Limit | 限速丢弃 |
ARP Pkt Discard For SpeedLimit | 限速生效 |
ARP-Miss Msg Discard | Miss限速 |
👉 若出现丢弃计数,说明ARP安全策略已生效
sysname Switch
vlan batch 10 20 30
arp-miss speed-limit source-ip 10.10.10.2 maximum 40
arp speed-limit source-ip 10.9.9.2 maximum 10
arp speed-limit source-mac 0001-0001-0001 maximum 10
arp anti-attack gateway-duplicate enable
arp-miss speed-limit source-ip maximum 20
interface Vlanif10
ip address 10.8.8.4 255.255.255.0
interface Vlanif20
ip address 10.9.9.4 255.255.255.0
interface Vlanif30
ip address 10.10.10.3 255.255.255.0
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10
interface GigabitEthernet1/0/2
port link-type trunk
port trunk allow-pass vlan 20
interface GigabitEthernet1/0/3
port link-type trunk
port trunk allow-pass vlan 30
return