| 场景 | 防 ARP 欺骗/中间人攻击 |
|---|---|
| 适用 | Cisco Catalyst 交换机 |
| 前置 | 必须先启用 DHCP Snooping(或配置静态绑定表) |
思科 IOS
思科 IOS
ip dhcp snooping
ip dhcp snooping vlan 10
ip arp inspection vlan 10
interface GigabitEthernet0/1
ip dhcp snooping trust
ip arp inspection trust
show ip arp inspection vlan 10华为 VRP
华为 VRP
dhcp snooping enable
interface GigabitEthernet0/0/1
dhcp snooping enable
arp anti-attack check user-bind enableH3C Comware
H3C Comware
arp detection enable
interface GigabitEthernet1/0/2
arp detection trust
! 用户接入端口默认做 ARP 合法性检查差异:思科 DAI 的检查依赖 DHCP Snooping 数据库或静态 source binding,没有绑定表时所有 ARP 都会被丢弃(含合法流量);华为用 arp anti-attack check user-bind,H3C 用 arp detection。