Setting the IPv4 Mode of the iBMC (ipmode)
Function
The ipmode command is used to specify how the iBMC IPv4 address is allocated.
Format
ipmcset -d ipmode -v <dhcp | static>
Parameters
Parameter |
Description |
Value |
---|---|---|
dhcp |
The DHCP server dynamically allocates an IP address to the iBMC. |
– |
static |
The iBMC uses a static IP address. |
– |
Usage Guidelines
After the IPv4 mode is changed, the new configuration takes effect immediately.
Example
# Enable the iBMC to use an IPv4 address dynamically allocated by the DHCP server.
iBMC:/->ipmcset -d ipmode -v dhcp
# Query the iBMC IP address.
iBMC:/->ipmcget -d ipinfo EthGroup ID : 1 Net Mode : Manual Net Type : Dedicated IPv4 Information : IP Mode : dhcp IP Address : 192.168.0.12 Subnet Mask : 255.255.0.0 Default Gateway : 192.168.0.25 Backup IP Address : 192.168.0.25 (Activated) Backup Subnet Mask : 255.255.255.0 (Activated) MAC Address : IPv6 Information : IPv6 Mode : dhcp IPv6 Address : Default Gateway IPv6 : Link-Local Address : fe80::218:e1ff:fec5:d866/64 VLAN Information : VLAN State : disabled VLAN ID : 1
You can run the ipinfo command to view that the new IP address that the iBMC management network interface obtained from the DHCP server is 192.168.0.12.