当前位置:   article > 正文

ipmitool 命令 之 ipmitool lan(网络管理)

ipmitool lan

关于 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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

(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
  • 1
  • 2
  • 3
  • 4

(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

  • 1
  • 2
  • 3
  • 4
  • 5

(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
  • 1
  • 2
  • 3
  • 4

(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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号