Giter Club home page Giter Club logo

containerlab-topologies's Introduction

Containerlab topologies

Here you will find a collection of pre-configured network topologies that can be used for protocol labbing and software interoperability testing.

If you're new to containerlab, you can quickly get started by visiting the official documentation.

Organization

This repository is organized into directories, each representing a unique network topology. Within each directory, you'll find configuration files for different routing stacks, including:

  • Holo (open source)
  • FRRouting (open source)
  • BIRD (open source)
  • SR Linux (Nokia)
  • cEOS (Arista)

Every topology includes configuration files for container images that support the specific protocol features used within the topology. For example, the ospfv3-sr directory contains only Holo configuration files because Holo is the only routing stack that supports Segment Routing for OSPFv3.

As part of future plans, the topologies will be expanded to include configurations for other vendors, such as IOS-XR and Junos.

By default, all topologies use Holo in all routers. However, you have the flexibility to customize the topology files and experiment with different container images on different routers.

Running a topology

To deploy a topology, use the following command:

$ sudo containerlab deploy -c --topo <path-to-topology.yml>

NOTE: Some topologies use bridge interfaces that require explicit creation since containerlab does not handle that. To create the necessary bridge interface, use the following commands:

$ sudo ip link add br1 type bridge
$ sudo ip link set dev br1 up

The topology initialization may take a few seconds, depending on the router images used. Once complete, you will see an output similar to the following, indicating the status and management addresses of all virtual routers:

+---+-----------------+--------------+-------------------------------+-------+---------+----------------+----------------------+
| # |      Name       | Container ID |             Image             | Kind  |  State  |  IPv4 Address  |     IPv6 Address     |
+---+-----------------+--------------+-------------------------------+-------+---------+----------------+----------------------+
| 1 | clab-ospfv2-rt1 | 2746124fb722 | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.3/24 | 2001:172:20:20::3/64 |
| 2 | clab-ospfv2-rt2 | 83946a575b4d | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.7/24 | 2001:172:20:20::7/64 |
| 3 | clab-ospfv2-rt3 | 55d6b054af64 | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.4/24 | 2001:172:20:20::4/64 |
| 4 | clab-ospfv2-rt4 | 173125d65817 | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.2/24 | 2001:172:20:20::2/64 |
| 5 | clab-ospfv2-rt5 | d7051036115c | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.5/24 | 2001:172:20:20::5/64 |
| 6 | clab-ospfv2-rt6 | 64b6e768bca1 | ghcr.io/holo-routing/holo:latest | linux | running | 172.20.20.6/24 | 2001:172:20:20::6/64 |
+---+-----------------+--------------+-------------------------------+-------+---------+----------------+----------------------+

To access any router, you can use the following command (replacing bash with your desired shell or CLI):

$ sudo docker exec -it clab-ospfv2-rt1 bash

To stop the topology, use the following command:

$ sudo containerlab destroy --all

Feel free to explore the different topologies and experiment with various configurations. Happy labbing!

containerlab-topologies's People

Contributors

rwestphal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

pinkforest

containerlab-topologies's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.