From 1ac362907280ad90b352d58fc2202945a7271e4c Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Fri, 28 Oct 2016 18:39:36 -0500 Subject: [PATCH] add a private network for VM so you can communicate without port forwards --- Vagrantfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index a90c8a0..28f6d68 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -7,6 +7,8 @@ Vagrant.configure("2") do |config| config.vm.hostname = "metasploitable3" config.vm.communicator = "winrm" + config.vm.network "private_network", type: "dhcp" + # Install Chocolatey config.vm.provision :shell, path: "scripts/installs/chocolatey.cmd" config.vm.provision :reload # Hack to reset environment variables