From ccd688593f330df7271b1713584a07e3cc4fd39f Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Sun, 1 Jan 2012 12:24:57 -0500 Subject: [PATCH] adding note to Vagrantfile template aobut bridged networking --- templates/commands/init/Vagrantfile.erb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/templates/commands/init/Vagrantfile.erb b/templates/commands/init/Vagrantfile.erb index 6824b106e..52cc6e4f2 100644 --- a/templates/commands/init/Vagrantfile.erb +++ b/templates/commands/init/Vagrantfile.erb @@ -16,9 +16,16 @@ Vagrant::Config.run do |config| # Boot with a GUI so you can see the screen. (Default is headless) # config.vm.boot_mode = :gui - # Assign this VM to a host only network IP, allowing you to access it - # via the IP. - # config.vm.network "33.33.33.10" + # Assign this VM to a host-only network IP, allowing you to access it + # via the IP. Host-only networks can talk to the host machine as well as + # any other machines on the same network, but cannot be accessed (through this + # network interface) by any external networks. + # config.vm.network :hostonly "33.33.33.10" + + # Assign this VM to a bridged network, allowing you to connect directly to a + # network using the host's network device. This makes the VM appear as another + # physical device on your network. + # config.vm.network :bridged # Forward a port from the guest to the host, which allows for outside # computers to access the VM, whereas host only networking does not.