Skip to content

Instantly share code, notes, and snippets.

@LKS90
Created October 25, 2016 18:57
Show Gist options
  • Select an option

  • Save LKS90/ac76bba3d6f1e1a4811a72448fc8c464 to your computer and use it in GitHub Desktop.

Select an option

Save LKS90/ac76bba3d6f1e1a4811a72448fc8c464 to your computer and use it in GitHub Desktop.

Revisions

  1. LKS90 created this gist Oct 25, 2016.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@

    #!/bin/sh
    sudo su root
    mininet
    apt-get update
    apt-get install -y qemu-system

    wget -c http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

    ovs-vsctl add-br br0
    ifconfig br0 up
    ovs-vsctl add-port eth0 br0

    ifconfig eth0 0
    dhclient br0

    ip tuntap add mode tap vport 1
    ip tuntap add mode tap vport 2
    ip tuntap add mode tap vport 3

    ovs-vsctl add-port br0 vport 1
    ovs-vsctl add-port br0 vport 2
    ovs-vsctl add-port br0 vport 3