华为服务器 iMana 200命令行修改bmc的IP v4

修改管理网口IP v4地址

命令功能ipaddr命令用于设置iMana 200网口的IP地址和IP模式(DHCP/static)。

命令格式

ipmcset -t eth0 -d ipaddr -v ipaddr mask
ipmcset -t eth0 -d ipaddr -v { dhcp | static }

参数说明

使用实例

# 设置iMana 200管理网口的IP地址为192.168.0.25,子网掩码为255.255.255.0。

iMana:/->ipmcset -t eth0 -d ipaddr -v 192.168.0.25 255.255.255.0
Set MASK address 255.255.255.0 successfully.
Set IP address 192.168.0.25 successfully.

# 查询修改后的iMana 200管理网口的IP信息。

iMana:/->ipmcget -t eth0 -d ipinfo
Mode                  :  dedicatedIP Address Source     :  staticIP Address            :  192.168.0.25Subnet Mask           :  255.255.255.0Default Gateway IP    :  192.168.0.25MAC Address           :  00:18:82:76:56:95IPv6 Address Source   :  staticIPv6 Address 1        :  fc01::ffff:ffff:ffff:a142/64Default Gateway IPv6  :  fe80::2e0:fcff:fe07:0Link-Local Address    :  fe80::218:82ff:fe76:5695/64IPv6 Address 2        :  2901:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 3        :  2801:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 4        :  2701:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 5        :  2601:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 6        :  2501:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 7        :  2401:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 8        :  2301:db8:1:0:218:82ff:fe76:5695/64IPv6 Address 9        :  2201:db8:1:0:218:82ff:fe76:5695/64IPv6 Address10        :  2101:db8:1:0:218:82ff:fe76:5695/64IPv6 Address11        :  fc01:db8:1:0:218:82ff:fe

# 设置iMana 200管理网口为DHCP模式。

iMana:/->ipmcset -t eth0 -d ipaddr -v dhcp

# 查询修改后的iMana 200管理网口IP信息。

iMana:/->ipmcget -t eth0 -d ipinfo

还有一种方法就是在服务器BIOS中修改默认的ipmi管理地址了,这个可以参考文章:https://blog.weixiaoline.com/2376.html

转载请注明本文链接:https://blog.weixiaoline.com/2538.html