Skip to content

ipspace/netlab

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

332b95f · Jan 2, 2025
Aug 6, 2024
Jan 1, 2025
Jan 2, 2025
Dec 10, 2024
Jan 2, 2025
Jan 2, 2025
May 30, 2021
Mar 26, 2021
Jun 22, 2024
Feb 25, 2024
May 30, 2021
May 24, 2021
Feb 24, 2024
Apr 30, 2022
Aug 17, 2023
Nov 3, 2024
May 30, 2021
Oct 18, 2024
Nov 28, 2024
Oct 31, 2024
Oct 10, 2024
Mar 30, 2024

Repository files navigation

Overview

netlab is bringing infrastructure-as-code concepts to networking labs. You'll describe your high-level network topology and routing design in a YAML file, and the tools in this repository will

  • Create Vagrantfile configuration file for VirtualBox or libvirt environment
  • Create containerlab configuration file
  • Create Ansible inventory and configuration file
  • Create IPv4 and IPv6 addressing plan and OSPFv2, OSPFv3, EIGRP, IS-IS, and BGP routing design
  • Configure IPv4, IPv6, DHCP, DHCPv6, VLANs, VRFs, VXLAN, LLDP, BFD, OSPFv2, OSPFv3, EIGRP, IS-IS, BGP, RIPv2, RIPng, VRRP, LACP, STP, anycast gateways, route maps, prefix lists, AS-path prefix lists, route redistribution, default route origination, MPLS, BGP-LU, L3VPN (VPNv4 + VPNv6), 6PE, EVPN, SR-MPLS, or SRv6 on your lab devices.

Instead of wasting time creating lab topology in a GUI and configuring boring details, you'll start with a lab preconfigured according to your specifications.

Interested? Read the documentation and installation guidelines.

Releases

The latest release is release 1.9.2. It should be pretty stable, but if you encounter bugs, please report them as GitHub issues and use release 1.9.1 or 1.8.4-post2.

An Overview of CLI Commands

netlab up : Uses netlab create to create configuration files, starts the virtual lab, and uses netlab initial to deploy device configurations, including IP addressing, LLDP, OSPF, BGP, IS-IS, EIGRP, VRRP, VLANs, VRFs, MPLS, SR-MPLS, VXLAN, EVPN and SRv6. More details

netlab down : Destroys the virtual lab. More details

netlab restart : Restart and/or reconfigure the virtual lab. More details

netlab config : Applies additional Jinja2 configuration templates to network devices.

netlab collect : Using Ansible fact gathering or other device-specific Ansible modules, collects device configurations and saves them in the specified directory (default: config).

netlab connect : Use SSH or docker exec to connect to a lab device using device names, management network IP addresses (ansible_host), SSH port, and username/passwords specified in lab topology or netlab device defaults.

netlab exec : Use SSH or docker exec to execute a command on one or more network devices using device names, management network IP addresses (ansible_host), SSH port, and username/passwords specified in lab topology or netlab device defaults.

netlab capture : Perform packet capture on VM- and container interfaces

netlab report : Creates a report from the transformed lab topology data. More details

netlab graph : Creates a lab topology graph description in Graphviz or D2 format. More details

netlab show : Display system settings in tabular, text, or YAML format. More details