查看与设置
查看与设置
ipmitool -I lanplus -H 10.0.0.10 -U admin -f /root/.ipmi_pass lan print 1
ipmitool -I lanplus -H 10.0.0.10 -U admin -f /root/.ipmi_pass lan set 1 ipsrc static
ipmitool -I lanplus -H 10.0.0.10 -U admin -f /root/.ipmi_pass lan set 1 ipaddr 10.0.0.20
ipmitool -I lanplus -H 10.0.0.10 -U admin -f /root/.ipmi_pass lan set 1 netmask 255.255.255.0
ipmitool -I lanplus -H 10.0.0.10 -U admin -f /root/.ipmi_pass lan set 1 defgw ipaddr 10.0.0.1| lan print N | 打印通道 N 的 IP/掩码/网关/告警设置 |
|---|---|
| ipsrc | static 或 dhcp |
| 改完验证 | 重新 lan print 并 ping 新地址 |
| 通道号 | 先 channel info 确认活动 LAN 通道,再执行 set |
改 IP 前确认另有可达路径(带内或串口);远端操作中改错地址会失联。