summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2005-10-03 08:43:03 +0000
committerreyk <reyk@openbsd.org>2005-10-03 08:43:03 +0000
commit14ac65995f1659ba89fb6c5ab66059823600b9a6 (patch)
tree5aed415fe1a56d49b6dc4e24e2becf6478723a12
parentRelocate check_ip_options call to prevent logging of garbage for connections (diff)
downloadwireguard-openbsd-14ac65995f1659ba89fb6c5ab66059823600b9a6.tar.xz
wireguard-openbsd-14ac65995f1659ba89fb6c5ab66059823600b9a6.zip
change trunk ifconfig examples (it's not neccessary to type "create"
and "up" explicitly), add "trunkproto failover" to the second example.
-rw-r--r--share/man/man4/trunk.414
1 files changed, 6 insertions, 8 deletions
diff --git a/share/man/man4/trunk.4 b/share/man/man4/trunk.4
index fddd2bba41f..2c499caff4f 100644
--- a/share/man/man4/trunk.4
+++ b/share/man/man4/trunk.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: trunk.4,v 1.4 2005/10/03 02:22:13 reyk Exp $
+.\" $OpenBSD: trunk.4,v 1.5 2005/10/03 08:43:03 reyk Exp $
.\"
.\" Copyright (c) 2005 Reyk Floeter <reyk@vantronix.net>
.\"
@@ -64,9 +64,8 @@ interfaces:
.Bd -literal -offset indent
# ifconfig bge0 up
# ifconfig bge1 up
-# ifconfig trunk0 create
-# ifconfig trunk0 trunkport bge0 trunkport bge1 192.168.1.1 \e
- netmask 255.255.255.0 up
+# ifconfig trunk0 trunkport bge0 trunkport bge1 \e
+ 192.168.1.1 netmask 255.255.255.0
.Ed
.Pp
The following example uses an active failover trunk to realise roaming
@@ -75,10 +74,9 @@ Whenever the wired master interface is unplugged, the wireless failover
device will be used:
.Bd -literal -offset indent
# ifconfig em0 up
-# ifconfig ath0 192.168.1.1 netmask 255.255.255.0 nwid my_net up
-# ifconfig trunk0 create
-# ifconfig trunk0 trunkport em0 trunkport ath0 192.168.1.1 \e
- netmask 255.255.255.0 up
+# ifconfig ath0 192.168.1.1 netmask 255.255.255.0 nwid my_net
+# ifconfig trunk0 trunkproto failover trunkport em0 trunkport ath0 \e
+ 192.168.1.1 netmask 255.255.255.0
.Ed
.Sh SEE ALSO
.Xr inet 4 ,