Skip to content

Instantly share code, notes, and snippets.

@arthurazs
Last active February 23, 2021 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurazs/02fe3391a6c74cd9ab669338e86e8744 to your computer and use it in GitHub Desktop.
Save arthurazs/02fe3391a6c74cd9ab669338e86e8744 to your computer and use it in GitHub Desktop.
sudo yum update -y

sudo yum -y install openssh-server
sudo chkconfig sshd on
sudo service sshd start
sudo setenforce Permissive

sudo visudo and change secure_path to Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin

git clone git://github.com/mininet/mininet.git
cd mininet/util

open install.sh, after the line test -e /etc/redhat-release && DIST="RedHatEnterpriseServer", add

test -e /etc/centos-release && DIST="CentOS"

change all 8 if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" ]; then lines to

if [ "$DIST" = "Fedora" -o "$DIST" = "RedHatEnterpriseServer" -o "$DIST" = "CentOS" ]; then

change the line DISTS='Ubuntu|Debian|Fedora|RedHatEnterpriseServer|SUSE LINUX' to

DISTS='Ubuntu|Debian|Fedora|RedHatEnterpriseServer|SUSE LINUX|CentOS'

then

sudo yum --enablerepo=extras install epel-release
sudo sh install.sh -nf

then install ovs

sudo yum install -y epel-release centos-release-openstack-train
sudo yum install openvswitch libibverbs

finally

ryu-manager ryu.app.simple_switch
sudo mn --controller remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment