I've done a little research and came around to utilizing the 4 hidden NICs in VirtualBox in order to build out a 3 leaf architecture virtually.
Thanks to eanderalx.org for the tip...https://www.eanderalx.org/virtualization/8_network_card_vbox
Figure 1. Spine and Leaf Architecture
The Architecture really needs to look like the figure above. In order to do this, the Spine switches will have to have 7 total network interfaces, 1 management and 6 switch uplinks.
From the eanderalx documentation linked above, I created the table (as per the previous abusedbits blog 3 switch creation).
|
Table 1. Layout of interfaces
As a note, I'm retaining the VM's created for the purpose of the previous blog exercise, and using the 10.10.10.10 linux server host as the jump box for the environment.
In order to get the 8 switches, I simply re-cloned 8 switches from the original switch from the Arista virtual lab (previous blog).
The table above leads to the following configurations for VBoxManage to get to the associated network interfaces enabled on the Spine switches. You could do the same for the 1-4 interfaces, but I chose to use the GUI (mostly because I was experimenting).
Spine1 - nic5 config
$VBoxManage modifyvm vEOS-spine1 --nic5 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet5 "L4-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc5 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype5 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected5 on
Spine1 - nic6
$VBoxManage modifyvm vEOS-spine1 --nic6 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet6 "L5-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc6 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype6 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected6 on
Spine1 - nic7
$VBoxManage modifyvm vEOS-spine1 --nic7 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet7 "L6-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc7 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype7 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected7 on
Once completed, I followed the remaining instructions from
https://eos.arista.com/building-a-virtual-lab-with-arista-veos-and-virtualbox/
using 8 switches instead of 3 and the table and NIC scripts from above.
This is running with a fair penalty on the memory of the box though. Mem watch shown below.... But it does work.....
$ watch -n 5 free -m
Every 5.0s: free -m Tue Aug 11 15:07:51 2015
total used free shared buffers cached
Mem: 32038 31735 302 401 157 13337
-/+ buffers/cache: 18240 13797
Swap: 32627 0 32627
Good luck fellow bit abusers!
Spine1 - nic5 config
$VBoxManage modifyvm vEOS-spine1 --nic5 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet5 "L4-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc5 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype5 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected5 on
Spine1 - nic6
$VBoxManage modifyvm vEOS-spine1 --nic6 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet6 "L5-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc6 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype6 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected6 on
Spine1 - nic7
$VBoxManage modifyvm vEOS-spine1 --nic7 intnet
$VBoxManage modifyvm vEOS-spine1 --intnet7 "L6-1"
$VBoxManage modifyvm vEOS-spine1 --nicpromisc7 allow-vms
$VBoxManage modifyvm vEOS-spine1 --nictype7 Am79C973
$VBoxManage modifyvm vEOS-spine1 --cableconnected7 on
Spine2 - nic5
$VBoxManage modifyvm vEOS-spine2 --nic5 intnet
$VBoxManage modifyvm vEOS-spine2 --intnet5 "L4-2"
$VBoxManage modifyvm vEOS-spine2 --nicpromisc5 allow-vms
$VBoxManage modifyvm vEOS-spine2 --nictype5 Am79C973
$VBoxManage modifyvm vEOS-spine2 --cableconnected5 on
Spine2 - nic6
$VBoxManage modifyvm vEOS-spine2 --nic6 intnet
$VBoxManage modifyvm vEOS-spine2 --intnet6 "L5-2"
$VBoxManage modifyvm vEOS-spine2 --nicpromisc6 allow-vms
$VBoxManage modifyvm vEOS-spine2 --nictype6 Am79C973
$VBoxManage modifyvm vEOS-spine2 --cableconnected6 on
Spine2 - nic7
$VBoxManage modifyvm vEOS-spine2 --nic7 intnet
$VBoxManage modifyvm vEOS-spine2 --intnet7 "L6-2"
$VBoxManage modifyvm vEOS-spine2 --nicpromisc7 allow-vms
$VBoxManage modifyvm vEOS-spine2 --nictype7 Am79C973
$VBoxManage modifyvm vEOS-spine2 --cableconnected7 on
https://eos.arista.com/building-a-virtual-lab-with-arista-veos-and-virtualbox/
using 8 switches instead of 3 and the table and NIC scripts from above.
Picture 1. Arista Spine and Leaf in Virtual existence on VirtualBox
This is running with a fair penalty on the memory of the box though. Mem watch shown below.... But it does work.....
$ watch -n 5 free -m
total used free shared buffers cached
Mem: 32038 31735 302 401 157 13337
-/+ buffers/cache: 18240 13797
Swap: 32627 0 32627
Good luck fellow bit abusers!
No comments:
Post a Comment