single vQFX - 1x serv
- Jean-luc KRIKER
Owned by Jean-luc KRIKER
original vagrantfile Expand source
# -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| re_name = "vqfx" pfe_name = "vqfx-pfe" ############################## ## Packet Forwarding Engine ## ############################## config.vm.define pfe_name do |vqfxpfe| vqfxpfe.ssh.insert_key = false vqfxpfe.vm.box = 'juniper/vqfx10k-pfe' # DO NOT REMOVE / NO VMtools installed vqfxpfe.vm.synced_folder '.', '/vagrant', disabled: true vqfxpfe.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "vqfx_internal" end ########################## ## Routing Engine ####### ########################## config.vm.define re_name do |vqfx| vqfx.vm.hostname = "vqfx" vqfx.vm.box = 'juniper/vqfx10k-re' vqfx.ssh.insert_key = false # DO NOT REMOVE / NO VMtools installed vqfx.vm.synced_folder '.', '/vagrant', disabled: true # Management Ports vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "vqfx_internal" vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "reserved-bridge" ## Dataplane ports (1..5).each do |seg_id| vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "seg#{seg_id}" end end ########################## ## Server ####### ########################## config.vm.define "srv" do |srv| srv.vm.box = "robwc/minitrusty64" srv.vm.hostname = "server" srv.vm.network 'private_network', ip: "10.1.2.2", virtualbox__intnet: "seg1" srv.ssh.insert_key = true end ############################## ## Box provisioning ### ## exclude Windows host ### ############################## if !Vagrant::Util::Platform.windows? config.vm.provision "ansible" do |ansible| ansible.groups = { "vqfx10k" => ["vqfx"], "all:children" => ["vqfx10k"] } ansible.playbook = "provisioning/deploy-config.p.yaml" end end end
modify vagrantfile Expand source
# -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| re_name = "vqfx" pfe_name = "vqfx-pfe" ############################## ## Packet Forwarding Engine ## ############################## config.vm.define pfe_name do |vqfxpfe| vqfxpfe.ssh.insert_key = false vqfxpfe.vm.box = 'juniper/vqfx10k-pfe' # DO NOT REMOVE / NO VMtools installed vqfxpfe.vm.synced_folder '.', '/vagrant', disabled: true vqfxpfe.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "vqfx_internal" end ########################## ## Routing Engine ####### ########################## config.vm.define re_name do |vqfx| vqfx.vm.hostname = "vqfx" vqfx.vm.box = 'juniper/vqfx10k-re' vqfx.ssh.insert_key = false # DO NOT REMOVE / NO VMtools installed vqfx.vm.synced_folder '.', '/vagrant', disabled: true # Management Ports vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "vqfx_internal" vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "reserved-bridge" ## Dataplane ports #(1..5).each do |seg_id| #vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "seg#{seg_id}" vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "seg1" vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "seg2" vqfx.vm.network 'private_network', auto_config: false, nic_type: '82540EM', virtualbox__intnet: "seg2" #end end ########################## ## Server ####### ########################## config.vm.define "srv" do |srv| srv.vm.box = "robwc/minitrusty64" srv.vm.hostname = "server" #srv.vm.network 'private_network', ip: "10.1.2.2", virtualbox__intnet: "seg1" srv.vm.network 'private_network', ip: "10.1.2.2", virtualbox__intnet: "seg1", auto_config: false srv.ssh.insert_key = true end ############################## ## Box provisioning ### ## exclude Windows host ### ############################## if !Vagrant::Util::Platform.windows? config.vm.provision "ansible" do |ansible| ansible.groups = { "vqfx10k" => ["vqfx"], "all:children" => ["vqfx10k"] } ansible.playbook = "provisioning/deploy-config.p.yaml" end end end
cd .\vqfx10k-vagrant\full-1qfx-1srv
vagrant up
vagrant status
( vagrant ssh-config )
vagrant ssh vqfxvagrant ssh srv