From a5b58bcae05c77e6fb36e738a09d343daf76efda Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 20 Nov 2023 12:20:40 +0100 Subject: Adding upstream version 20231120. Signed-off-by: Daniel Baumann --- supermicro/Makefile | 2 +- supermicro/bin/supermicro-ipmi-reset | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'supermicro') diff --git a/supermicro/Makefile b/supermicro/Makefile index 6b3744b..49377eb 100644 --- a/supermicro/Makefile +++ b/supermicro/Makefile @@ -1,6 +1,6 @@ # Open Infrastructure: service-tools -# Copyright (C) 2014-2022 Daniel Baumann +# Copyright (C) 2014-2023 Daniel Baumann # # SPDX-License-Identifier: GPL-3.0+ # diff --git a/supermicro/bin/supermicro-ipmi-reset b/supermicro/bin/supermicro-ipmi-reset index 6b6e11a..8bd92f6 100755 --- a/supermicro/bin/supermicro-ipmi-reset +++ b/supermicro/bin/supermicro-ipmi-reset @@ -16,12 +16,18 @@ fi echo "${PROGRAM}: resetting ipmi to factory defaults (including users and lan)" ipmicfg -fdl -d -echo "${PROGRAM}: disabling ipv4 dhcp for ipv6-only configuration" -ipmicfg -dhcp off +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}: clearing ipv4 address for ipv6-only configuration" +ipmicfg -m 0.0.0.0 + echo "${PROGRAM}: rebooting ipmi" ipmicfg -r -d -- cgit v1.2.3