If you happen to have a Supermicro server and you want to change the default behavior of the IPMI LAN interface, which is
Failover – on boot check whether the dedicated LAN port is connected if so use the it, otherwise use the shared LAN1
So if change it there are some magic commands to change this default behavior:
- Always use dedicated LAN:
within the server under console:ipmitool -I open raw 0x30 0x70 0x0c 1 0
from remote using the network:
ipmitool -I lanplus -H 192.168.7.150 -U ADMIN -P ADMIN raw 0x30 0x70 0x0c 1 0
Sometimes the output of the last command (that using the lanplus) will output:
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70)
But it sets the value despite the error output “Unable to send”. You could check it with the read command (the last example).
- Always use shared LAN1:
within the server under console:ipmitool -I open raw 0x30 0x70 0xc 1 1
from remote using the network:
ipmitool -I lanplus -H 192.168.7.150 -U ADMIN -P ADMIN raw 0x30 0x70 0x0c 1 1
Sometimes the output of the last command (that using the lanplus) will output:
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70)
But it sets the value despite the error output “Unable to send”. You could check it with the read command (the last example).
- Always use failover (factory default):
within the server under console:ipmitool -I open raw 0x30 0x70 0xc 1 2
from remote using the network:
ipmitool -I lanplus -H 192.168.7.150 -U ADMIN -P ADMIN raw 0x30 0x70 0x0c 1 2
Sometimes the output of the last command (that using the lanplus) will output:
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x70)
But it sets the value despite the error output “Unable to send”. You could check it with the read command (the last example).
Get the current value with:
[root@srv0 ~]# ipmitool -I open raw 0x30 0x70 0x0c 0 02 [root@srv0 ~]#
Default (failover): you will see 02
Onboard LAN: you will see 01
Dedicated LAN: you will see 00
The 192.168.7.157 is the IP of the IPMI KVM module and the -U ADMIN and -P ADMIN are username and the password login details to the module (ADMIN/ADMIN are just default settings for the Supermicro IPMI/KVM)