Updating docs to include :ip option

This commit is contained in:
Andrew Melo 2014-06-02 21:16:41 -05:00
parent af436553d3
commit f3067528c9
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,15 @@ When DHCP is used, the IP can be determined by using `vagrant ssh` to
SSH into the machine and using the appropriate command line tool to find SSH into the machine and using the appropriate command line tool to find
the IP, such as `ifconfig`. the IP, such as `ifconfig`.
## Static IP
Depending on your setup, you may wish to manually set the IP of your
bridged interface. To do so, add a `:ip` clause to the network definition.
```ruby
config.vm.network "public_network", ip: "192.168.0.17"
```
## Default Network Interface ## Default Network Interface
If more than one network interface is available on the host machine, Vagrant will If more than one network interface is available on the host machine, Vagrant will