How do I configure the BMC static IP using ipmitool?
To set up a static IP for BMC, you can follow these steps:
- First, make sure that the ipmitool is installed and that you are already connected to the BMC. You can use the following command to check the connection status:
- Show the LAN configuration settings using the ipmitool command.
- If the connection is successful, you will be able to view the current BMC network configuration information.
- Use the following commands to set the BMC’s static IP address, subnet mask, and default gateway:
- Set IPMI LAN interface 1 with static IP address, subnet mask, and default gateway.
- Replace
with the static IP address you want to set for the BMC, replace with the corresponding subnet mask, and replace with the appropriate default gateway. For example: - Set the IP address source to static for LAN interface 1, configure the IP address to 192.168.0.100, set the subnet mask to 255.255.255.0, and specify the default gateway IP address as 192.168.0.1 using the IPMItool.
- After setting the above parameters, confirm with the following command:
- Display the IPMI LAN configuration.
- Confirm that the BMC network configuration has been updated to the static IP address, subnet mask, and default gateway that you have set.
Please note that after changing the IP address, you may need to reconnect to the BMC to ensure the new IP address takes effect.