diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2018-05-31 18:47:39 +0530 |
---|---|---|
committer | Emily Shaffer <emilyshaffer@google.com> | 2018-07-17 17:24:22 +0000 |
commit | f8e9e38b85bb4f7ad3e5af749222939cd26ac2aa (patch) | |
tree | 0e2df60176918cf8a73ad0211677566f176dc5ce /docs | |
parent | 006d33c4a7e18abcba8cbbe9c24a10fb08c9b745 (diff) | |
download | phosphor-host-ipmid-f8e9e38b85bb4f7ad3e5af749222939cd26ac2aa.tar.gz phosphor-host-ipmid-f8e9e38b85bb4f7ad3e5af749222939cd26ac2aa.zip |
Docs: Add IPMI command cheatsheet
Adding the network configuration commands
Change-Id: I0542e1266d3bf71c813c3d449bb2838f0dc887cf
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ipmitool-commands-cheatsheet.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/ipmitool-commands-cheatsheet.md b/docs/ipmitool-commands-cheatsheet.md new file mode 100644 index 0000000..bb72083 --- /dev/null +++ b/docs/ipmitool-commands-cheatsheet.md @@ -0,0 +1,36 @@ +# IPMI command cheat sheet + +This document is intended to provide a set of IPMI commands for quick reference. + +Note: If the ipmitool is on the BMC then set the interface as "-I dbus" and +if the ipmitool is outside the BMC (i.e on the network) then set the interface as +"-I lanplus". + +## Network Configuration + +### Set the interface mode + +ipmitool lan set <channel> ipsrc static + +### Set the IP Address + +ipmitool lan set <channel> ipaddr <ip> + +### Set the network mask + +ipmitool lan set <channel> netmask <mask> + +### Set the default gateway + +ipmitool lan set <channel> defgw ipaddr <ip> + +### Set the VLAN + +ipmitool lan set <channel> vlan id <id> + +### Delete the VLAN + +ipmitool lan set <channel> vlan id off + +NOTE: The user can group multiple set operations since the IPMI daemon +waits for 10 seconds after each set operation before applying the configuration. |