show logging 出現 %IP-4-DUPADDR: Duplicate address 172.30.30.62 on Vlan711, sourced by 0009.6b84.189e,判定為 ARP 病毒。mac-address static <mac-address> vlan <vlan-id> dropmac-address static 0009.6b84.189e vlan 711 dropno mac-address static 0009.6b84.189e vlan 711 dropdis log 顯示 Duplicate address 192.168.1.1 on interface Vlan-interface101, sourced by 001b-b970-266d。dis mac-address 0016-e67c-7c9f 發現從 GigabitEthernet1/0/4 學習到該 MAC。interface GigabitEthernet1/0/4
mac-address blackhole 001b-b970-266d vlan 101
interface GigabitEthernet1/0/4
undo mac-address blackhole 001b-b970-266d vlan 101
| 動作 | Cisco | H3C |
|---|---|---|
| 查詢日誌 | show logging | dis log |
| 封鎖指令 | mac-address static <mac> vlan <id> drop | mac-address blackhole <mac> vlan <id> |
| 解除封鎖 | no mac-address static ... drop | undo mac-address blackhole ... |
| 查詢 MAC 學習埠 | show mac address-table address <mac> | dis mac-address <mac> |