Skip to content

Commit

Permalink
Add network device setting to homestead (laravel#9085)
Browse files Browse the repository at this point in the history
* feat: add device and clean up some links

* Update homestead.md

* Update homestead.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
ALameLlama and taylorotwell authored Oct 18, 2023
1 parent ae8b503 commit 4735488
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions homestead.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ folders:
> **Warning**
> 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.

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

```yaml
folders:
Expand All @@ -229,7 +229,7 @@ folders:
> **Warning**
> 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.

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:
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:

```yaml
folders:
Expand Down Expand Up @@ -784,7 +784,7 @@ networks:
ip: "192.168.10.20"
```

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`:
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`:

```yaml
networks:
Expand All @@ -793,14 +793,24 @@ networks:
bridge: "en1: Wi-Fi (AirPort)"
```

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

```yaml
networks:
- type: "public_network"
bridge: "en1: Wi-Fi (AirPort)"
```

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`:

```yaml
networks:
- type: "public_network"
ip: "192.168.10.20"
bridge: "en1: Wi-Fi (AirPort)"
dev: "enp2s0"
```

<a name="extending-homestead"></a>
## Extending Homestead

Expand Down

0 comments on commit 4735488

Please sign in to comment.