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

Get Vagrant Virtual Development Environment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.