diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2018-07-15 10:46:49 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2018-07-15 10:46:49 +0000 |
commit | 439b4842d1e6c603a6b601095d48332fc69d16a7 (patch) | |
tree | f76cb79180be548b20f227c9306870c3f8e4fbeb | |
parent | ddc530659c3a597d702ce7df00a993c622501f3d (diff) |
adjust the example hostname.if to show "wpakey" on the same line as "nwid",
and provide an IPv6 autoconf example.
while here, split interface settings from IP assignment.
OK jmc@
-rw-r--r-- | share/man/man5/hostname.if.5 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/share/man/man5/hostname.if.5 b/share/man/man5/hostname.if.5 index d6d957a6a2d..5b8974ae5ed 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.65 2017/03/10 18:28:11 jmc Exp $ +.\" $OpenBSD: hostname.if.5,v 1.66 2018/07/15 10:46:48 phessler Exp $ .\" $NetBSD: hosts.5,v 1.4 1994/11/30 19:31:20 jtc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)hosts.5 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: March 10 2017 $ +.Dd $Mdocdate: July 15 2018 $ .Dt HOSTNAME.IF 5 .Os .Sh NAME @@ -67,12 +67,12 @@ inet 10.0.0.1 255.255.255.0 10.0.0.255 description "Bob's uplink" Each line is processed separately and in order. For example: .Bd -literal -offset indent -nwid mynwid -wpakey mywpakey +nwid mynwid wpakey mywpakey +inet6 autoconf 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 +would run ifconfig to set the nwid and wpakey of the interface, run it again to set the AUTOCONF6 flag, and then start .Xr dhclient 8 . .Sh STATIC ADDRESS CONFIGURATION The following packed formats are valid for configuring network @@ -112,7 +112,8 @@ Other network setup: A typical file contains only one line, but more extensive files are possible, for example: .Bd -literal -offset 1n -inet 10.0.1.12 255.255.255.0 10.0.1.255 media 100baseTX description Uplink +media 100baseTX description Uplink +inet 10.0.1.12 255.255.255.0 10.0.1.255 inet alias 10.0.1.13 255.255.255.255 10.0.1.13 inet alias 10.0.1.14 255.255.255.255 NONE inet alias 10.0.1.15 255.255.255.255 |