wiki:p4-ovs-setup
Last modified 4 years ago Last modified on 12/02/16 10:57:34

Setup Open vSwitch mit P4


sudo apt install python python-pip libtool pyftpdlib libtool dh-python graphviz python-qt4 python-zopeinterface python-twisted-conch libc-dev libssl-dev libssl-bin dh-autoreconf

sudo pip install 'flake8<3.0'

wget https://github.com/blp/ovs-reviews/archive/p4-workshop.tar.gz

tar -xvf ovs-reviws-p4-workshop.tar.gz
cd  ovs-reviws-p4-workshop

./boot.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc

make
sudo make install

sudo ovsdb-tool create /etc/openvswitch/conf.db vswitchd/vswitch.ovsschema

sudo ovsdb-server --remote=punix:/var/run/openvswitch/db.sock \
    --remote=db:Open_vSwitch,Open_vSwitch,manager_options \
    --private-key=db:Open_vSwitch,SSL,private_key \
    --certificate=db:Open_vSwitch,SSL,certificate \
    --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
    --pidfile --detach
	
sudo ovs-vsctl --no-wait init

sudo ovs-vswitchd --pidfile --detach