envswitch 2.7 安裝過程記錄 總結
安裝思路是參考文檔:
http://docs.openvswitch.org/en/latest/intro/install/general/#obtaining-open-vswitch-sources
1、下載ovs 2.7.0代碼
$ git clone https://github.com/openvswitch/ovs.git
准備編譯環境
2、配置環境預准備(必須使用root權限)
./boot.sh
曾經出現的問題:
[zhou@localhost ovs]$ ./boot.sh
./boot.sh: line 2: autoreconf: command not found
解決方法:
[root@localhost ovs]# yum install autoconf automake libtool
3、配置環境(必須使用root權限)
#./configure
4、編譯(必須使用root權限)
# make
5、檢查是否能通過ovs自帶的單元測試用例
$ make check
6、安裝(必須使用root權限)
# make install
7、檢查安裝是否成功?(必須使用root權限)
# /sbin/lsmod | grep openvswitch
開始使用(必須使用root權限)
# export PATH=$PATH:/usr/local/share/openvswitch/scripts
# ovs-ctl start
驗證工作(必須使用root權限)
# ovs-vsctl add-br br0
# ovs-vsctl add-port br0 eth0
# ovs-vsctl add-port br0 vif1.0