< Home

reset arp

Function

The reset arp command clears ARP entries and related packet statistics.

Format

reset arp { dynamic [ ip ip-address [ vpn-instance vpn-instance-name ] ] | interface interface-type interface-number[.subinterface-number ] [ ip ip-address ] | static }

Parameters

Parameter Description Value
dynamic Clears dynamic ARP entries -
interface interface-type interface-number Specifies the interface type and number.
  • interface-type specifies the type of the interface.
  • interface-number specifies the number of the interface.
-
subinterface-number Specifies the number of a sub-interface. The value is an integer that ranges from 1 to 4096.
ip ip-address

Clears dynamic ARP entries with a specified IP address.

The value is in dotted decimal notation.
vpn-instance vpn-instance-name Specifies the VPN instance name.

The value must be an existing VPN instance name.

static Static ARP entries cannot be restored after being cleared. Exercise caution when you clear static ARP entries. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When an attacked device learns a large number of invalid ARP entries, ARP entries of valid users may fail to be saved and these users may fail to access the network. The reset arp command can be used to delete ARP entries. After that, the device relearns ARP entries to ensure that users can access the network.

To delete ARP entries based on a certain IP address, you can run the reset arp dynamic ip ip-address [ vpn-instance vpn-instance-name ] or reset arp interface interface-type interface-number[.subinterface-number ] ip ip-address command.

Precautions

  • The reset arp command deletes mappings between IP addresses and MAC addresses. As a result, users may fail to access some network devices and services may be interrupted.

  • The minimum interval for running the command (only the reset arp command in which ip ip-address is not specified) to clear ARP entries is 20 seconds.

Example

# Clear dynamic ARP entries.

<HUAWEI> reset arp dynamic

# Clear dynamic ARP entries of VLANIF 100.

<HUAWEI> reset arp interface vlanif 100

# Clear the dynamic ARP entry corresponding to the IP address of 10.1.1.1 in VPN 1.

<HUAWEI> reset arp ip 10.1.1.1 vpn-instance vpn1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >