Skip to content

Instantly share code, notes, and snippets.

@lpsouza
Last active January 23, 2024 17:09
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 lpsouza/7ca4c01f525be31b785c1e86102ff441 to your computer and use it in GitHub Desktop.
Save lpsouza/7ca4c01f525be31b785c1e86102ff441 to your computer and use it in GitHub Desktop.
GNS3 lab course with Dell OS9, Juniper vMX and Ubuntu 22.04

GNS3 Lab Course with Dell OS9, Juniper vMX, and Ubuntu 22.04

This repository contains a lab course designed for GNS3, featuring Dell OS9, Juniper vMX, and Ubuntu 22.04.

Prerequisites

To run this lab course, you will need a Virtual Machine with the following specifications:

  • 6 vCPUs
  • 12 GB RAM
  • 100 GB disk space

The recommended operating system for the VM is Ubuntu 22.04.

Installation

Follow these steps to set up the lab course:

# Update your package lists:
sudo apt update

# Install Git and Ansible:
sudo apt install -y git ansible

# Clone the Ansible repository:
git clone https://github.com/lpsouza/linux-installer.git
cd ./linux-installer

# Run the Ansible playbooks:
ansible-playbook playbooks/initial.yaml
ansible-playbook playbooks/x-windows.yaml
ansible-playbook playbooks/gns3.yaml
ansible-playbook playbooks/zsh.yaml
ansible-playbook playbooks/nvm.yaml

User Creation

To create users for the lab, use the following script. This script creates users with a default password. Replace "john.doe" "jane.doe" with the usernames you want to create, and "DeF@u1tP@ssw0rd" with the default password you want to set.

users=("john.doe" "jane.doe")
default_password="DeF@u1tP@ssw0rd"
for user in "${users[@]}"; do
    sudo useradd -m -s /bin/zsh "$user"
    echo "$user:$default_password" | sudo chpasswd
done

Images to import on GNS3

Check this link: https://1drv.ms/f/s!AowZkuiqCF1UnY8ffkbSpEhNxOn2Ww?e=zGcA3I

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