Chapter XXI. OVS Kernel Datapath Offload
vi. Configure OVS
[root@host~]# ovs-appctl exit
[root@host~]# pkill -9 ovs
[root@host~]# rm -rf /usr/local/etc/ovs-vswitchd.conf
[root@host~]# rm -rf /usr/local/var/run/openvswitch/db.sock
[root@host~]# rm -rf /usr/local/etc/openvswitch/conf.db
[root@host~]# touch /usr/local/etc/ovs-vswitchd.conf
[root@host~]# ovsdb-tool create /usr/local/etc/openvswitch/conf.db
<uwire_package>/src/openvswitch-x.x.x/vswitchd/vswitch.ovsschema
[root@host~]# ovsdb-server /usr/local/etc/openvswitch/conf.db --
remote=punix:/usr/local/var/run/openvswitch/db.sock --
remote=db:Open_vSwitch,Open_vSwitch,manager_options --bootstrap-ca-
cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach --log-file
[root@host~]# ovs-vsctl --no-wait init
[root@host~]# export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
[root@host~]# ovs-vswitchd --pidfile --detach
vii. Create an OVS bridge and add Chelsio interfaces to it:
[root@host~]# ovs-vsctl add-br br0
[root@host~]# sleep 2
[root@host~]# ifconfig br0 up
[root@host~]# ovs-vsctl add-port br0 eth2
[root@host~]# sleep 5
[root@host~]# ovs-vsctl add-port br0 eth3
[root@host~]# sleep 5
[root@host~]# ovs-vsctl show
Ports on OVS bridge must be added in the same order as the adapter, since there's
Note
no mapping between OVS and physical ports.
viii. Now ping from Host A to Host B to verify that OVS is configured successfully.
ix. Stop the ping traffic and delete all the flows on switch:
[root@host~]# ovs-ofctl del-flows br0
Chelsio Unified Wire for Linux
303
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers