From ea8d1af7f75565cee845ce0b4672d64bc7cb676f Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Wed, 10 Feb 2016 10:20:07 -0500 Subject: Add another VM for wireshark to monitor the vpp1<-->vpp2 internal network. Change-Id: Iad350ac6c90ce372d6bde5e3fab126c524e816c1 Signed-off-by: Dave Wallace --- vagrant-demo/Vagrantfile | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'vagrant-demo/Vagrantfile') diff --git a/vagrant-demo/Vagrantfile b/vagrant-demo/Vagrantfile index 88a94b123..2892b954d 100644 --- a/vagrant-demo/Vagrantfile +++ b/vagrant-demo/Vagrantfile @@ -6,12 +6,13 @@ # # Note: VirtualBox is currently the only provier supported for the demo. # -# [ host1 VM ] <== Internal Network "host1-vpp1" ==> [ vpp1 VM ] -# [ vpp1 VM ] <== Internal Network "vpp1-vpp2" ==> [ vpp2 VM ] -# [ vpp1 VM ] <-- Private Network 192.168.10.x -+-> [ vbd VM ] -# (Mgmt network) | -# +-> [ vpp2 VM ] -# [ vpp2 VM ] <== Internal Network "host2-vpp2" ==> [ host2 VM ] +# [ host1 VM ] <=== Internal Network "host1-vpp1" ===> [ vpp1 VM ] +# [ vpp1 VM ] <==+ Internal Network "vpp1-vpp2" ===> [ vpp2 VM ] +# [ jaws VM ] <==+ +# [ vpp1 VM ] <--- Private Network 192.168.10.x -+--> [ vbd VM ] +# (Mgmt network) | +# +--> [ vpp2 VM ] +# [ vpp2 VM ] <=== Internal Network "host2-vpp2" ===> [ host2 VM ] # Vagrant.configure(2) do |config| @@ -188,4 +189,23 @@ end s.args = ["host2", "172.16.15.15/24"] end end + + # Define jaws VM (for wireshark) connected to the vpp1 <-> vpp2 + # internal network. + # + # [ vpp1 VM ] <==+ Internal Network "vpp1-vpp2" ===> [ vpp2 VM ] + # [ jaws VM ] <==+ + # + config.vm.define :jaws do |jaws| + jaws.vm.box = "puppetlabs/ubuntu-14.04-64-nocm" + jaws.vm.provider "virtualbox" do |vb| + vb.customize ["modifyvm", :id, "--nic2", "intnet"] + vb.customize ["modifyvm", :id, "--intnet2", "vpp1-vpp2"] + vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] + end + jaws.vm.provision "shell" do |s| + s.path = "bootstrap-host.ubuntu1404.sh" + s.args = ["jaws", "172.16.15.15/24"] + end + end end -- cgit 1.2.3-korg