Created
April 22, 2016 18:30
-
-
Save warioSG/e54ebc62c52492d7a8f7bf4dda7610e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.arista.com/en/support/software-download for download