From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 98785D802D7 for ; Tue, 10 Dec 2024 21:28:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0Pgw5SFxPqftjglO4q6RMbZImWuAoygTvBEpSYgLfQo=; c=relaxed/simple; d=groups.io; h=MIME-Version:From:Date:Message-ID:Subject:To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240830; t=1733866122; v=1; x=1734125320; b=GHzE0chqy50GmKgIHktk2CTtpeXw8zhVH7ILl94NdurT+dy/dpSX7GqWD/Q+pAkylwzcfhdl aMite3fJZ/LPUPJ9zKmel8Cfg46aEBzIbbSELSbw7S+i9r9K5gWI0o1BJBr3Ef6aP5xAzEn7sE6 CzUqAbsYLShXww0HO0H4AL0e9A4lavBVeMKGQFKGtcCxjbm0qLVpqxk8EZz1BpgQx7mrm3mzS+7 gL2tHzROlYyjC9mkeky7TkxyE/gBvKJB50EuLOawFi1Us59prt1wnHZy62VEIvMij/kjbmneqK7 hafTMTK/h86d0RTFnDzY3ZLkp03zySEHuTpegNc94FeqQ== X-Received: by 127.0.0.2 with SMTP id OJAwYY7687511xQY2TfiQXM3; Tue, 10 Dec 2024 13:28:40 -0800 X-Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) by mx.groups.io with SMTP id smtpd.web11.4605.1733866120236567300 for ; Tue, 10 Dec 2024 13:28:40 -0800 X-Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-29e7516ee77so3170757fac.1 for ; Tue, 10 Dec 2024 13:28:40 -0800 (PST) X-Gm-Message-State: ngmG4dOgUy4wCs4a9tBYLplsx7686176AA= X-Gm-Gg: ASbGncttnFImTZ5xaDAneTw96EOLZmxcUp5zac15W8fQlUbpqydSxM1c1WTwJ67Wf3v 4AnnU7XR0DszuLXzNCGPk9UUxFv4xpsKptqs= X-Google-Smtp-Source: AGHT+IHNMRG+KZMMQvHieGS4JxbEwQHiMyp/j89ZTkP/0xzvHzQhU/hxEZVTuzLbWoBeFwBqZRP6kZegS9H9WWwBDyU= X-Received: by 2002:a05:6870:fb8c:b0:2a0:1162:425a with SMTP id 586e51a60fabf-2a012db57ecmr397173fac.26.1733866119251; Tue, 10 Dec 2024 13:28:39 -0800 (PST) MIME-Version: 1.0 From: "Mike Beaton via groups.io" Date: Tue, 10 Dec 2024 21:28:28 +0000 Message-ID: Subject: [edk2-devel] Static IP for PXE/HTTP boot To: devel@edk2.groups.io Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 10 Dec 2024 13:28:40 -0800 Resent-From: mjsbeaton@gmail.com Reply-To: devel@edk2.groups.io,mjsbeaton@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=GHzE0chq; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io I spotted that OVMF completely ignores the configured IPv4 static IP settings, for PXE and HTTP boot, and just uses DHCP anyway. (Confirmed on various versions from edk2-stable201905 to current master.) When looking at the user-readable paths for PXE and HTTP boot options, it seems likely that this is indeed the intended behaviour: PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv4(0.0.0.0,0x0,DHCP,0.0.0= .0,0.0.0.0,0.0.0.0) PciRoot(0x0)/Pci(0x3,0x0)/MAC(525400123456,0x1)/IPv4(0.0.0.0,0x0,DHCP,0.0.0= .0,0.0.0.0,0.0.0.0)/Uri() Furthermore, PXE 2.1 spec (e.g. =C2=A72.2.1) gives no indication PXE boot is supposed to work with static IP, and while it is less clear it seems somewhat similar for HTTP boot in UEFI specification (e.g. v2.10 =C2=A724.7.4). Hence to my questions, if anyone has time to answer: 1. Is it correct that the static IP settings available in OVMF are intended to be ignored for PXE and HTTP boot? 2. Is there any (documented?) way to set a static IP for PXE or HTTP boot? (With HTTP boot, in particular, we can already set the boot URI in the path, so if we could set the IPv4 addr/mask/gateway/dns then we could boot without DHCP.) 3. If it's not too general to ask, what types of application are the IP settings intended for, if not PXE/HTTP boot? Just other IP-based applications, in general, I guess? Thanks in advance for any help! -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120891): https://edk2.groups.io/g/devel/message/120891 Mute This Topic: https://groups.io/mt/110033368/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-