diff --git a/Vagrantfile b/Vagrantfile index 8960345ec..d9fae2828 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -68,8 +68,21 @@ Vagrant.configure("2") do |config| domain.disk_bus = "virtio" end + # Networks and interfaces ip = "#{$private_subnet}.#{i+10}" - test_vm.vm.network :private_network, :ip => "#{ip}" + pub_ip = "#{$public_subnet}.#{i+10}" + # "public" network with nat forwarding + test_vm.vm.network :private_network, + :ip => pub_ip, + :model_type => "e1000", + :libvirt__dhcp_enabled => false, + :libvirt__forward_mode => "nat" + # "private" isolated network + test_vm.vm.network :private_network, + :ip => ip, + :model_type => "e1000", + :libvirt__dhcp_enabled => false, + :libvirt__forward_mode => "none" # Provisioning config.vm.provision "file", source: "ssh", destination: "~/ssh" diff --git a/bootstrap-node.sh b/bootstrap-node.sh index a38e10b25..811ec0320 100755 --- a/bootstrap-node.sh +++ b/bootstrap-node.sh @@ -4,7 +4,7 @@ echo node > /var/tmp/role # Packages sudo apt-get --yes update sudo apt-get --yes upgrade -sudo apt-get --yes install screen vim telnet tcpdump python-pip +sudo apt-get --yes install screen vim telnet tcpdump python-pip traceroute iperf3 nmap ethtool # Pip sudo pip install kpm