Dynamic ARP Inspection Commands
Use these commands to configure Dynamic ARP Inspection (DAI), which rejects invalid and malicious ARP packets.
Dynamic ARP Inspection (DAI) is a security feature that rejects invalid and malicious ARP packets. DAI prevents a class of man-in-the-middle attacks, where an unfriendly station intercepts traffic for other stations by poisoning the ARP caches of its unsuspecting neighbors. The miscreant sends ARP requests or responses mapping another station’s IP address to its own MAC address.
DAI relies on DHCP snooping. DHCP snooping listens to DHCP message exchanges and builds a binding database of valid MAC addresses, IP addresses, VLANs, and interfaces.
When DAI is enabled, the switch drops ARP packets whose sender MAC address and sender IP address do not match an entry in the DHCP snooping bindings database. You can optionally configure additional ARP packet validation.
ip arp inspection vlan
M4250
M4350
Use this command to enable Dynamic ARP Inspection on a list of comma-separated VLAN ranges.
| Default | Disabled |
| Format | ip arp inspection vlan vlan-list |
| Mode | Global Config |
no ip arp inspection vlan
Use this command to disable Dynamic ARP Inspection on a list of comma-separated VLAN ranges.
| Format | no ip arp inspection vlan vlan-list |
| Mode | Global Config |
ip arp inspection validate
M4250
M4350
Use this command to enable additional validation checks such as source MAC address (src-mac) validation, destination MAC address (dst-mac) validation, IP address validation, and interface validation on the received ARP packets. You can also enable a combination of such validations.
Each instance of the command overrides the configuration of the previous command. For example, if a command enables source-mac and destination-mac validations, and a second command enables IP validation only, the source-mac and destination-mac validations are disabled as a result of the second command.
| Default | Disabled |
| Format | ip arp inspection validate {[src-mac [dst-mac] [ip]] | [dst-mac [ip]] | ip | interface} |
| Mode | Global Config |
no ip arp inspection validate
Use this command to disable the additional validation checks on the received ARP packets.
| Format | no ip arp inspection validate {[src-mac [dst-mac] [ip]] | [dst-mac [ip]] | ip | interface} |
| Mode | Global Config |
ip arp inspection vlan
M4250
M4350
Use this command to enable additional validation checks on the ARP packets that are received on a VLAN or a list of comma-separated VLAN ranges. As an option, you can enable logging of invalid ARP packets and set an interval from 0 to 86400 minutes.
| Default | Enabled |
| Format | ip arp inspection vlan vlan-list [logging] [interval minutes] |
| Mode | Global Config |
no ip arp inspection vlan
Use this command to disable additional validation checks on the ARP packets that are received on a VLAN or a list of comma-separated VLAN ranges, and disable logging of invalid ARP packets.
| Format | no ip arp inspection vlan vlan-list [logging] [interval] |
| Mode | Global Config |
ip arp inspection trust
M4250
M4350
Use this command to configure an interface or range of interfaces as trusted for Dynamic ARP Inspection.
| Default | Disabled |
| Format | ip arp inspection trust |
| Mode | Interface Config |
no ip arp inspection trust
Use this command to configure an interface as untrusted for Dynamic ARP Inspection.
| Format | no ip arp inspection trust |
| Mode | Interface Config |
ip arp inspection limit
M4250
M4350
Use this command to configure the rate limit and burst interval values for an interface or range of interfaces. Configuring none for the limit means the interface is not rate limited for Dynamic ARP Inspections. The maximum packets per second (pps) value shown in the range for the rate option might be more than the hardware-allowable limit. Therefore, we recommend that you take the switch performance into account before you configure the maximum pps rate. The pps rate range is from 0 to 300 pps. The burst interval is from 1 to 15 seconds.
| Default | 15 pps for rate and 1 second for burst-interval. |
| Format | ip arp inspection limit {rate pps [burst interval seconds] | none} |
| Mode | Interface Config |
no ip arp inspection limit
Use this command to set the rate limit and burst interval values for an interface to the default values of 15 pps and 1 second, respectively.
| Format | no ip arp inspection limit |
| Mode | Interface Config |
ip arp inspection filter
M4250
M4350
Use this command to configure the ARP ACL used to filter invalid ARP packets on a list of comma-separated VLAN ranges. If the static keyword is specified, packets that do not match a permit statement are dropped without consulting the DHCP snooping bindings.
| Default | No ARP ACL is configured on a VLAN. |
| Format | ip arp inspection filter acl-name vlan vlan-list [static] |
| Mode | Global Config |
no ip arp inspection filter
Use this command to unconfigure the ARP ACL used to filter invalid ARP packets on a list of comma-separated VLAN ranges.
| Format | no ip arp inspection filter acl-name vlan vlan-list [static] |
| Mode | Global Config |
arp access-list
M4250
M4350
Use this command to create an ARP ACL and let the CLI enter the ARP Access-list Config mode.
| Format | arp access-list acl-name |
| Mode | Global Config |
no arp access-list
Use this command to delete a configured ARP ACL.
| Format | no arp access-list acl-name |
| Mode | Global Config |
permit ip host mac host
M4250
M4350
Use this command to configure a rule that permits a sender’s IP address and MAC address combination for ARP packet validation.
| Format | permit ip {any | host ip-address} mac {any | host mac-address} |
| Mode | ARP Access-list Config |
no permit ip host mac host
Use this command to delete a rule that permits a sender’s IP address and MAC address combination.
| Format | no permit ip {any | host ip-address} mac {any | host mac-address} |
| Mode | ARP Access-list Config |
deny ip host mac host
M4250
M4350
Use this command to configure a rule that denies a sender’s IP address and MAC address combination for ARP packet validation.
| Format | deny ip {any | host ip-address} mac {any | host mac-address} |
| Mode | ARP Access-list Config |
no deny ip host mac host
Use this command to delete a rule that denies a sender’s IP address and MAC address combination.
| Format | no deny ip {any | host ip-address} mac {any | host mac-address} |
| Mode | ARP Access-list Config |
remark
M4250
M4350
Use this command to add a remark to the ARP ACL.
| Format | remark string |
| Mode | ARP Access-list Config |
no remark
Use this command to delete a remark from the ARP ACL.
| Format | no remark string |
| Mode | ARP Access-list Config |
show ip arp inspection
M4250
M4350
Use this command to display the Dynamic ARP Inspection global configuration and configuration on all the VLANs. With the optional vlan keyword and vlan-list argument (that is, comma separated VLAN ranges), the command displays the global configuration and configuration on all the VLANs in the VLAN list. For the vlan-list argument, you can enter a list of VLANs (for example, 12-18 or 12,14) to display the statistics on all DAI-enabled VLANs in the list, or enter a single VLAN to display the statistics for only that VLAN. The global configuration includes the source mac validation, destination mac validation and invalid IP validation information.
| Format | show ip arp inspection [vlan vlan-list] |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Source MAC Validation | Displays whether Source MAC Validation of ARP frame is enabled or disabled. |
| Destination MAC Validation | Displays whether Destination MAC Validation is enabled or disabled. |
| IP Address Validation | Displays whether IP Address Validation is enabled or disabled. |
| VLAN | The VLAN ID for each displayed row. |
| Configuration | Displays whether DAI is enabled or disabled on the VLAN. |
| Log Invalid | Displays whether logging of invalid ARP packets is enabled on the VLAN. |
| ACL Name | The ARP ACL Name, if configured on the VLAN. |
| Static Flag | If the ARP ACL is configured static on the VLAN. |
Command example:
(NETGEAR Switch) #show ip arp inspection vlan 10-12
Source Mac Validation : Disabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Log Invalid ACL Name Static flag
---- ------------- ----------- --------- ----------
10 Enabled Enabled H2 Enabled
11 Disabled Enabled
12 Enabled Disabled
show ip arp inspection statistics
M4250
M4350
Use this command to display the statistics of the ARP packets that are processed by Dynamic ARP Inspection (DAI). For the optional vlan keyword and vlan-list argument, you can enter a list of VLANs (for example, 12-18 or 12,14) to display the statistics on all DAI-enabled VLANs in the list, or enter a single VLAN to display the statistics for only that VLAN. If you do not include the vlan keyword and vlan-list argument, the command output displays a summary of the forwarded and dropped ARP packets.
| Format | show ip arp inspection statistics [vlan vlan-list] |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| VLAN | The VLAN ID for each displayed row. |
| Forwarded | The total number of valid ARP packets forwarded in this VLAN. |
| Dropped | The total number of not valid ARP packets dropped in this VLAN. |
| DHCP Drops | The number of packets dropped due to DHCP snooping binding database match failure. |
| ACL Drops | The number of packets dropped due to ARP ACL rule match failure. |
| DHCP Permits | The number of packets permitted due to DHCP snooping binding database match. |
| ACL Permits | The number of packets permitted due to ARP ACL rule match. |
| Bad Src MAC | The number of packets dropped due to Source MAC validation failure. |
| Bad Dest MAC | The number of packets dropped due to Destination MAC validation failure. |
| Invalid IP | The number of packets dropped due to invalid IP checks. |
Command example:
The output of the show ip arp inspection statistics command lists the summary of forwarded and dropped ARP packets on all DAI-enabled VLANs:
VLAN Forwarded Dropped
---- --------- -------
10 90 14
20 10 3
Command example:
(NETGEAR Switch) #show ip arp inspection statistics vlan vlan-list
VLAN DHCP ACL DHCP ACL Bad Src Bad Dest Invalid
Drops Drops Permits Permits MAC MAC IP
----- -------- --------- ----------- --------- ---------- ----------- ---------
10 11 1 65 25 1 1 0
20 1 0 8 2 0 1 1
clear ip arp inspection statistics
M4250
M4350
Use this command to reset the statistics for Dynamic ARP Inspection on all VLANs.
| Default | none |
| Format | clear ip arp inspection statistics |
| Mode | Privileged EXEC |
show ip arp inspection interfaces
M4250
M4350
Use this command to display the Dynamic ARP Inspection configuration on all the DAI-enabled interfaces. An interface is said to be enabled for DAI if at least one VLAN, that the interface is a member of, is enabled for DAI. If you enter the optional interface argument, the command displays the values for that interface whether the interface is enabled for DAI or not. 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 ip arp inspection interfaces [unit/slot/port] |
| Mode |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Interface | The interface ID for each displayed row. |
| Trust State | Whether the interface is trusted or untrusted for DAI. |
| Rate Limit | The configured rate limit value in packets per second. |
| Burst Interval | The configured burst interval value in seconds. |
Command example:
(NETGEAR Switch) #show ip arp inspection interfaces
Interface Trust State Rate Limit Burst Interval
(pps) (seconds)
--------------- ----------- ---------- ---------------
0/1 Untrusted 15 1
0/2 Untrusted 10 10
show arp access-list
M4250
M4350
Use this command to display the configured ARP ACLs with the rules. Giving an ARP ACL name as the argument displays only the rules in that ARP ACL.
| Format | show arp access-list [acl-name] |
| Mode |
Privileged EXEC User EXEC |
Command example:
(NETGEAR Switch) #show arp access-list
ARP access list H2
permit ip host 1.1.1.1 mac host 00:01:02:03:04:05
permit ip host 1.1.1.2 mac host 00:03:04:05:06:07
ARP access list H3
ARP access list H4
permit ip host 2.1.1.2 mac host 00:03:04:05:06:08