1# IPMI command cheat sheet
2
3This document is intended to provide a set of IPMI commands for quick reference.
4
5Note: If the ipmitool is on the BMC then set the interface as "-I dbus" and if
6the ipmitool is outside the BMC (i.e on the network) then set the interface as
7"-I lanplus".
8
9## Network Configuration
10
11### Set the interface mode
12
13`ipmitool lan set <channel> ipsrc static`
14
15### Set the IP Address
16
17`ipmitool lan set <channel> ipaddr <x.x.x.x>`
18
19### Set the network mask
20
21`ipmitool lan set <channel> netmask <x.x.x.x>`
22
23### Set the default gateway
24
25`ipmitool lan set <channel> defgw ipaddr <x.x.x.x>`
26
27### Set the VLAN
28
29`ipmitool lan set <channel> vlan id <id>`
30
31### Delete the VLAN
32
33`ipmitool lan set <channel> vlan id off`
34
35NOTE: The user can group multiple set operations since the IPMI daemon waits for
3610 seconds after each set operation before applying the configuration.
37