方法二:使用命令行工具(适用于 Linux 系统)
如果你有权限访问服务器的主机系统,可以使用以下命令:
bash
使用 ipmitool 查询 BMC IP(需安装 ipmitool)
ipmitool lan print
示例输出:
Set in Progress : Set Complete
Auth Type Support : MD5, PAM
Auth Type Enable : Callback: None
: User: None
: Operator: None
: Admin: None
IP Address : 192.168.1.100
Subnet Mask : 255.255.255.0
MAC Address : 00:11:22:33:44:55
⚠️ 注意:`ipmitool` 需要正确配置,并且 BMC 必须启用 IPMI 功能。
方法三:通过厂商管理平台
Dell iDRAC: 访问 `https://<BMC_IP`,登录后查看网络设置。
HP iLO: 访问 `https://<BMC_IP`,进入 iLO Web 界面。
Supermicro IPMI: 访问 `https://<BMC_IP`,使用 IPMI 设置页面。
1、Web UI:登录 BMC 管理页面 → Network Settings → Static IP / DHCP
2、命令行(IPMI):
bash
ipmitool lan set 1 ipaddr 192.168.1.101
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 192.168.1.1
3、厂商工具:如 Dell OpenManage, HP iLO Remote Console 等。