summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-02-16 11:03:25 +0000
committerkn <kn@openbsd.org>2020-02-16 11:03:25 +0000
commit7e8e6f43b307cb432d9ddad11ff61b68fe9f7fd9 (patch)
tree6f3d18a597eec227755ff4eeebcba461096b55e3 /usr.sbin/vmd
parentChange arm64 system call ABI to skip two instructions. This allows us to (diff)
downloadwireguard-openbsd-7e8e6f43b307cb432d9ddad11ff61b68fe9f7fd9.tar.xz
wireguard-openbsd-7e8e6f43b307cb432d9ddad11ff61b68fe9f7fd9.zip
Backout "DHCP is configured on the first interface only"
I completely missed that part from vmctl.5's "LOCAL INTERFACES" section. Reading `-L's description itself and the fact that it functions as a boolean switch contrary to how `-i' expects a number, I made the wrong assumption that it can only work for the first interface. "vmctl -Li2" configures two interfaces, one witch DHCP and one without. "vmctl -L -L" however configures two interfaces with DHCP IPs each. My second mistake was to imply analogue behaviour for the configuration. Now that you stated the obvious about `local' being per `interface' line, it makes absoloutely no sense to above mentioned behaviour for static VM definitions. Pointed out by tb
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r--usr.sbin/vmd/vm.conf.56
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vmd/vm.conf.5 b/usr.sbin/vmd/vm.conf.5
index 866b97204c6..348d13d51fe 100644
--- a/usr.sbin/vmd/vm.conf.5
+++ b/usr.sbin/vmd/vm.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vm.conf.5,v 1.52 2020/02/15 21:03:18 kn Exp $
+.\" $OpenBSD: vm.conf.5,v 1.53 2020/02/16 11:03:25 kn Exp $
.\"
.\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
.\" Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 15 2020 $
+.Dd $Mdocdate: February 16 2020 $
.Dt VM.CONF 5
.Os
.Sh NAME
@@ -272,7 +272,7 @@ Stop the interface from forwarding packets.
.Pp
A
.Cm local
-interface will auto-generate an IPv4 subnet for the first interface,
+interface will auto-generate an IPv4 subnet for the interface,
configure a gateway address on the VM host side,
and run a simple DHCP/BOOTP server for the VM.
This option can be used for layer 3 mode without configuring a switch.