Skip to content

This repository is my work with Mininet, ONOS, and ONOS clusters.

Notifications You must be signed in to change notification settings

nat0321/mininet

Repository files navigation

Running the code on a VM with SSH

wget (RAW CODE URL FROM GITHUB)
Ex. wget https://raw.githubusercontent.com/nat0321/mininet/main/mininet-test.py

sudo mn —custom FILENAME.py —topo=TOPONAME
Ex. sudo mn —custom mininet-test.py —topo=mytopo

Starting a Mininet Docker Container

sudo docker run -it --rm --privileged -e DISPLAY -v /tmp/.X11-unix:/tmp/.x11-unix -v /lib/modules:/lib/modules --name=omnet pmanzoni/mininet-in-a-container

If you need to reconnect to the docker container:
sudo docker exec -it omnet bash

Starting costom topology in ONOS inside of Docker container

Find local ip of host or ONOS controler:
Finding IP of local host:
ip a

Installing custom topology inside of container:
wget --no-check-certificate https://raw.githubusercontent.com/nat0321/mininet/main/OmnetTopo.py

Starting Mininet with custom topology:
mn --controller remote,ip=LOCAL_IP_OF_HOST --custom OmnetTopo.py --topo=OmnetTopo

Mininet Python API guide


http://mininet.org/api/classmininet_1_1net_1_1Mininet.html

sudo ovs-vsctl -- set Bridge s1 ipfix=@i -- --id=@i create IPFIX targets="172.16.234.96:2055" obs_domain_id=123 obs_point_id=456 sampling=64

About

This repository is my work with Mininet, ONOS, and ONOS clusters.

Topics

Resources

Stars

Watchers

Forks

Languages