arp send-packet

Function

The arp send-packet command configures an interface to send a unicast Address Resolution Protocol (ARP) request message that carries the specified destination IP and MAC addresses.

Format

arp send-packet ip-address mac-address interface { interface-name | interface-type interface-number } [ vid vid [ cevid cevid ] ]

Parameters

Parameter Description Value
ip-address

Specifies the destination IP address for a unicast ARP request message to be sent.

The value is in dotted decimal notation.

mac-address

Specifies the destination MAC address for a unicast ARP request message to be sent.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

interface interface-name

Specifies the name of an interface for sending out a unicast ARP request message.

-

interface interface-type interface-number

Specifies the type and number of an interface for sending out a unicast ARP request message.

-

vid vid

Specifies the outer tag value for a unicast ARP request message to be sent.

The value is an integer ranging from 1 to 4094.

cevid cevid

Specifies the inner tag value for a unicast ARP request message to be sent.

The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
arp execute

Usage Guidelines

Usage Scenario

To check whether a peer device is reachable, run the

arp send-packet command to configure a local interface to send a unicast ARP request message that carries the peer device's IP and MAC addresses as the destination addresses.

  • If the peer is reachable, the peer sends an ARP reply message to the local device. The local device then uses information carried in the ARP reply message to create or update an ARP entry for the peer.
  • If the peer is unreachable, the peer device does not send an ARP reply message.

Example

# Configure GE0/1/0 to send a unicast ARP request message that carries the destination IP address 10.1.1.1 and destination MAC address 3-3-3.
<HUAWEI> arp send-packet 10.1.1.1 3-3-3 interface GigabitEthernet0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >