The man page isn't helping, nor have I been able to find examples that work.
For example, the man page claims I can do ipmitool lan get active, and I try, and it says, "invaling lan command, get".
Do I set the MAC address for the lan to NIC 2? Anyone have a clue - I do *not* want martians on the real network.
mark
On Tue, Jun 26, 2018 at 3:16 PM, mark m.roth@5-cent.us wrote:
The man page isn't helping, nor have I been able to find examples that work.
For example, the man page claims I can do ipmitool lan get active, and I try, and it says, "invaling lan command, get".
get isn't a recognized subcommand under lan in the ipmitool I have installed.
Do I set the MAC address for the lan to NIC 2? Anyone have a clue - I do *not* want martians on the real network.
This will be very dependent on your motherboard and its BMC capabilities. Some can do IPMI on specific ports and not others. On the Intel S2600 series that I use they can use port 1, 2, and a dedicated RMM port, but not ports 3 and 4. You'll need to check your mobo suppport docs to see if it can even handle IPMI on the second port. If so, you just configure it with the IP setting you want for static, or configure the MAC shown by issuing 'lan print 2' in the ipmitool shell. Very often the MACs is sequential , so you can guess it by looking at the MACs of the normal ethernet ports and adding 1, 2 or whatever.
On Tue, Jun 26, 2018 at 4:06 PM, Jon Pruente jpruente@riskanalytics.com wrote:
or configure the MAC shown by issuing 'lan print 2' in the ipmitool shell.
I should finish that sentence.
... or configure the MAC (shown by issuing 'lan print 2' in the ipmitool shell) in your DHCP server. Though, running server management IPs in DHCP isn't a great idea, because how do you access the management if the DHCP server is down?
Jon Pruente wrote:
On Tue, Jun 26, 2018 at 3:16 PM, mark m.roth@5-cent.us wrote:
The man page isn't helping, nor have I been able to find examples that work.
For example, the man page claims I can do ipmitool lan get active, and I try, and it says, "invalid lan command, get".
get isn't a recognized subcommand under lan in the ipmitool I have installed.
Do I set the MAC address for the lan to NIC 2? Anyone have a clue - I do *not* want martians on the real network.
This will be very dependent on your motherboard and its BMC capabilities. Some can do IPMI on specific ports and not others. On the Intel S2600 series that I use they can use port 1, 2, and a dedicated RMM port, but not ports 3 and 4. You'll need to check your mobo suppport docs to see if it can even handle IPMI on the second port. If so, you just configure it with the IP setting you want for static, or configure the MAC shown by issuing 'lan print 2' in the ipmitool shell. Very often the MACs is sequential , so you can guess it by looking at the MACs of the normal ethernet ports and adding 1, 2 or whatever.
So you're saying I should set the MAC address for the lan channel 1 to the MAC address of the second NIC?
mark
On Tue, Jun 26, 2018 at 4:10 PM, mark m.roth@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 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)
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