Merge pull request #11433 from meitar/patch-1

Document ability to specify which host-only network.
This commit is contained in:
Brian Cain 2020-03-06 15:54:24 -08:00 committed by GitHub
commit 7b43402b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,22 @@ description: |-
# Networking
## VirtualBox Host-Only Networks
By default, private networks are [host-only networks](https://www.virtualbox.org/manual/ch06.html#network_hostonly),
because those are the easiest to work with. In VirtualBox, since you can
create multiple host-only networks, it is also possible to specify which
host-only network you want the Vagrant VirtualBox provider to use for
a given interface. To do this, use the `name` argument with the name of
the host-only interface to use.
```ruby
Vagrant.configure("2") do |config|
config.vm.network "private_network", type: "dhcp",
name: "vboxnet3"
end
```
## VirtualBox Internal Network
The Vagrant VirtualBox provider supports using the private network as a