summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2012-11-26 21:35:20 +0000
committerkrw <krw@openbsd.org>2012-11-26 21:35:20 +0000
commit48ecfe23db9810f1aa9306df548ae351c3038d2b (patch)
tree0b8a2c1f0f7b0f8097eb8cd0a561046799022a3f
parentWe don't really need a "rngs" node in the Hypervisor MD. (diff)
downloadwireguard-openbsd-48ecfe23db9810f1aa9306df548ae351c3038d2b.tar.xz
wireguard-openbsd-48ecfe23db9810f1aa9306df548ae351c3038d2b.zip
Make it clear that lines are processed in the given order and provide an
example using dhcp, a common use case. ok sthen@ jmc@
-rw-r--r--share/man/man5/hostname.if.513
1 files changed, 12 insertions, 1 deletions
diff --git a/share/man/man5/hostname.if.5 b/share/man/man5/hostname.if.5
index 801a7d097be..f96586515b7 100644
--- a/share/man/man5/hostname.if.5
+++ b/share/man/man5/hostname.if.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hostname.if.5,v 1.57 2012/11/26 17:42:05 krw Exp $
+.\" $OpenBSD: hostname.if.5,v 1.58 2012/11/26 21:35:20 krw Exp $
.\" $NetBSD: hosts.5,v 1.4 1994/11/30 19:31:20 jtc Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -63,6 +63,17 @@ For example:
.Bd -literal -offset indent
inet 10.0.0.1 255.255.255.0 10.0.0.255 description "Bob's uplink"
.Ed
+.Pp
+Each line is processed separately and in order.
+For example:
+.Bd -literal -offset indent
+nwid mynwid
+wpakey mywpakey
+dhcp
+.Ed
+.Pp
+would run ifconfig to set the nwid of the interface, run it again to set the wpakey of the interface, and then start
+.Xr dhclient 8 .
.Sh STATIC ADDRESS CONFIGURATION
The following packed formats are valid for configuring network
interfaces with static addresses: