Configuring arp snooping, Configuration procedure, Displaying and maintaining arp snooping – H3C Technologies H3C S12500 Series Switches User Manual

Page 29

Advertising
background image

16

3B

Configuring ARP snooping

ARP snooping is used in Layer 2 switching networks. It creates ARP snooping entries by using information

in ARP packets. ARP fast-reply and manual-mode MFF (MAC–Forced Forwarding) can use the ARP

snooping entries.
If you enable ARP snooping on a VLAN, ARP packets received by any interface in the VLAN are

redirected to the CPU. The CPU uses the sender IP and MAC addresses of the ARP packets, and receiving

VLAN and port to create ARP snooping entries.
The aging time and valid period of an ARP snooping entry are 25 minutes and 15 minutes. If an ARP

snooping entry is not updated in 15 minutes, it becomes invalid and cannot be used. After that, if an ARP
packet matching the entry is received, the entry becomes valid, and its aging timer restarts. If the aging

timer of an ARP entry expires, the entry is removed.
If the ARP snooping device receives an ARP packet that has the same sender IP address as a valid ARP

snooping entry, but with a different sender MAC address, it assumes it has been attacked. The ARP
snooping entry becomes invalid, and is removed after 25 minutes.

38B

Configuration procedure

To enable ARP snooping:

Step Command

Remarks

1.

Enter system view.

system-view N/A

2.

Enter VLAN view.

vlan vlan-id N/A

3.

Enable ARP snooping

arp snooping enable

By default, ARP snooping is disabled.

39B

Displaying and maintaining ARP snooping

Execute display commands in any view and reset commands in user view.

Task Command

Display ARP snooping entries (in
standalone mode).

display arp snooping [ vlan vlan-id ] [ slot slot-number ] [ count ]
display arp snooping ip ip-address [ slot slot-number ]

Display ARP snooping entries (in IRF
mode).

display arp snooping [ vlan vlan-id ] [ chassis chassis-number slot
slot-number ] [ count ]
display arp snooping ip ip-address [ chassis chassis-number slot

slot-number ]

Remove ARP snooping entries.

reset arp snooping [ ip ip-address | vlan vlan-id ]

Advertising