Book Image

Vagrant Virtual Development Environment Cookbook

Book Image

Vagrant Virtual Development Environment Cookbook

Overview of this book

Table of Contents (17 chapters)
Vagrant Virtual Development Environment Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a local network


Creating a local network is the process of assigning an IP to a Vagrant machine.

Getting ready

Before setting up a network, you might want to consider the type of network you wish to create. Vagrant essentially offers two options:

  • A local network that limits access to Virtual Machines (VMs) running on the host computer. The hypervisor software typically specifies an address range.

  • A bridged network that will obtain an IP address from outside the local range. This means that the Vagrant machine can be accessed as any other machine on the host computer network. You can, for example, specify bridged networking if you want your Vagrant machine to be a shared resource among many different people in your office. The downside is that the Vagrant machine will obtain an IP that cannot be controlled by the Vagrant environment and will rely on the larger network environment. This will make it difficult to create machine networks and we will not cover bridged networking in any depth...