全部博文(21)
分类: BSD
2011-06-09 10:03:32
Edit your /etc/rc.conf to include the following:
ifconfig_fxp0="DHCP"
If you are using a different location for dhclient, or if you wish to pass additional flags to dhclient, also include the following (editing as necessary):
dhclient_program="/sbin/dhclient" dhclient_flags=""/etc/dhclient.conf
dhclient requires a configuration file, /etc/dhclient.conf. Typically the file contains only comments, the defaults being reasonably sane. This configuration file is described by the manual page.
/sbin/dhclient
dhclient is statically linked and resides in /sbin. The manual page gives more information about dhclient.
/sbin/dhclient-script
dhclient-script is the FreeBSD-specific DHCP client configuration script. It is described in , but should not need any user modification to function properly.
/var/db/dhclient.leases
The DHCP client keeps a database of valid leases in this file, which is written as a log. gives a slightly longer description.