From nobody Fri Aug 30 22:05:46 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WwXKK46DQz5MYPf for ; Fri, 30 Aug 2024 22:05:57 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WwXKJ5NNBz4pW9 for ; Fri, 30 Aug 2024 22:05:56 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=EjXuXyPD; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1725055546; bh=7t82PJ05pBNBlrTeNchon6CeVIdUn9uKwgz1ijxu7Ek=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=EjXuXyPDVKqCnv9sQs0c95Q9/pFt227YXAzbBq/zYYNuFDyVJZXeY2sPL022EB1F0 LpbvpK1QllbXEp4PtPWP4BjpZ1jfreKKWt3/L85/9MZZDNLTufTnwUs7u3G0XcGII4 D4SQfhNt9LA2Li1HBKfEf5/21pnq6l074VTpp/RuspPkQN4HasYZ3fGS+gb+E7Sga3 ZksOx2TtV2FuRkIlKW805wifJSFmc+Uzztxf7vG1eONeJJ5q9d2qnqQvb5tKkGFEvN JtbOdN6+RV23PNwN7iFED6GUUbyHP8Cv+bGc0hyOzyr1nRbdTIA7vlA+aLL/6BYv3s CawlAQVuExvXy56TyYeDdZjCPnQMd5C56Rf0BI6I7POevWKjs47O3v0xacdY8/YjHN 9W2TXvc966nym7ENH0Wk3jHgXNcJS/Tb7tr80rRqBzz02opT2ljGPsen9VZhGnifYV 2rQwc9vCzbFwQ7NfcO65+6lf0UoKZrhTEPRBiutHqnFZerK5HmNeoRnKvhOFqXU1sC eL1TrMGUTk+tQNEFGYjS3ODdavFxseYUj2/QwoY1yxjMDYPnvr1U0Md6VxYAKeMvFV +USBI0HxmDnj+4U7J53T7kE5rwfxg1FCrSubP+ZDgQBsakkoAtwkAw9iH3qjw4IKRX D7vedACMqhoJ8wHRgeMm5lT8= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Fri, 30 Aug 2024 15:05:46 -0700 Message-ID: Date: Fri, 30 Aug 2024 15:05:46 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to rerun the network setup script To: questions@freebsd.org References: <63e932b9-e52c-430a-a86c-cfba1cd21c6d@qeng-ho.org> Content-Language: en-US From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.79 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.90)[-0.901]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+] X-Rspamd-Queue-Id: 4WwXKJ5NNBz4pW9 On 8/30/24 12:06, Jerry wrote: > On Fri, Aug 30, 2024 at 9:52 AM Arthur Chance wrote: >> On 30/08/2024 11:18, Jerry wrote: >>> I recently erased my /etc/rc.conf file. I restored most of it; >>> however, the IP4 and IP6 addresses and routing were lost. Can I >>> rerun the 'network' setup script like it did when I first >>> installed FreeBSD? I don't want to change any other settings on >>> the PC. >> >> Have you tried "bsdinstall netconfig"? >> >> -- Although not designed for computation, PIO is quite likely >> Turing complete, provided a long enough piece of tape can be found. >> It is conjectured that it could run DOOM, given a sufficiently high >> clock speed. — The Raspberry Pi Pico datasheet on its PIO >> capability. > > I tried that, but I need help getting it to work. After answering a > few questions, a screen that is supposed to show the addresses > appears, but it is completely blank. FWIW here are the IPv4 lines from a rc.conf(5) created by the 13.3-R installer choosing DHCP: 2024-08-30 15:01:46 dpchrist@vf2 ~ $ cat /etc/rc.conf | egrep 'hostname|ifconfig' hostname="vf2.tracy.holgerdanske.com" ifconfig_em0="DHCP" And, a multi-homed host with static IPv4 created by hand: 2024-08-30 15:02:54 toor@f5 ~ # cat /etc/rc.conf | egrep '^(defaultrouter|hostname|ifconfig)' | grep -v ipv6 defaultrouter="192.168.5.1" hostname="f5.tracy.holgerdanske.com" ifconfig_igb0="inet 192.168.5.15 netmask 255.255.255.0" ifconfig_igb0_alias0="inet 192.168.5.23 netmask 255.255.255.255" ifconfig_igb0_alias1="inet 192.168.5.24 netmask 255.255.255.255" David