
命令格式ipmcset -t eth0 -d ipaddr6 -v ipaddress/prefixipmcset -t eth0 -d ipaddr6 -v { dhcp | static }

iMana:/->ipmcset -t eth0 -d ipaddr6 -v fc00::6516/64
Set IPv6 address successfully.
# 查询修改后的iMana 200管理网口的IPv6信息。
iMana:/->ipmcget -t eth0 -d ipinfo
Mode : dedicatedIP Address Source : staticIP Address : 192.168.1.107Subnet Mask : 255.255.0.0Default Gateway IP : 192.168.1.1MAC Address : 00:18:82:76:56:95IPv6 Address Source : staticIPv6 Address 1 : fc00::6516/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:fe76:5695/64802.1q
# 设置iMana 200管理网口为DHCP模式。
iMana:/->ipmcset -t eth0 -d ipaddr6 -v dhcp
Set DHCP mode successfully.
查询修改后的iMana 200管理网口IP信息。
iMana:/->ipmcget -t eth0 -d ipinfo
Mode : dedicatedIP Address Source : staticIP Address : 192.168.1.107Subnet Mask : 255.255.0.0Default Gateway IP : 192.168.1.1MAC Address : 00:18:82:76:56:95IPv6 Address Source : DHCPIPv6 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:fe76:5

由ipinfo命令可以查询到iMana 200管理网口从DHCP服务器获得新的IPv6地址为fc01::12。
还有一种方法就是在服务器BIOS中修改默认的ipmi管理地址了,这个可以参考文章:https://blog.weixiaoline.com/2376.html
转载请注明本文链接:https://blog.weixiaoline.com/2548.html