HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Conf - Page 9

Configuring ARP, Overview, ARP message format, ARP operation

Page 9 highlights

Configuring ARP Overview The Address Resolution Protocol (ARP) is used to resolve an IP address into a physical address (Ethernet MAC address, for example). In an Ethernet LAN, a device uses ARP to resolve the IP address of the next hop to the corresponding MAC address. ARP message format ARP messages include ARP requests and ARP replies. Figure 1 shows the format of the ARP request/reply. Numbers in the figure refer to field lengths. Figure 1 ARP message format ARP message fields: • Hardware type-The hardware address type. Value 1 represents Ethernet. • Protocol type-The type of the protocol address to be mapped. The hexadecimal value 0x0800 represents IP. • Hardware address length and protocol address length-Length, in bytes, of a hardware address and a protocol address. For an Ethernet address, the value of the hardware address length field is 6. For an IPv4 address, the value of the protocol address length field is 4. • OP-Operation code, which describes type of the ARP message. Value 1 represents an ARP request, and value 2 represents an ARP reply. • Sender hardware address-Hardware address of the device sending the message. • Sender protocol address-Protocol address of the device sending the message. • Target hardware address-Hardware address of the device to which the message is being sent. • Target protocol address-Protocol address of the device to which the message is being sent. ARP operation If Host A and Host B are on the same subnet and Host A sends a packet to Host B, as shown in Figure 2, the resolution process is: 1

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

1
Configuring ARP
Overview
The Address Resolution Protocol (ARP) is used to resolve an IP address into a physical address (Ethernet
MAC address, for example).
In an Ethernet LAN, a device uses ARP to resolve the IP address of the next hop to the corresponding
MAC address.
ARP message format
ARP messages include ARP requests and ARP replies.
Figure 1
shows the format of the ARP request/reply.
Numbers in the figure refer to field lengths.
Figure 1
ARP message format
ARP message fields:
Hardware type
—The hardware address type. Value 1 represents Ethernet.
Protocol type
—The type of the protocol address to be mapped. The hexadecimal value 0x0800
represents IP.
Hardware
address
length
and
protocol
address
length
—Length, in bytes, of a hardware address
and a protocol address. For an Ethernet address, the value of the hardware address length field is
6. For an IPv4 address, the value of the protocol address length field is 4.
OP
—Operation code, which describes type of the ARP message. Value 1 represents an ARP request,
and value 2 represents an ARP reply.
Sender
hardware
address
—Hardware address of the device sending the message.
Sender
protocol
address
—Protocol address of the device sending the message.
Target
hardware
address
—Hardware address of the device to which the message is being sent.
Target
protocol
address
—Protocol address of the device to which the message is being sent.
ARP operation
If Host A and Host B are on the same subnet and Host A sends a packet to Host B, as shown in
Figure
2
, the resolution process is: