Prefer dhcpcd(8) over dhclient(8).
This commit is contained in:
parent
ca34255e60
commit
a124943219
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: postinstall,v 1.76 2012/08/17 19:55:14 riz Exp $
|
||||
.\" $NetBSD: postinstall,v 1.77 2012/10/02 17:43:52 roy Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -199,7 +199,7 @@ or
|
||||
for more information.
|
||||
Instead of manually configuring network and naming service,
|
||||
DHCP can be used by setting
|
||||
.Li dhclient=YES
|
||||
.Li dhcpcd=YES
|
||||
in
|
||||
.Pa /etc/rc.conf .
|
||||
.Pp
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: afterboot.8,v 1.49 2012/09/30 20:49:12 riastradh Exp $
|
||||
.\" $NetBSD: afterboot.8,v 1.50 2012/10/02 17:43:53 roy Exp $
|
||||
.\" $OpenBSD: afterboot.8,v 1.72 2002/02/22 02:02:33 miod Exp $
|
||||
.\"
|
||||
.\" Originally created by Marshall M. Midden -- 1997-10-20, m4@umn.edu
|
||||
@ -59,7 +59,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd June 26, 2010
|
||||
.Dd October 2, 2012
|
||||
.Dt AFTERBOOT 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -214,7 +214,7 @@ is supposed include a domainname, and that this should
|
||||
not be confused with YP (NIS)
|
||||
.Xr domainname 1 .
|
||||
If you are using
|
||||
.Xr dhclient 8
|
||||
.Xr dhcpcd 8
|
||||
to configure network interfaces, it might override these local hostname
|
||||
settings if your DHCP server specifies client's hostname with other network
|
||||
configurations.
|
||||
@ -238,20 +238,20 @@ to manually configure it
|
||||
if you do not wish to reboot.
|
||||
.Pp
|
||||
Alternatively, you can configure interfaces automatically via DHCP with
|
||||
.Xr dhclient 8
|
||||
.Xr dhcpcd 8
|
||||
if you have a DHCP server running somewhere on your network.
|
||||
To get
|
||||
.Xr dhclient 8
|
||||
.Xr dhcpcd 8
|
||||
to start automatically on boot,
|
||||
you will need to have this line in
|
||||
.Pa /etc/rc.conf :
|
||||
.Pp
|
||||
.Dl dhclient=YES
|
||||
.Dl dhcpcd=YES
|
||||
.Pp
|
||||
See
|
||||
.Xr dhclient 8
|
||||
.Xr dhcpcd 8
|
||||
and
|
||||
.Xr dhclient.conf 5
|
||||
.Xr dhcpcd.conf 5
|
||||
for more information on setting up a DHCP client.
|
||||
.Pp
|
||||
You can add new
|
||||
@ -341,9 +341,14 @@ If you run
|
||||
you will have to kill it by running
|
||||
.Bd -literal -offset indent
|
||||
.Ic /etc/rc.d/dhclient stop
|
||||
If you run
|
||||
.Xr dhcpcd 8
|
||||
you will have to kill it by running
|
||||
.Bd -literal -offset indent
|
||||
.Ic /etc/rc.d/dhcpcd stop
|
||||
.Pp
|
||||
.Ed
|
||||
after you flush the routes.
|
||||
before you flush the routes.
|
||||
.Pp
|
||||
If you wish to route packets between interfaces, add one or both
|
||||
of the following directives (depending on whether IPv4 or IPv6 routing
|
||||
@ -977,6 +982,7 @@ for details on how to do so.
|
||||
.Xr aliases 5 ,
|
||||
.Xr crontab 5 ,
|
||||
.Xr dhclient.conf 5 ,
|
||||
.Xr dhcpcd.conf 5 ,
|
||||
.Xr exports 5 ,
|
||||
.Xr fstab 5 ,
|
||||
.Xr group 5 ,
|
||||
@ -999,6 +1005,7 @@ for details on how to do so.
|
||||
.Xr ccdconfig 8 ,
|
||||
.Xr chown 8 ,
|
||||
.Xr dhclient 8 ,
|
||||
.Xr dhcpcd 8 ,
|
||||
.Xr dhcpd 8 ,
|
||||
.Xr dmesg 8 ,
|
||||
.Xr groupadd 8 ,
|
||||
|
Loading…
Reference in New Issue
Block a user