P_ARPRXTABLE#

code: 308

# set
<module-index>/<port-index> P_ARPRXTABLE <entries>

# get
<module-index>/<port-index> P_ARPRXTABLE ?

Description#

Port ARP table used to reply to incoming ARP requests.

Actions#

set, get

Parameters#

  1. entries: hex13 list, each hex13 value corresponds to an entry in the ARP table, which contains the following parameters

  • ipv4_address: hex4, IP address to match to the Target IP address in the ARP requests

  • prefix: hex2, The prefix used for address matching

  • patched_mac: hex, Whether the target MAC address will be patched with the part of the IP address that is not masked by the prefix

  • mac_address: hex6, The target MAC address to return in the ARP reply

Example#

# set
input:  0/1 P_ARPRXTABLE 0x0A0A0A0A0018011122334455660B0B0B0B001801998877665544
output: <OK>

# get
input:  0/1 P_ARPRXTABLE ?
output: 0/1 P_ARPRXTABLE 0x0A0A0A0A0018011122334455660B0B0B0B001801998877665544


0x0A0A0A0A0018011122334455660B0B0B0B001801998877665544 corresponds to two entries in the ARP RX table:

===========   =======  ==================   ==============
IP Address    Prefix   MAC Address          Patch MAC
===========   =======  ==================   ==============
10.10.10.10   24       11 22 33 44 55 66    Yes
11.11.11.11   24       11 22 33 44 55 66    Yes
===========   =======  ==================   ==============