This project constructs a lab environment for INE's CCIE Enterprise Infrastructure v1 Exam Review course.
- Vagrant
- QEMU/KVM
- libvirt
- vagrant-libvirt >= 0.8.0
- Cisco IOSv Vagrant box
- Cisco IOSvL2 Vagrant box
- Python >= 3.7
- Nornir
- Scrapli
A. Add the Cisco IOSv and IOSvL2 Vagrant boxes.
$ vagrant box list | grep iosv cisco-iosv (libvirt, 15.9) cisco-iosvl2 (libvirt, 2020)
B. Create a DHCP reservation entry for the management interface of each Cisco device.
Refer to Controlling Vagrant Box Management IP for more information. Use vagrant-libvirt-vnet.xml as a reference.
C. Create/Update the SSH client configuration file for the Cisco devices.
Use sshconfig as a reference.
1. Clone this GitHub repo and cd into the directory.
$ git clone https://github.com/mweisel/ine-ccie-ei-v1-exam-review-lab-companion.git $ cd ine-ccie-ei-v1-exam-review-lab-companion
2. Create a Python virtual environment.
$ python3 -m venv .venv
3. Activate the Python virtual environment.
$ source .venv/bin/activate
4. Update the pip
and setuptools
Python packages.
$ pip install -U pip setuptools
5. Reactivate the Python virtual environment.
$ deactivate && source .venv/bin/activate
6. Install the Nornir and Scrapli Python packages.
$ pip install -r requirements.txt
7. Reactivate the Python virtual environment.
$ deactivate && source .venv/bin/activate
8. Instantiate the Cisco devices.
$ vagrant up
9. Run the Python script to configure the Cisco devices for the INE labs.
$ python init.py
10. Connect to the Cisco devices via SSH.
$ ssh r7 $ ssh sw2
This project is licensed under the MIT License - see the LICENSE file for details