[CentOS] Semi-OT: ipmitool or ipmicfg: set BMC to use NIC 2

Tue Jun 26 21:50:55 UTC 2018
Jon Pruente <jpruente at riskanalytics.com>

On Tue, Jun 26, 2018 at 4:10 PM, mark <m.roth at 5-cent.us> wrote:

> So you're saying I should set the MAC address for the lan channel 1 to the
> MAC address of the second NIC?

No, you don't do anything to the MAC addresses on the BMC/IPMI. They
already have their own preset values. You decide which port you want to use
for IPMI from the ones it supports and set it up with various commands (or
use the BIOS/UEFI). The gist of what you are doing is just setting up an IP
address on an embedded computer. It just so happens that that embedded
computer can simultaneously communicate over the same ports as the host
computer and may also/instead have its own dedicated port.

If you give ipmitool an incomplete command it will print out the list of
further options.

ipmitool lan set
(prints a list of sub-sub-command options)

For a static IP on the second port you'd use

lan set 2 ipaddr (whatever your desired IP is)
lan set 2 netmask (or whatever your matching netmask should
lan set 2 defgw ipaddr (or whatever your gateway is)

If you want to use DHCP then find the MAC with

lan print 2 (or whichever channel/port number you are setting up)

Then set that MAC up in the DHCP server and set the BMC to pull DHCP with

lan set 2 ipsrc dhcp