Skip to content

SMFloris/containernet-static-dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containernet

Containernet is a fork of Mininet that supports Docker containers as hosts. It's great for testing network topologies with real software stacks running inside Docker.

In these particular examples we explore static vs dynamic routing.

Topology

Topology

Requirements

  1. OvS (Open vSwitch) installed https://docs.openvswitch.org/en/latest/intro/install/

  2. Docker installed https://docker.com

  3. Make sure you have net.ipv4.ip_forward enabled on your host:

sysctl -w net.ipv4.ip_forward=1

How to run

You can use the wrapper script:

# to cleanup old networks
./start.sh --clean

# to start static example
./start.sh --static

# to start dynamic example
./start.sh --dynamic

# to force start any example by cleaning old networks
./start.sh --dynamic --clean

You can find the source of the scripts in the scripts folder.

Static routing

Adding routes statically, we are able to ping h2 from h1.

Setup

r1-ifconfig

Dynamic routing

Routing dynamically using Quagga and Rip works by using RIP on the interfaces defined by containernet.

Dynamic

You can also use vtysh in order to connect to quagga from containernet cli.

containernet> r1 vtysh

Dynamic-Vtysh

About

A simple containernet example of static and dynamic routing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published