文档:https://docs.openvswitch.org/en/latest/intro/install/general/
1.
yum install autoconf automake libtool
2.
./boot.sh
3.
./configure
4.
yum install kernel-devel
[root@base-centos7- openvswitch-2.10.]# ./configure --with-linux=/lib/modules/3.10.-862.14..el7.x86_64/build/
5.
make
make install
6.
启动
[root@base-centos7- ~]# /usr/local/share/openvswitch/scripts/ovs-ctl start
查看
[root@base-centos7- ~]# ps -ef |grep ovs
root : ? :: ovsdb-server: monitoring pid (healthy)
root : ? :: ovsdb-server /usr/local/etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/usr/local/var/run/openvswitch/db.sock --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/usr/local/var/log/openvswitch/ovsdb-server.log --pidfile=/usr/local/var/run/openvswitch/ovsdb-server.pid --detach --monitor
root : ? :: ovs-vswitchd: monitoring pid (healthy)
root : ? :: ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/usr/local/var/log/openvswitch/ovs-vswitchd.log --pidfile=/usr/local/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor
root : pts/ :: grep --color=auto ovs
[root@base-centos7- ~]# lsmod |grep open
openvswitch
tunnel6 openvswitch
nf_nat_ipv6 openvswitch
nf_nat_ipv4 openvswitch
nf_defrag_ipv6 openvswitch,nf_conntrack_ipv6
nf_nat openvswitch,nf_nat_ipv4,nf_nat_ipv6
nf_conntrack openvswitch,nf_nat,nf_nat_ipv4,nf_nat_ipv6,nf_conntrack_ipv4,nf_conntrack_ipv6
libcrc32c xfs,openvswitch,nf_nat,nf_conntrack