P4G_L2_SERVER_MAC
# set
<module-index>/<port-index> P4G_L2_SERVER_MAC [<group_index>] <mac_address> <mode>
# get
<module-index>/<port-index> P4G_L2_SERVER_MAC [<group_index>] ?
Description
Configure the server MAC address. This is either a single static MAC address or an embedding of the four byte IPv4 address into the lower 4 bytes of the 6 byte MAC address.
Actions
set, get
Parameters
mac_address
: hex list, the MAC address specified as hexadecimal
mode
: byte, whether to embed the IP address in MACDONT_EMBED_IP = 0
EMBED_IP = 1
Example
# set
input: 0/1 P4G_L2_SERVER_MAC [0] 0x000000000000 DONT_EMBED_IP
output: <OK>
# get
input: 0/1 P4G_L2_SERVER_MAC [0] ?
output: 0/1 P4G_L2_SERVER_MAC [0] 0x000000000000 DONT_EMBED_IP