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

 openvswitch 2.7 安装过程记录 总结

 

 

验证工作(必须使用root权限)

 

# ovs-vsctl add-br br0
# ovs-vsctl add-port br0 eth0
# ovs-vsctl add-port br0 vif1.0

 

相关文章:

  • 2022-02-16
  • 2021-12-08
  • 2021-07-20
  • 2021-07-16
  • 2021-10-09
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-24
  • 2021-11-07
  • 2021-05-16
  • 2021-12-20
  • 2021-11-25
  • 2021-04-28
  • 2022-01-09
相关资源
相似解决方案