summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsupermicro/bin/supermicro-ipmi-reset7
1 files changed, 5 insertions, 2 deletions
diff --git a/supermicro/bin/supermicro-ipmi-reset b/supermicro/bin/supermicro-ipmi-reset
index e0f00d1..8bd92f6 100755
--- a/supermicro/bin/supermicro-ipmi-reset
+++ b/supermicro/bin/supermicro-ipmi-reset
@@ -19,11 +19,14 @@ ipmicfg -fdl -d
echo "${PROGRAM}: change to protocol to dual-stack"
ipmicfg -addrptl 3
+echo "${PROGRAM}: configuring ipmi to ${ADDRESS}"
+ipmicfg -ipv6 add 1 "${ADDRESS}" 64
+
echo "${PROGRAM}: disabling ipv4 dhcp for ipv6-only configuration"
ipmicfg -dhcp off
-echo "${PROGRAM}: configuring ipmi to ${ADDRESS}"
-ipmicfg -ipv6 add 1 "${ADDRESS}" 64
+echo "${PROGRAM}: clearing ipv4 address for ipv6-only configuration"
+ipmicfg -m 0.0.0.0
echo "${PROGRAM}: rebooting ipmi"
ipmicfg -r -d