Make sure at least one of static IP source guard binding and DHCP snooping is configured for user
•
validity check. Otherwise, ARP packets received from ARP untrusted ports are discarded.
You must specify a VLAN for an IP source guard binding entry. Otherwise, no ARP packets can
•
match the IP source guard binding entry.
Configuration procedure
To configure user validity check:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
Enable ARP detection.
4.
Return to system view.
5.
Enter Layer 2 Ethernet interface
view or Layer 2 aggregate
interface view.
6.
(Optional.) Configure the
interface as a trusted interface
excluded from ARP detection.
Configuring ARP packet validity check
Enable validity check for ARP packets received on untrusted ports and specify the following objects to be
checked:
src-mac—Checks whether the sender MAC address in the message body is identical to the source
•
MAC address in the Ethernet header. If they are identical, the packet is forwarded. Otherwise, the
packet is discarded.
dst-mac—Checks the target MAC address of ARP replies. If the target MAC address is all-zero,
•
all-one, or inconsistent with the destination MAC address in the Ethernet header, the packet is
considered invalid and discarded.
ip—Checks the sender and target IP addresses of ARP replies, and the sender IP address of ARP
•
requests. All-one, or multicast IP addresses are considered invalid and the corresponding packets
are discarded.
To configure ARP packet validity check:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
Enable ARP detection.
4.
Return to system view.
5.
Enable ARP packet validity check
and specify the objects to be
checked.
Command
system-view
vlan vlan-id
arp detection enable
quit
interface interface-type
interface-number
arp detection trust
Command
system-view
vlan vlan-id
arp detection enable
quit
arp detection validate
{ dst-mac | ip | src-mac }
*
337
Remarks
N/A
N/A
By default, ARP detection is disabled.
N/A
N/A
By default, an interface is untrusted.
Remarks
N/A
N/A
By default, ARP detection is disabled.
N/A
By default, ARP packet validity check
is disabled.