ARP Guard Commands
Use these commands to configure ARP Guard, which protects the switch CPU from DoS attacks with ARP messages.
The ARP Guard feature protects the switch CPU from DoS attacks with ARP messages. This feature provides the following:
- Rate limiting of incoming ARP packets on a per-host basis.
- Detecting and logging an ARP attack from a host, when a threshold is crossed.
arp-guard enable
M4250
M4350
Use this command to enable the ARP Guard feature globally.
| Default | Disabled |
| Format | arp-guard enable |
| Mode | Global Config |
no arp-guard enable
Use this command to disable the ARP Guard feature and clear all the operational entries in all ARP Guard tables.
| Format | no arp-guard enable |
| Mode | Global Config |
arp-guard rate-limit
M4250
M4350
Use this command to configure the rate limit for ARP packet processing at a rate measured in packets-per-second. You can configure the ARP packets rate limit independently on a per-port basis and on a per-host basis (hosts identified based on source IP address, VLAN ID, and port and hosts identified based on the link-layer source MAC address, VLAN ID, and port).
| Default |
Although the range is the same for all ARP rate limiting types, the default values vary and are as follows:
|
| Format | arp-guard rate-limit {per-src-ip | per-src-mac | per-port} pps |
| Mode | Global Config |
| Term | Definition |
|---|---|
| per-src-ip | Limits the rate of each source IP address. |
| per-src-mac | Limits the rate of each source MAC address. |
| per-port | Limits the rate of each port. |
| pps | The rate limit in packets-per-second, ranging from 0 to 300. A value of zero (0) means no limit, that is, the value is not tracked. |
Command example:
(NETGEAR Switch) (Config)# arp-guard rate-limit per-src-ip 100
no arp-guard rate-limit
Use this command to reset the rate limit to the corresponding default value.
| Format | no arp-guard rate-limit {per-src-ip | per-src-mac | per-port} |
| Mode | Global Config |
arp-guard attack-threshold
M4250
M4350
Use this command to configure the attack threshold for ARP packets attack detection at a rate measured in packets-per-second. You can configure the ARP packets attack threshold independently on a per-port basis and on a per-host basis (hosts identified based on source IP address, VLAN ID, and port and hosts identified based on the link-layer source MAC address, VLAN ID, and port).
| Default |
Although the range is the same for all ARP rate limiting types, the default values vary and are as follows:
|
| Format | arp-guard attack-threshold {per-src-ip | per-src-mac | per-port} pps |
| Mode | Global Config |
| Term | Definition |
|---|---|
| per-src-ip | Detects ARP attacks by hosts identified by source IP address. |
| per-src-mac | Detects ARP attacks by hosts identified by source MAC address. |
| per-port | Detects ARP attacks by port. |
| pps | The rate limit in packets-per-second, ranging from 0 to 300. A value of zero (0) means no limit, that is, the value is not tracked. |
Command example:
(NETGEAR Switch) (Config)# arp-guard attack-threshold per-src-mac 100
no arp-guard attack-threshold
Use this command to reset the attack threshold to the corresponding default value. The attack threshold for a tracking type must always equal or exceed the corresponding rate limit on the port. An error occurs if configured otherwise. An exception to this is the value 0. It is fine to have a rate limit but not an attack detect threshold of 0.
| Format | no arp-guard attack-threshold {per-src-ip | per-src-mac | per-port} |
| Mode | Global Config |
show arp-guard summary
M4250
M4350
This command displays the ARP Guard feature configuration for all interfaces, for a specific interface, or for a specific LAG (port-channel). To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show arp-guard summary [interface unit/slot/port | lag lag-number] |
| Mode | Privileged EXEC |
Command example:
The following example shows the ARP Guard configuration for all interfaces.
(NETGEAR Switch) #show arp-guard summary
(Format of column Rate-limit and Attack-threshold is per-src-ip/per-src-mac/per-port.)
Interface Admin Mode Status Rate-limit(in pps) Attack-threshold(in pps)
--------- ---------- -------- ------------------ ------------------------
Global Disabled Disabled 10/50/200 50/100/400
1/0/2 Enabled Enabled 25/50/150 50/100/200
1/0/5 Enabled Enabled 15/25/50 50/50/100
1/0/6 Enabled Enabled 50/50/150 100/100/200
1/0/18 Enabled Enabled 50/50/150 100/100/200
Command example:
The following example shows the ARP Guard configuration for interface 1/0/2.
(NETGEAR Switch) #show arp-guard summary
(Format of column Rate-limit and Attack-threshold is per-src-ip/per-src-mac/per-port.)
Interface Status Rate-limit(in pps) Attack-threshold(in pps)
--------- -------- ------------------ ------------------------
1/0/2 Enabled 25/50/150 50/100/200
show arp-guard statistics
M4250
M4350
This command displays all the ARP Guard statistics for all interfaces, including the global statistics, or the statistics for a specific interface or a specific LAG (port-channel). To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show arp-guard statistics {all | interface unit/slot/port | lag lag-number} |
| Mode | Privileged EXEC |
Command example:
The following example shows the ARP Guard statistics for interface 1/0/2.
(NETGEAR Switch) #show arp-guard statistics interface 1/0/2
Interface 1/0/2
Rate limit hit count on the interface.................. 10
Rate limit hit count per Host source IP................ 12
Rate limit hit count per Host source MAC............... 3
Attacks detected on the interface...................... 7
Attacks detected per Host source IP.................... 15
Attacks detected per Host source MAC................... 14
Command example:
The following example shows the ARP Guard statistics for interface 1/0/2.
(NETGEAR Switch) #show arp-guard statistics interface all
Global Statistics
Rate limit hit count on all interfaces................. 23
Rate limit hit count per Host source IP................ 14
Rate limit hit count per Host source MAC............... 11
Attacks detected on all interfaces..................... 22
Attacks detected per Host source IP.................... 19
Attacks detected per Host source MAC................... 32
Interface 1/0/2
Rate limit hit count on the interface.................. 13
Rate limit hit count per Host source IP................ 2
Rate limit hit count per Host source MAC............... 8
Attacks detected on the interface...................... 15
Attacks detected per Host source IP.................... 4
Attacks detected per Host source MAC................... 18
Interface 1/0/16
Rate limit hit count on the interface.................. 10
Rate limit hit count per Host source IP................ 12
Rate limit hit count per Host source MAC............... 3
Attacks detected on the interface...................... 7
Attacks detected per Host source IP.................... 15
Attacks detected per Host source MAC................... 14
show arp-guard attack history
M4250
M4350
Use this command to display the ARP-Guard attack events history for a host that is identified by the source IP address or source MAC address, or by port. If you use the all keyword, the entire ARP-Guard attack events history is displayed.
| Format | show arp-guard attack history {all | per-src-ip | per-src-mac | per-port} |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| all | Displays the ARP-Guard attack event history by hosts identified by source IP address, source MAC address, and port. |
| per-src-ip | Displays the ARP-Guard attack events history by hosts identified by source IP address. |
| per-src-mac | Displays the ARP-Guard attack events history by hosts identified by source MAC address. |
| per-port | Displays the ARP-Guard attack events history by port. |
Command example:
The following example shows the ARP Guard attack events history per host based on the source IP address.
(NETGEAR Switch) #show arp-guard attack history per-src-ip
VLAN Interface IP address Timestamp
---- --------- ------------ ---------
1 1/0/2 4.5.5.17 0h 17m 26s
10 1/0/14 7.6.14.2 0h 38m 13s
20 1/0/9 5.58.12.23 0h 54m 49s
Command example:
The following example shows the ARP Guard attack events history per host based on the source MAC address.
(NETGEAR Switch) #show arp-guard attack history per-src-mac
VLAN Interface MAC address Timestamp
---- --------- ----------------- ---------
1 1/0/5 00:1a:b3:c9:46:03 0h 12m 28s
10 1/0/26 00:2c:67:f4:33:a5 0h 30m 06s
20 1/0/13 00:d8:a5:23:b4:c9 0h 42m 37s
Command example:
The following example shows the ARP Guard attack events history per port.
(NETGEAR Switch) #show arp-guard attack history per-port
VLAN Interface Timestamp
---- --------- ----------
1 1/0/5 0h 22m 07s
10 1/0/26 0h 47m 19s
20 1/0/13 0h 12m 33s
clear arp-guard statistics
M4250
M4350
Use this command to clear the ARP guard statistics on a specific interface or lag, or for all interfaces. When you select the all keyword, the global statistics are cleared too.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | clear arp-guard statistics {all | interface unit/slot/port | lag lag-num} |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| all | Clears the ARP guard statistics and global statistics for all interfaces. |
| unit/slot/port | Clear the ARP guard statistics for the specified interface. |
| lag-num | Clear the ARP guard statistics for the specified LAG. |
clear arp-guard attack history
M4250
M4350
Use this command to clear the ARP guard attack history for the per-host source IP address category, per-host source MAC address category, or per-port category, or for all three of these categories.
| Format | clear arp-guard attack history {all | per-src-ip | per-src-mac | per-port} |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| all | Clears the ARP guard attack history for all three categories (per-source IP address, per-source MAC address, and per-port). |
| per-src-ip | Clears the ARP guard attack history for the per-source IP address category. |
| per-src-mac | Clears the ARP guard attack history for the per-source MAC address category. |
| per-port | Clears the ARP guard attack history for the per-port category. |