Setting iBMC IPv4 Address (ipaddr)
Function
The ipaddr command is used to set the IPv4 address, subnet mask, and the gateway address for the iBMC.
Format
ipmcset -d ipaddr -v <ipaddr> <mask> [gateway]
Parameters
Parameter |
Description |
Value |
---|---|---|
ipaddr |
Indicates the IPv4 address to be set for the iBMC. |
An IPv4 address in the xxx.xxx.xxx.xxx. format. |
mask |
Indicates the subnet mask to be set for the iBMC. |
An IPv4 address in the xxx.xxx.xxx.xxx. format. |
gateway |
Indicates the gateway address to be set for the iBMC. |
An IPv4 address in the xxx.xxx.xxx.xxx. format. |
Usage Guidelines
After the IP address is changed, the new IP address takes effect immediately, and you must use the new IP address to log in again.
Do not set ipaddr to a value from 10.0.0.0 to 10.0.0.3, because these IP addresses are reserved for internal communication.
Example
# Set the IP address of the iBMC management network interface to 192.168.0.25, the subnet mask to 255.255.255.0, and the gateway to 192.168.0.25.
iBMC:/->ipmcset -d ipaddr -v 192.168.0.25 255.255.255.0 192.168.0.25 Set IP address successfully. Set MASK address successfully. Set GATEWAY successfully.
# Query the changed IP address of the iBMC management network interface.
iBMC:/->ipmcget -d ipinfo EthGroup ID : 1 Net Mode : Adaptive Net Type : Dedicated IPv4 Information : IP Mode : static IP Address : 192.168.0.25 Subnet Mask : 255.255.0.0 Default Gateway : 192.168.0.1 Backup IP Address : 192.168.0.123 (Deactivated) Backup Subnet Mask : 255.255.0.0 (Deactivated) MAC Address : IPv6 Information : IPv6 Mode : static IPv6 Address 1 : fc00:225::3140/64 Default Gateway IPv6 : fc00:225::1 Link-Local Address : fe80::1a3d:5eff:febe:bc35/64 IPv6 Address 2 : fc00:225::1a3d:5eff:febe:bc35/64 VLAN Information : VLAN State : disabled