/etc/defaults/rc.conf DHCP omission

Allan Jude allanjude at freebsd.org
Wed Oct 22 00:23:34 UTC 2014


On 2014-10-21 19:08, Mason Loring Bliss wrote:
> Someone just came into Freenode #freebsd asking how to run DHCP. This led to
> a brief search of the docs. We could tell him to say ifconfig_some0="DHCP"
> but it wasn't clear where he'd find that on his own.
> 
> 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 the
> twelth hit, and it shows up deep down in the middle of a section. It's
> effectively buried.
> 
> Also, /etc/defaults/rc.conf doesn't actually include a DHCP example at all,
> although it does have several example entries:
> 
> #ifconfig_lo0="inet 127.0.0.1"  # default loopback device configuration.
> #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
> #ifconfig_ed0_ipx="ipx 0x00010010"      # Sample IPX address family entry.
> #ifconfig_ed0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry
> #ifconfig_ed0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias
> #ifconfig_fxp0_name="net0"      # Change interface name from fxp0 to net0.
> 
> To reiterate something I'd mentioned in another mail, I think it'd be good
> 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 suggestion, 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.
> 

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.

It isn't a bad idea though.

-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20141021/13cab737/attachment.sig>


More information about the freebsd-doc mailing list