当前位置:网站首页>使用ipmitool配置X86服务器的BMC网络和用户信息
使用ipmitool配置X86服务器的BMC网络和用户信息
2022-07-01 02:24:00 【数语数行】
当不知道服务器的BMC(Baseboard Management Controller)的管理IP和用户信息时,可以在服务器安装的系统上安装ipmitool工具,然后通过带内的方式来直接配置BMC的网络和IP等信息,省去重启机器去寻找BMC配置界面进行设置的步骤。
以下示例是通过带内方式来配置,如果要通过带外的方式来配置,在ipmitool命令后面加上“–H BMCip –U username –P password”等参数。
1.设置BMC的网络信息
1)显示BMC的IP地址信息(可以使用其它通道号如2,3,4等来查看设备可以使用的通道的信息,通常配置通道1,以下命令中的1都是代表配置通道1)
# ipmitool lan print 1
# ipmitool channel info 1
2)设置通道1使用静态IP地址。
# ipmitool lan set 1 ipsrc static
3)设置BMC的IP地址。
# ipmitool lan set 1 ipaddr 192.168.100.142
4)设置BMC的子网掩码。
# ipmitool lan set 1 netmask 255.255.255.0
5)设置 IPMI的网关。
# ipmitool lan set 1 defgw ipaddr 192.168.100.254
6)确认BMC的IP地址信息
# ipmitool lan print 1
Set in Progress : Set Complete
Auth Type Support : MD5 PASSWORD
Auth Type Enable : Callback : MD5 PASSWORD
: User : MD5 PASSWORD
: Operator : MD5 PASSWORD
: Admin : MD5 PASSWORD
: OEM :
IP Address Source : Static Address
IP Address : 192.168.100.142
Subnet Mask : 255.255.255.0
MAC Address : 00:1e:67:54:6d:ca
SNMP Community String : public
IP Header : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 192.168.100.254
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 : 0,1,2,3,4,6,7,8,9,11,12,13,15,16,17,18
Cipher Suite Priv Max : caaaaaaaaaaaaaa
: X=Cipher Suite Unused
: c=CALLBACK
: u=USER
: o=OPERATOR
: a=ADMIN
: O=OEM
Bad Password Threshold : Not Available
2.设置BMC的用户
1)列出BMC用户的信息。
# ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 false false true ADMINISTRATOR
2 lenovo false true true ADMINISTRATOR
3 three false false true ADMINISTRATOR
4 test1 false false true ADMINISTRATOR
5 test2 false false true ADMINISTRATOR
6 true false false NO ACCESS
7 true false false NO ACCESS
8 true false false NO ACCESS
9 true false false NO ACCESS
10 true false false NO ACCESS
11 true false false NO ACCESS
12 true false false NO ACCESS
13 true false false NO ACCESS
14 true false false NO ACCESS
15 true false false NO ACCESS
2)创建新的用户(可以直接修改管理用户的密码,不创建新的用户)
# ipmitool user set name 6 test3 (6是上面命令列出的其中一个未使用的用户ID号)
3)设置用户的密码
# ipmitool user set password 6 len0vO (6是用户test3的用户ID号)
4)给新建的用户赋予权限
# ipmitool channel setaccess 1 6 callin=on ipmi=on link=on privilege=4 (6是用户test3的用户ID号)
5)检查确认用户的信息
# ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 false false true ADMINISTRATOR
2 lenovo false true true ADMINISTRATOR
3 three false false true ADMINISTRATOR
4 test1 false false true ADMINISTRATOR
5 test2 false false true ADMINISTRATOR
6 test3 true true true ADMINISTRATOR
7 true false false NO ACCESS
8 true false false NO ACCESS
9 true false false NO ACCESS
10 true false false NO ACCESS
11 true false false NO ACCESS
12 true false false NO ACCESS
13 true false false NO ACCESS
14 true false false NO ACCESS
15 true false false NO ACCESS
配置好BMC的网络和用户后,就可以通过浏览器登录服务器的管理界面,对设备进行日常的管理(通常用来做监控和故障诊断)。
边栏推荐
- map数组函数
- 机器学习9-通用逼近器径向基函数神经网络,在新观点下审视PDA和SVM
- 【毕业季·进击的技术er】--毕业到工作小结
- Small program cloud development -- wechat official account article collection
- Ernie-gram, 显式、完备的 n-gram 掩码语言模型,实现了显式的 n-gram 语义单元知识建模。
- Alphabet-Rearrange-Inator 3000(字典树自定义排序)
- 详解数据治理知识体系
- A preliminary understanding of operator overloading
- 十大劵商如何开户?还有,在线开户安全么?
- halcon变量窗口的图像变量不显示,重启软件和电脑都没用
猜你喜欢

Machine learning 10 belief Bayesian classifier

How to realize the scene linkage of intelligent lock, lamp and intelligent curtain motor in zhiting?

nacos配置中心使用教程

RocketQA:通过跨批次负采样(cross-batch negatives)、去噪的强负例采样(denoised hard negative sampling)与数据增强(data augment

(summary I) Halcon Foundation's target finding features + becoming a regular

Pulsar geo replication/ disaster recovery / regional replication

(translation) use eyebrow shaped text to improve Title click through rate

Proxy support and SNI routing of pulsar
![Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]](/img/6e/279dbb7a8d7a5ecd240de464c5b8b2.png)
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]

int和位数组互转
随机推荐
Ernie-gram, 显式、完备的 n-gram 掩码语言模型,实现了显式的 n-gram 语义单元知识建模。
Find the length of the common part of two line segments
零基础自学SQL课程 | 窗口函数
(总结一)Halcon基础之寻找目标特征+转正
P6773 [noi2020] destiny (DP, segment tree merging)
pycharm 软件deployment 灰色 无法点
URLs and URIs
LabVIEW calculates the camera image sensor resolution and lens focal length
查看 jvm 参数
import tensorflow.contrib.slim as slim报错
What is the difference between port number and process number?
Alphabet-Rearrange-Inator 3000(字典树自定义排序)
[graduation season · advanced technology Er] - summary from graduation to work
In the fourth week of June, the list - flying melon data up main growth ranking list (BiliBili platform) was released!
What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss
Alphabet rearrange inator 3000 (dictionary tree custom sorting)
7_OpenResty安装
[2022] Jiangxi postgraduate mathematical modeling scheme and code
SWT/ANR问题--Native方法执行时间过长导致SWT
522. Longest special sequence II