> Date: Tue, 26 Jun 2018 16:50:55 -0500 > From: 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.<snip>> For a static IP on the second port you'd use > > lan set 2 ipaddr 10.0.0.15 (whatever your desired IP is) lan set 2 netmask > 255.255.255.0 (or whatever your matching netmask should > be) lan set 2 defgw ipaddr 10.0.0.1 (or whatever your gateway is)Well, that didn't work - Channel 2 is not a LAN channel!> > If you want to use DHCP then find the MAC withNO!!! I do not want this ever asking for an IP. There's no management port, dunno why, but the only thing where it should be is a couple of pieces of thin, bent metal, and nothing, apparently, damaged. I do see one option of "defgw macaddr" - is that supposed to be a MAC external to the server, or can I use the MAC of eth1 (or whatever the stupid, unrememberable name is)? mark
Jonathan Billings
2018-Jun-28 00:45 UTC
[CentOS] Semi-OT: ipmitool or ipmicfg: set BMC to use NIC 2
On Wed, Jun 27, 2018 at 05:14:06PM -0400, mark wrote:> I do see one option of "defgw macaddr" - is that supposed to be a MAC > external to the server, or can I use the MAC of eth1 (or whatever the > stupid, unrememberable name is)?As mentioned earlier, the BMC is a different MAC from any interface you might see from the OS side. Think of it as a separate computer that shares a physical network port (assuming it doesnt have a dedicated port). Imagine what would happen if you put two devices on the network with the same MAC. You don't want to do that. defgw macaddr is for setting what it thnks the Default Gateway's MAC address is. You will need to set the IP, netmask and gateway using the appropriate tool (I prefer ipmitool). keep in mind that because the device shares a port you most likely wont be able to use IPMI to talk over the LAN to the device from the OS on the same box. -- Jonathan Billings <billings at negate.org>