[https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/general.rst](https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/general.rst)
环境Ubuntu 14.04.1(内核3.13.0-39-generic)
```
cd /usr/local/src
git clone https://github.com/openvswitch/ovs.git
apt-get install build-essential automake make gcc libtool python python-six
cd ovs
bash boot.sh
./configure --with-linux=/lib/modules/`uname -r`/build 2>/dev/null
make -j4 && make install
modprobe gre
modprobe openvswitch
# insmod datapath/linux/openvswitch.ko
make modules_install
mkdir -p /usr/local/etc/openvswitch
ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema 2>/dev/null
ovsdb-server --remote=punix:/usr/local/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
ovs-vsctl --no-wait init
ovs-vswitchd --pidfile --detach
```
版权属于:Hurray's InfoShare
本文链接:https://hurray0.com/menu/48/
如果没有特别声明,则为本博原创。转载时须注明出处及本声明!