# 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, "192.168.30.11" # 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
config.vm.network :bridged config.vm.network :hostonly, "192.168.30.11"
vagrant init で生成された Vagrantfile にそんなハメがあるとは…。トホホ。