Date: Tue, 21 Oct 2014 20:23:28 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-doc@freebsd.org Subject: Re: /etc/defaults/rc.conf DHCP omission Message-ID: <5446F900.7040709@freebsd.org> In-Reply-To: <20141021230806.GE2581@blisses.org> References: <20141021230806.GE2581@blisses.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jBJe2GO0ddkVRtpbjP3XA7XPh2hlJc7x6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2014-10-21 19:08, Mason Loring Bliss wrote: > Someone just came into Freenode #freebsd asking how to run DHCP. This l= ed to > a brief search of the docs. We could tell him to say ifconfig_some0=3D"= DHCP" > but it wasn't clear where he'd find that on his own. >=20 > It turns out that it's crazily far down the rc.conf(5) man page, and it= 's far > from the first hit if you search for DHCP - in the 10.1-rc2 page it's t= he > twelth hit, and it shows up deep down in the middle of a section. It's > effectively buried. >=20 > Also, /etc/defaults/rc.conf doesn't actually include a DHCP example at = all, > although it does have several example entries: >=20 > #ifconfig_lo0=3D"inet 127.0.0.1" # default loopback device configurati= on. > #ifconfig_lo0_alias0=3D"inet 127.0.0.254 netmask 0xffffffff" # Sample a= lias entry. > #ifconfig_ed0_ipx=3D"ipx 0x00010010" # Sample IPX address family e= ntry. > #ifconfig_ed0_ipv6=3D"inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 a= ddr entry > #ifconfig_ed0_alias0=3D"inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6= alias > #ifconfig_fxp0_name=3D"net0" # Change interface name from fxp0 to = net0. >=20 > To reiterate something I'd mentioned in another mail, I think it'd be g= ood > for rc.conf to come pre-stocked with a pointer to /etc/defaults/rc.conf= so > new folks know that's there. And to accomodate this situation, it seems= like > a DHCP example should be added to the list, above. As a final suggestio= n, it > seems like /etc/defaults/rc.conf ought to be ordered such that it lists= > critical operational items first, networking stuff being a good example= of > this. >=20 Pre-stocking it might be an idea currently, a fresh install has no /etc/rc.conf file at all, then bsdinstall adds a few lines to it if you configured networking or ZFS etc= =2E It isn't a bad idea though. --=20 Allan Jude --jBJe2GO0ddkVRtpbjP3XA7XPh2hlJc7x6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJURvkDAAoJEJrBFpNRJZKfD30QAJpSJNSILE+hF8UwfC/GBTyv tv7mq2FxQBLWERgr9CW4it54WEyFfPqQ1GDCnPU3j4wgR3lUMjn+qW7IGbejn7bV wpcpWH3MBRXAnm6ph6+ow+WrAUwwjcD1knTVQ6gtNjgac5BCBWgU7eNCj7ipq9UJ 3Qru6QdGG50/xr1yN/xzokbHxh+0s6twwsYqQGfbaEWOxQMFqQGYbjtfQZTDfU8C E/05w7W8rOh7ZrK/SnHaNbBRLKSui3Rp3QDuJlqMWcN520z9LNEMq50m1d1/6/TA 4XYi+8ckIKFZpNmoVRfgJrALp4/PEcxKOSahP/+OCeZWnxZvpxKpeAAObk4seAzG f8JcEpICyql+aRw3w1OTBKgY6RI35UN9/AOhPiISCcDeE6ppkzaiRbKA5heIfM4g j0NSi84oxvL1y7QeRRGOOJ95upq9QoZDbiFjcfx8Cfh9uC9jXBnIbUeGcRU0WJG1 sZ1K5NR/XeAnCgIaAi4K/7nSxKxSgfEgfhPKcWGOcT66Q4oqih23pbhD0bRiX8Jf HUp9NsBJiBPiRL+14iP6mdsv2MVKRn/2QxVHQiz6hDGUoxgPj8K8RmZSmm5f2sq7 ar8y5ncK9vOaakiaAgh5kUvn5/WKL0b2gNXOrNX4LD6jsZTnBke3Q3T3wVSi097N xyeUnXtHfDUT/sOXVozM =bk9m -----END PGP SIGNATURE----- --jBJe2GO0ddkVRtpbjP3XA7XPh2hlJc7x6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5446F900.7040709>