Skip to content

Instantly share code, notes, and snippets.

@LKS90
Created October 25, 2016 18:57
Show Gist options
  • Save LKS90/ac76bba3d6f1e1a4811a72448fc8c464 to your computer and use it in GitHub Desktop.
Save LKS90/ac76bba3d6f1e1a4811a72448fc8c464 to your computer and use it in GitHub Desktop.
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment