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

Fri Jun 29 22:58:58 UTC 2018
Jonathan Billings <billings at negate.org>

On Fri, Jun 29, 2018 at 05:30:26PM -0400, mark wrote:
> It's the end of the week, and maybe I'm being dense, but I still don't get
> it: how do I tell the BMC to use eth1? Do I give it eth1's MAC address as
> a gateway?

No, use the IP and MAC of the gateway you wish it to use, as if you
were configuring another network device that's on the same network as
eth1 (assuming it's sharing the eth1 physical network port).  THe
important thing to remember is: The BMC is not eth1.  It just happens
to share the physical port you're plugging an ethernet cable into.  It
behaves like there's another computer inside your case, with a vampire
tap on the ethernet port's cable.

For example, if this is your eth1:

$ ip -4 a show dev eth1
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UP group default qlen 1000
    inet brd scope global dynamic
    noprefixroute eth1
           valid_lft 567262sec preferred_lft 567262sec
$ ip -4 route
default via dev eth1 proto dhcp metric 100 dev eth1 proto kernel scope link src metric 100
$ arp -n
Address                  HWtype  HWaddress           Flags Mask Iface                 ether   00:00:11:11:22:22   C          eth1

Then you would pick an IP on your network (lets call it and
set the IPMI interface to use and use
and 00:00:11:11:22:22 as the defgw MAC.

You won't be able to ping the IP from the same system, but it should
be reachable from other systems on the network above.

Jonathan Billings <billings at negate.org>