summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-02-15 21:03:18 +0000
committerkn <kn@openbsd.org>2020-02-15 21:03:18 +0000
commit29504faa6df18e0779ce741ca123880126f2f4a1 (patch)
treed6eff6af20cfd8c559844a3b979d18ad53cd2158 /usr.sbin
parent*_minphys() functions that cap i/o sizes at a value larger than the (diff)
downloadwireguard-openbsd-29504faa6df18e0779ce741ca123880126f2f4a1.tar.xz
wireguard-openbsd-29504faa6df18e0779ce741ca123880126f2f4a1.zip
DHCP is configured on the first interface only
A VM can have multiple interfaces, but only the first one gets DHCP if "-L" (vmctl) or "local" (vm.conf) is specified. Positive feedback Mike Larkin
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmctl/vmctl.86
-rw-r--r--usr.sbin/vmd/vm.conf.56
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8
index b8a402df7a8..25e1b10b102 100644
--- a/usr.sbin/vmctl/vmctl.8
+++ b/usr.sbin/vmctl/vmctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vmctl.8,v 1.70 2019/09/15 12:06:20 kn Exp $
+.\" $OpenBSD: vmctl.8,v 1.71 2020/02/15 21:03:18 kn Exp $
.\"
.\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
.\"
@@ -14,7 +14,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: September 15 2019 $
+.Dd $Mdocdate: February 15 2020 $
.Dt VMCTL 8
.Os
.Sh NAME
@@ -204,7 +204,7 @@ Number of network interfaces to add to the VM.
.It Fl L
Add a local network interface.
.Xr vmd 8
-will auto-generate an IPv4 subnet for the interface,
+will auto-generate an IPv4 subnet for the first interface,
configure a gateway address on the VM host side,
and run a simple DHCP/BOOTP server for the VM.
See
diff --git a/usr.sbin/vmd/vm.conf.5 b/usr.sbin/vmd/vm.conf.5
index 140d6bd08f5..866b97204c6 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.51 2020/02/10 13:18:22 schwarze Exp $
+.\" $OpenBSD: vm.conf.5,v 1.52 2020/02/15 21:03:18 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 10 2020 $
+.Dd $Mdocdate: February 15 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 interface,
+interface will auto-generate an IPv4 subnet for the first 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.