Created
October 25, 2016 18:57
-
-
Save LKS90/ac76bba3d6f1e1a4811a72448fc8c464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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