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

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


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 10.0.0.5/24 brd 10.0.0.255 scope global dynamic
    noprefixroute eth1
           valid_lft 567262sec preferred_lft 567262sec
$ ip -4 route
default via 10.0.0.1 dev eth1 proto dhcp metric 100
10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.5 metric 100
$ arp -n 10.0.0.1
Address                  HWtype  HWaddress           Flags Mask Iface
10.0.0.1                 ether   00:00:11:11:22:22   C          eth1


Then you would pick an IP on your network (lets call it 10.0.0.6) and
set the IPMI interface to use 10.0.0.6/255.255.255.0 and use 10.0.0.1
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 10.0.0.0/24 network above.

-- 
Jonathan Billings <billings at negate.org>



More information about the CentOS mailing list