Skip to content

Instantly share code, notes, and snippets.

@warioSG
Created April 22, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warioSG/e54ebc62c52492d7a8f7bf4dda7610e1 to your computer and use it in GitHub Desktop.
Save warioSG/e54ebc62c52492d7a8f7bf4dda7610e1 to your computer and use it in GitHub Desktop.
log in to arista.com support site, download vEOS-lab-4.15.5M-virtualbox.box
vagrant box add --name vEOS-4.15.5M ~/Download/vEOS-lab-4.15.5M-virtualbox.box
mkdir veos
cd veos
vagrant init vEOS-4.15.5M
paste this in to replace the Vagrantfile:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "vEOS-lab-4.15.5M"
config.vm.network "forwarded_port", guest: 443, host: 8443
config.vm.provision "shell", inline: <<-SHELL
FastCli -p 15 -c "configure
username eapiuser privilege 15 role network-admin secret icanttellyou
management api http-commands
no shutdown
end
copy running-config startup-config"
SHELL
# Create Ethernet1
config.vm.network "private_network", virtualbox__intnet: true, ip: "169.254.1.11", auto_config: false
# Create Ethernet2
config.vm.network "private_network", virtualbox__intnet: true, ip: "169.254.1.11", auto_config: false
config.vm.provider "virtualbox" do |v|
v.gui = true
# Networking:
# nic1 is always Management1 which is set to dhcp in the basebox.
#
# Patch Ethernet1 to a particular internal network
v.customize ["modifyvm", :id, "--nic2", "intnet", "--intnet2", "vEOS-intnet1"]
# Patch Ethernet2 to a particular internal network
v.customize ["modifyvm", :id, "--nic3", "intnet", "--intnet3", "vEOS-intnet2"]
end
end
################ END of Vagarantfile
run "vagrant up"
open "https://localhost:8443/explorer.html" in a web browser. the username/password is eapiuser/icanttellyou
@logikal
Copy link

logikal commented Apr 22, 2016

@logikal
Copy link

logikal commented Apr 22, 2016

config.vm.box = "vEOS-4.15.5M"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment