当前位置:   article > 正文

linux无ipmi工具,Linux之在CentOS 7系统上基于ipmitool命令实现配置主板的ipmi

cipher suite priv max

先来查询下基础信息

[root@xenserver-x-storage-node2 ~]# ipmitool lan print 1

Set in Progress : Set Complete

Auth Type Support : NONE MD2 MD5 PASSWORD

Auth Type Enable : Callback : MD2 MD5 PASSWORD

: User : MD2 MD5 PASSWORD

: Operator : MD2 MD5 PASSWORD

: Admin : MD2 MD5 PASSWORD

: OEM : MD2 MD5 PASSWORD

IP Address Source : Static Address

IP Address : 172.16.100.202

Subnet Mask : 255.255.0.0

MAC Address : 0c:c4:7a:8b:b4:b2

SNMP Community String : public

IP Header : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00

BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled

Default Gateway IP : 172.16.0.1

Default Gateway MAC : 00:00:00:00:00:00

Backup Gateway IP : 0.0.0.0

Backup Gateway MAC : 00:00:00:00:00:00

802.1q VLAN ID : Disabled

802.1q VLAN Priority : 0

RMCP+ Cipher Suites : 1,2,3,6,7,8,11,12

Cipher Suite Priv Max : XaaaXXaaaXXaaXX

: X=Cipher Suite Unused

: c=CALLBACK

: u=USER

: o=OPERATOR

: a=ADMIN

: O=OEM

[root@xenserver-x-storage-node2 ~]#

2、尝试对ipmi设置ip

[root@xenserver-x-storage-node2 ~]# ipmitool lan set 1 ipsrc dhcp

[root@xenserver-x-storage-node2 ~]# ipmitool lan print 1

Set in Progress : Set Complete

Auth Type Support : NONE MD2 MD5 PASSWORD

Auth Type Enable : Callback : MD2 MD5 PASSWORD

: User : MD2 MD5 PASSWORD

: Operator : MD2 MD5 PASSWORD

: Admin : MD2 MD5 PASSWORD

: OEM : MD2 MD5 PASSWORD

IP Address Source : DHCP Address

IP Address : 172.16.100.202

Subnet Mask : 255.255.0.0

MAC Address : 0c:c4:7a:8b:b4:b2

SNMP Community String : public

IP Header : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00

BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled

Default Gateway IP : 172.16.0.1

Default Gateway MAC : 00:00:00:00:00:00

Backup Gateway IP : 0.0.0.0

Backup Gateway MAC : 00:00:00:00:00:00

802.1q VLAN ID : Disabled

802.1q VLAN Priority : 0

RMCP+ Cipher Suites : 1,2,3,6,7,8,11,12

Cipher Suite Priv Max : XaaaXXaaaXXaaXX

: X=Cipher Suite Unused

: c=CALLBACK

: u=USER

: o=OPERATOR

: a=ADMIN

: O=OEM

[root@xenserver-x-storage-node2 ~]#

通过上述命令就实现了ipmi的静态IP转DHCP模式,由于我在路由上对ipmi做了mac地址绑定,所以这里换成了dhcp之后IP没变

7e9fd093d148bb95588144a7c372fcc9.png

[root@xenserver-x-storage-node2 ~]# ipmitool lan set 1 auth ADMIN MD5

[root@xenserver-x-storage-node2 ~]# ipmitool lan set 1 access on

[root@xenserver-x-storage-node2 ~]# ipmitool lan print 1

Set in Progress : Set Complete

Auth Type Support : NONE MD2 MD5 PASSWORD

Auth Type Enable : Callback : MD2 MD5 PASSWORD

: User : MD2 MD5 PASSWORD

: Operator : MD2 MD5 PASSWORD

: Admin : MD5

: OEM : MD2 MD5 PASSWORD

IP Address Source : Static Address

IP Address : 172.16.100.220

Subnet Mask : 255.255.0.0

MAC Address : 0c:c4:7a:8b:b4:b2

SNMP Community String : public

IP Header : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00

BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled

Default Gateway IP : 172.16.0.1

Default Gateway MAC : 00:00:00:00:00:00

Backup Gateway IP : 0.0.0.0

Backup Gateway MAC : 00:00:00:00:00:00

802.1q VLAN ID : Disabled

802.1q VLAN Priority : 0

RMCP+ Cipher Suites : 1,2,3,6,7,8,11,12

Cipher Suite Priv Max : XaaaXXaaaXXaaXX

: X=Cipher Suite Unused

: c=CALLBACK

: u=USER

: o=OPERATOR

: a=ADMIN

: O=OEM

[root@xenserver-x-storage-node2 ~]#

上面的一些动作就是实现命令来配置ipmi的固定ip设置的

a2d0fb5c158fba9e38e11a1c6da766a7.png

参考连接:https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool

http://www.openfusion.net/linux/ipmi_on_centos

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/867526
推荐阅读
相关标签
  

闽ICP备14008679号