Date: Fri, 30 Aug 2024 15:05:46 -0700 From: David Christensen <dpchrist@holgerdanske.com> To: questions@freebsd.org Subject: Re: How to rerun the network setup script Message-ID: <f755f984-b7dd-4662-82f9-fe369b8461c2@holgerdanske.com> In-Reply-To: <CALiBPo9o-0Jx58HCF7RiUsY7jfJtZ9s84Z_Oprp7%2BsDm=TUcrQ@mail.gmail.com> References: <CALiBPo9T7XD=hUh39CL0TgjXiZZ6xRWg4HAD4ojqF=oDxNubSA@mail.gmail.com> <63e932b9-e52c-430a-a86c-cfba1cd21c6d@qeng-ho.org> <CALiBPo9o-0Jx58HCF7RiUsY7jfJtZ9s84Z_Oprp7%2BsDm=TUcrQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f755f984-b7dd-4662-82f9-fe369b8461c2>