1On platforms running AMI BMC firmware (Habanero and Firestone at the moment), 2the 'Get/Set' System Boot Options' command has been extended to allow overrides 3to the network configuration to be specified. In Petitboot this will cause any 4existing network configuration to be overridden by the specified configuration. 5The format of each IPMI request is similar to that of the usual boot options 6request, with a slightly different payload. 7 8The start of the request is similar to a usual boot option override, but 9specifies the fields of interest differently, ie; 10 11Specify 'chassis bootdev', field 96, data1 0x00 0x08 0x61 0x80 12 13The rest of request format is defined by Petitboot as: - 4 byte cookie value 14(always 0x21 0x70 0x62 0x21) - 2 byte version value (always 0x00 0x01) - 1 byte 15hardware address size (eg. 0x06 for MAC address) - 1 byte IP address size (eg. 160x04 for IPv4) - Hardware (MAC) address - 1 byte flags for 'ignore' and 17'method', where method = 0 is DHCP and method = 1 is Static. And for static 18configs: - IP Address - 1 byte subnet value - Gateway address 19 20Describing each field in more detail: 21 22Specify 'chassis bootdev', field 96, data1 0x00 0x08 0x61 0x80 23 24Set a special cookie that Petitboot will recognise: 0x21 0x70 0x62 0x21 25 26Specify the version (only 1 at the moment) 0x00 0x01 27 28Specify the size of the MAC address and IP address. This is used to 29differentiate between IPv4 and IPv6 addresses, or potential future support for 30Infiniband/etc. 0x06 0x04 (6-byte MAC address, IPv4 IP address) 31 32Set the hardware address of the interface you want to override, eg: 0xf4 0x52 330x14 0xf3 0x01 0xdf 34 35Specify 'ignore' or 'static/dynamic' flags. The second byte specifies to use 36either DHCP or static IP configuration (0 for DHCP). 0x00 0x01 37 38The below fields are required if setting a static configuration: 39 40Set the IP address you want to use, eg: 0x0a 0x3d 0xa1 0x42 41 42Set the subnet mask (short notation), eg '16': 0x10 43 44Set the gateway address, eg: 0x0a 0x3d 0x2 0x1 45 46All together this should look like: 0x00 0x08 0x61 0x80 0x21 0x70 0x62 0x21 0x00 470x01 0x06 0x04 0xf4 0x52 0x14 0xf3 0x01 0xdf 0x00 0x01 0x0a 0x3d 0xa1 0x42 0x10 480x0a 0x3d 0x2 0x1 49 50To clear a network override, it is sufficient to clear out the request, or set a 51zero-cookie which Petitboot will reject. Eg: 0x00 0x08 0x61 0x80 0x00 0x00 0x00 520x00 53 54You can 'Get' the override back with 0x00 0x09 0x61 0x80 0x00 which should 55return whatever is currently set. 56