From 18b1d4170796a1ecb17c0017cfd3a4b4d98c0adf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 26 Sep 2023 15:51:19 +0200 Subject: Clearing ipv4 address in supermicro-ipmi-reset for ipv6-only mode. Signed-off-by: Daniel Baumann --- supermicro/bin/supermicro-ipmi-reset | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'supermicro/bin') 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 -- cgit v1.2.3