1 arp configuration, Arp overview, Arp function – H3C Technologies H3C S5120 Series Switches User Manual

Page 222: Arp message format, Arp configuration

Advertising
background image

1-1

1

ARP Configuration

When configuring ARP, go to these sections for information you are interested in:

z

ARP Overview

z

Configuring ARP

z

Configuring Gratuitous ARP

z

Displaying and Maintaining ARP

ARP Overview

ARP Function

The Address Resolution Protocol (ARP) is used to resolve an IP address into an Ethernet MAC address

(or physical address).

In an Ethernet LAN, when a device sends data to another device, it uses ARP to translate the IP

address of the destination device to the corresponding MAC address.

ARP Message Format

ARP messages are classified into ARP requests and ARP replies.

Figure 1-1

shows the format of the

ARP request/reply.

Figure 1-1 ARP message format

The following describe the fields in

Figure 1-1

.

z

Hardware type: This field specifies the hardware address type. The value “1” represents Ethernet.

z

Protocol type: This field specifies the type of the protocol address to be mapped. The hexadecimal

value “0x0800” represents IP.

z

Hardware address length and protocol address length: They respectively specify the length of a

hardware address and a protocol address, in bytes. For an Ethernet address, the value of the

hardware address length field is "6”. For an IP(v4) address, the value of the protocol address length

field is “4”.

z

OP: Operation code. This field specifies the type of the ARP message. The value “1” represents an

ARP request and “2” represents an ARP reply.

z

Sender hardware address: This field specifies the hardware address of the device sending the

message.

Advertising