Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNS3 Network Labs

This is a repository of network topologies built in GNS3 and automated with Ansible. Each topology focuses on different networking concepts, and the goal is to preserve all the configurations for future reference and reuse.


Project Structure

Each folder contains the specific topology, Ansible playbooks, topology diagrams and explanations.


Global Prerequisites & Setup

1. Cisco Image Binaries

The Cisco IOSv and IOSvL2 image files required for these labs are located in the /images folder at the root of this repository. Add them as Qemu VMs in the GNS3 Preferences.

2. Management Bridge (br-mgmt)

All topologies utilize an Out-of-Band (OOB) Management network.

  • Ensure the GNS3 host has a bridge interface named br-mgmt with ip 172.31.255.1.
  • This bridge provides connectivity between the Ansible control node (local machine) and the GNS3 nodes.

3. Bootstrap Configurations

Every device requires an initial configuration to enable SSH communication via the Management network. Specific bootstrap commands (IP assignment, local user, and line vty settings) are provided within each topology folder.

4. Docker Environment

Alpine linux images running on Docker containers are used for client and infrastructure hosts. A common base image is created from the provided Dockerfile and reused.

docker pull alpine:latest
docker build --no-cache -t custom-alpine .

5. SSH Configuration (Legacy Support)

Cisco IOSv images utilize legacy cryptographic algorithms (e.g., ssh-rsa, diffie-hellman-group14-sha1) that are disabled by default on modern OpenSSH clients.

To allow Ansible to connect to the lab nodes, add the following configuration to ~/.ssh/config:

# GNS3 Lab Management Network
Host 172.31.255.*
    KexAlgorithms +diffie-hellman-group14-sha1
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa
    MACs +hmac-sha1,hmac-sha1-96

About

A set of network topologies built in GNS3 to learn more about networking.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages