geni_setup_instr.txt 916 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Ryu:
apt-get install python-dev
apt-get install python-pip
apt-get install build-essential
apt-get install libxml2-dev libxslt-dev
git clone git://github.com/osrg/ryu.git
cd ryu
python ./setup.py install

PYTHONPATH=. ./bin/ryu-manager ryu/app/simple_switch.py

emulab OF setup:
apt-get update
apt-get install openvswitch-datapath-source bridge-utils
module-assistant auto-install openvswitch-datapath
apt-get install openvswitch-brcompat openvswitch-common
apt-get install curl traceroute

edit /etc/default/openvswitch-switch #BRCOMPAT=yes

#do this for each interface with new br-int(name)
ovs-vsctl add-br br-int
ovs-vsctl add-port br-int eth2
ifconfig eth2 0
ifconfig br-int 10.10.1.2 netmask 255.255.255.0
route add -net 10.10.1.0 netmask 255.255.255.0 dev br-int

ovs-vsctl set-controller br-int(controller connected name) tcp:<<controller ip>>:6633

Dump flows: (from the switch)
ovs-dpctl dump-flows br-int