赞
踩
关于 ipmi 介绍 及 基于Ubuntu 16.04 安装 ipmitool
关于 使用 ipmitool 工具 管理用户
常见的网络配置命令:
(1)为通道配置 静态 类型:
格式: ipmitool lan set 通道ID ipsrc ip获取类型
root@master:~# ipmitool lan set 1 ipsrc static
lan set <channel> ipsrc <source>
none = unspecified
static = static address (manually configured)
dhcp = address obtained by BMC running DHCP
bios = address loaded by BIOS or system software
(2)配置 ip
格式: ipmitool lan set 通道ID ipaddr IP地址
root@master:~# ipmitool lan set 1 ipaddr 192.168.10.10
Setting LAN IP Address to 192.168.10.10
(3)配置掩码
格式: ipmitool lan set 通道ID netmask 掩码地址
root@master:~# ipmitool lan set 1 netmask 255.255.255.0
Setting LAN Subnet Mask to 255.255.255.0
(4)配置网关
格式: ipmitool lan set 通道ID defgw ipaddr 网关地址
root@master:~# ipmitool lan set 1 defgw ipaddr 192.168.10.11
Setting LAN Default Gateway IP to 192.168.10.11
(5)查看网络配置
格式: ipmitool lan print 通道ID root@master:~# 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 : 192.168.10.10 Subnet Mask : 255.255.255.0 MAC Address : ac:1f:6b:2f:b8:6a 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 : 192.168.10.11 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 Bad Password Threshold : Not Available
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。