Good number of openPOWER servers run openBMC. OpenBMC as of today does NOT support network IPMI but it does support host-BMC IPMI. We can use this to set static IP on BMC using standard IPMI tool commands
Set openBMC to static IP from Host / Petitboot:
To set the BMC running openBMC to static address, run following ipmitool commands from petitboot / host.
ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 10.127.xx.xx
ipmitool lan set 1 netmask 255.255.252.0
ipmitool lan set 1 defgw ipaddr 10.127.xx.xx
ipmitool raw 0x06 0x40
You can print lan credentials using:
ipmitool lan print
Remember default credentials of BMC is root and 0penBmc
Set openBMC to get static IP from openBMC linux shell:
You can use standard linux “ip” command to set the IP address to static
Hi Adi,
I want to set static IP address to BMC, but when i used that commands you give above, i did not set static ip address to BMC. When look ip address of BMC using ifconfig command, i see different ip address of BMC that i set. Do you any recommend about this issue?
thank you
jack
LikeLike
Jack ,
Which set of commands did you use ? And where did you execute from. .
LikeLike
I log in openBmc using ssh. IP of openBmc is DHCP in default. I want to change DHCP ip to static ip. I used “ip addr add 192.168.1.1 dev eth0” command to set static ip on openBmc linux shell. But when i use ifconfig command to see ip of openbmc, i see different ip. and when i use “ip a” command to see ip of openBmc, i see two of ip addresses which belong to eth0. one of them is dynamically set by DHCP server, another one is static ip set by “ip addr add 192.168.1.1 dev eth0” command.
Thank you,
Jack
LikeLike
Can you try to do this via the other set of instructions where you execute commands via the host ? Meanwhile I will check why this stuff isn’t working by verifying on local machine .
LikeLike
Adi,
I changed DHCP IP to static IP using ipmitool. However, i just want to get static IP from openBMC linux shell.
Thanks,
Jack
LikeLike
Sure . I can help you with that . Let me send you the instructions .
LikeLike
whoah tһis blog is fantastic i love studying your articles.
Keeр up the good work! You knoѡ, lots of persons aгe hunting
round for tһis informatіon, yօu ϲould aid tһem
greatly.
LikeLike
Hi to eveгy οne, the contentѕ ρresent at thіs website aгe reallу amazing for people experience,
ᴡell, keep up the ɡood ԝork fellows.
LikeLike
I aρpreciate, result іn I found just wһat Ӏ uѕed tօ be taking a
loоk f᧐r. Yօu’ve ended my foᥙr dаʏ long hunt!
God Bless you man. Haѵe a nice day. Bye
LikeLike