From owner-freebsd-questions@freebsd.org Wed Jan 15 00:44:19 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F9AB1FA054 for ; Wed, 15 Jan 2020 00:44:19 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [198.71.6.79]) by mx1.freebsd.org (Postfix) with ESMTP id 47y7r14RdYz3L8G for ; Wed, 15 Jan 2020 00:44:17 +0000 (UTC) (envelope-from feenberg@nber.org) Received: from mail2.nber.org (mail2.nber.org [198.71.6.79]) by mail2.nber.org (8.15.2/8.15.2) with ESMTPS id 00F0i7bc095402 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Jan 2020 19:44:07 -0500 (EST) (envelope-from feenberg@nber.org) Date: Tue, 14 Jan 2020 19:44:07 -0500 (EST) From: Daniel Feenberg To: Bruce Ferrell cc: freebsd-questions@freebsd.org Subject: Re: PXE boot with 2 NICs In-Reply-To: <6ccadaf1-7a3c-1b1f-71f0-b64c4dd2d753@baywinds.org> Message-ID: References: <6a2ba6a0-9349-f164-e0d3-18bd32a9ef56@baywinds.org> <6ccadaf1-7a3c-1b1f-71f0-b64c4dd2d753@baywinds.org> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, 1970/01/01 00:00:00 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2020/01/14 10:20:00 #11287664 X-KLMS-AntiVirus-Status: Clean, skipped X-Rspamd-Queue-Id: 47y7r14RdYz3L8G X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of feenberg@nber.org designates 198.71.6.79 as permitted sender) smtp.mailfrom=feenberg@nber.org X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.88)[-0.878,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; DMARC_NA(0.00)[nber.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[79.6.71.198.list.dnswl.org : 127.0.4.2]; CTYPE_MIXED_BOGUS(1.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:26287, ipnet:198.71.6.0/23, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-3.63)[ip: (-9.52), ipnet: 198.71.6.0/23(-4.76), asn: 26287(-3.81), country: US(-0.05)] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 00:44:19 -0000 On Tue, 14 Jan 2020, Bruce Ferrell wrote: > On 1/13/20 5:35 AM, Daniel Feenberg wrote: >> >> >> On Sun, 12 Jan 2020, Bruce Ferrell wrote: >> >>> >>> > Ahhh... It's a netboot effectively. > > The FreeBSD kernel isn't involved in PXE.  PXE requests and downloads the > load images/configs.  The load images/configs then take over completely. PXE > if out of the picture at that point. PXE, based on the NIC MAC address/UUID > IS capable offering differing loads/configs. > Yes, I understand that FreeBSD kernel isn't involved in PXE. That is fine. I can PXE boot from the 1GBE port. But then I want to instruct the FreeBSD kernel to use the 10GBE port which does not support PXE booting. Daniel Feenberg From owner-freebsd-questions@freebsd.org Wed Jan 15 00:59:50 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83F8E1FA3D3 for ; Wed, 15 Jan 2020 00:59:50 +0000 (UTC) (envelope-from bferrell@baywinds.org) Received: from baywinds.org (50-196-187-248-static.hfc.comcastbusiness.net [50.196.187.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "baywinds.org", Issuer "rr-v" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47y89x4XMrz3Lgv for ; Wed, 15 Jan 2020 00:59:49 +0000 (UTC) (envelope-from bferrell@baywinds.org) Received: from [192.0.2.130] (rr-iii [192.0.2.130]) by baywinds.org (8.14.4/8.14.4) with ESMTP id 00F0xlWJ026970 for ; Tue, 14 Jan 2020 16:59:47 -0800 Subject: Re: PXE boot with 2 NICs To: freebsd-questions@freebsd.org References: <6a2ba6a0-9349-f164-e0d3-18bd32a9ef56@baywinds.org> <6ccadaf1-7a3c-1b1f-71f0-b64c4dd2d753@baywinds.org> From: Bruce Ferrell Message-ID: Date: Tue, 14 Jan 2020 16:59:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Greylist: inspected by milter-greylist-4.5.12 (baywinds.org [192.0.2.134]); Tue, 14 Jan 2020 16:59:47 -0800 (PST) for IP:'192.0.2.130' DOMAIN:'rr-iii' HELO:'[192.0.2.130]' FROM:'bferrell@baywinds.org' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.12 (baywinds.org [192.0.2.134]); Tue, 14 Jan 2020 16:59:47 -0800 (PST) X-Rspamd-Queue-Id: 47y89x4XMrz3Lgv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bferrell@baywinds.org designates 50.196.187.248 as permitted sender) smtp.mailfrom=bferrell@baywinds.org X-Spamd-Result: default: False [0.28 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.23)[0.232,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.27)[-0.274,0]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[baywinds.org]; IP_SCORE(0.63)[ipnet: 50.128.0.0/9(3.87), asn: 7922(-0.69), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:50.128.0.0/9, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 00:59:50 -0000 On 1/14/20 4:44 PM, Daniel Feenberg wrote: > > > On Tue, 14 Jan 2020, Bruce Ferrell wrote: > >> On 1/13/20 5:35 AM, Daniel Feenberg wrote: >>> >>> >>> On Sun, 12 Jan 2020, Bruce Ferrell wrote: >>> >>>> >>>> >> Ahhh... It's a netboot effectively. >> >> The FreeBSD kernel isn't involved in PXE.  PXE requests and downloads the load images/configs.  The load images/configs then take over completely. PXE if out of the picture at >> that point. PXE, based on the NIC MAC address/UUID IS capable offering differing loads/configs. >> > Yes, I understand that FreeBSD kernel isn't involved in PXE. That is fine. I can PXE boot from the 1GBE port. But then I want to instruct the FreeBSD kernel to use the 10GBE port > which does not support PXE booting. > > Daniel Feenberg > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Right.  So... You watch the PXE requests to determine what UUID PXE config file (or MAC based PXE config file) is being requested. Then construct a file similar to the stock file you use for all the other systems, labeled to match the request. BUT the image/FreeBSD configs IT provides instruct the booted system to use the interfaces that match your requirements. I haven't done a FreeBSD PXE config in a long while, so I have to leave the exact details of that to you, but that's where the magic happens.