Skip to content

Commit 4735488

Browse files
Add network device setting to homestead (#9085)
* feat: add device and clean up some links * Update homestead.md * Update homestead.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent ae8b503 commit 4735488

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

homestead.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ folders:
217217
> **Warning**
218218
> You should never mount `.` (the current directory) when using Homestead. This causes Vagrant to not map the current folder to `/vagrant` and will break optional features and cause unexpected results while provisioning.
219219

220-
To enable [NFS](https://www.vagrantup.com/docs/synced-folders/nfs.html), you may add a `type` option to your folder mapping:
220+
To enable [NFS](https://developer.hashicorp.com/vagrant/docs/synced-folders/nfs), you may add a `type` option to your folder mapping:
221221

222222
```yaml
223223
folders:
@@ -229,7 +229,7 @@ folders:
229229
> **Warning**
230230
> When using NFS on Windows, you should consider installing the [vagrant-winnfsd](https://github.com/winnfsd/vagrant-winnfsd) plug-in. This plug-in will maintain the correct user / group permissions for files and directories within the Homestead virtual machine.
231231

232-
You may also pass any options supported by Vagrant's [Synced Folders](https://www.vagrantup.com/docs/synced-folders/basic_usage.html) by listing them under the `options` key:
232+
You may also pass any options supported by Vagrant's [Synced Folders](https://developer.hashicorp.com/vagrant/docs/synced-folders/basic_usage) by listing them under the `options` key:
233233

234234
```yaml
235235
folders:
@@ -784,7 +784,7 @@ networks:
784784
ip: "192.168.10.20"
785785
```
786786

787-
To enable a [bridged](https://www.vagrantup.com/docs/networking/public_network.html) interface, configure a `bridge` setting for the network and change the network type to `public_network`:
787+
To enable a [bridged](https://developer.hashicorp.com/vagrant/docs/networking/public_network) interface, configure a `bridge` setting for the network and change the network type to `public_network`:
788788

789789
```yaml
790790
networks:
@@ -793,14 +793,24 @@ networks:
793793
bridge: "en1: Wi-Fi (AirPort)"
794794
```
795795

796-
To enable [DHCP](https://www.vagrantup.com/docs/networking/public_network.html), just remove the `ip` option from your configuration:
796+
To enable [DHCP](https://developer.hashicorp.com/vagrant/docs/networking/public_network#dhcp), just remove the `ip` option from your configuration:
797797

798798
```yaml
799799
networks:
800800
- type: "public_network"
801801
bridge: "en1: Wi-Fi (AirPort)"
802802
```
803803

804+
To update what device the network is using, you may add a `dev` option to the network's configuration. The default `dev` value is `eth0`:
805+
806+
```yaml
807+
networks:
808+
- type: "public_network"
809+
ip: "192.168.10.20"
810+
bridge: "en1: Wi-Fi (AirPort)"
811+
dev: "enp2s0"
812+
```
813+
804814
<a name="extending-homestead"></a>
805815
## Extending Homestead
806816

0 commit comments

Comments
 (0)