Write MAC Address
更新时间: 2026/08/06
在Gitcode上查看源码Write MAC Address
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Sets the MAC address of the mainboard to the MultiRecord record.
Privilege
BasicSetting
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 90h |
| 1 | Sub command, subcommand=00h |
| 2 | FRU device ID. The default value is 00. |
| 3 | MAC ID The meaning of this byte varies depending on products MCCA platform: This byte indicates the sequence number of interfaces of the same type. That is, the MACID of each interface starts from 1.Other products or platforms: This byte indicates the sequence number of multiple MAC addresses on the same FRU. NOTE: Network ports of different types are numbered in a unified manner. That is, ports 1 and 2 may be base ports, ports 3 and 4 may be fabric ports, port 5 is WWNN, and port 6 is WWPN. |
| 4 | Interface Type 1=Base Interface |
| MAC | |
| 5:10 | MAC Address (6 Bytes) |
| WWNN & WWPN | |
| 5:12 | WWN (8 Bytes) |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Sub command, subcommand=00h |
| 2 | FRU device ID. The default value is 00. |
Command Example
Set the MAC address of the mainboard to 00 18 82 01 02 03.
Request:
bash
ipmicmd -k "0f 00 30 90 00 00 00 01 00 18 82 01 02 03" smi 0Response:
text
0f 31 00 90 00