Table 3.16: LAN Configuration Parameters
Parameter Destination address
Description This is an array of destination address, each 13 bytes long. The first byte in bits 0-3 is the index into the array, you put the index here when you set the value, and that index gets set. This index comes from the alert policy entry destination field defined in table 3.38. Destination 0 is special and used by the Alert Immediate command as described in section 3.13.5. The fields are:
byte 0 bits 0-3 - The index into the array
bits 4-7 - reserved byte 1 The address format:
bits 0-3 - The address type, 0h is the only valid value, speci-
fying IP. bits 4-7 - reserved 2 Gateway selector
- use the backup gateway
bits 1-7 - reserved 3-6 The IP address to send the
tination, in network order. bytes 7-12 The Ethernet MAC address to using this destination, in network order.
Parameters 192 to 255 are OEM parameters. The rest of the parame- ters are reserved.
TBD - write this, include command, talk about config table entries.
TBD - write this, describe the formatting of LAN messages
OpenIPMI has some support for handling the LAN configuration. This is defined in the ipmi_lanparm.h include file; it has all the details on how to use this. To configure the LAN parameters for a BMC, you must first allocate a lanparm structure with:
i n t i p m i _ l a n p a r m _ a l l o c ( i p m i _ m c _ t unsigned int ipmi_lanparm
*mc, channel, t **new_lanparm);
The channel is the IPMI channel number of the LAN port you are configuring. Generally, if a server has more than one port, it will have a separate channel for each port, you will have to find the channel numbers from the manufacturer, although channels 6 and 7 are commonly used as the LAN channels.