< Home

arp send-packet

Function

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

Format

arp send-packet ip-address mac-address interface interface-type interface-number [ vid vid ]

Parameters

Parameter Description Value
ip-address Specifies a destination IP address for a unicast ARP request packet to be sent. This value is in dotted decimal notation.
mac-address Specifies a destination MAC address for a unicast ARP request packet to be sent. The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0 or fc01. If an H contains less than four digits, 0s are added ahead. For example, e0 is equal to 00e0.
interface interface-type interface-number Specifies the type and number of an interface for sending out a unicast ARP request packet. -
vid vid Specifies an outer tag value for a unicast ARP request packet to be sent. The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check whether a peer device is reachable and learn a peer device's MAC address, run the arp send-packet command to configure a local interface to send a unicast ARP request packet 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 packet to the local device. Then, the local device uses information carried in the ARP reply packet to create or update an ARP entry for the peer.
  • If the peer is unreachable, the peer device does not send an ARP reply packet.

Example

# Configure Eth-Trunk 1 to send a unicast ARP request packet that carries the destination IP address 10.1.1.1 and destination MAC address 3-3-3.

<sysname> arp send-packet 10.1.1.1 3-3-3 interface Eth-Trunk 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >