summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-09-26 13:51:19 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-09-27 09:08:52 +0000
commit18b1d4170796a1ecb17c0017cfd3a4b4d98c0adf (patch)
treec4d1c026d887a7a1ea62c146847f1276601212a9
parentSetting protocol version in supermicro-ipmi-reset, thanks to Sakirnth Nagaras... (diff)
downloadservice-tools-18b1d4170796a1ecb17c0017cfd3a4b4d98c0adf.tar.xz
service-tools-18b1d4170796a1ecb17c0017cfd3a4b4d98c0adf.zip
Clearing ipv4 address in supermicro-ipmi-reset for ipv6-only mode.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-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