Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3773285
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2020-09-25 14:53:14

https://www.cnblogs.com/xkops/p/5568167.html

What is Open vSwitch?

Open vSwitch is a production quality, multilayer virtual switch licensed under the open source  license.  It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, IPFIX, RSPAN, CLI, LACP, 802.1ag).  In addition, it is designed to support distribution across multiple physical servers similar to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V. See full feature list 

1.安装依赖软件包,及创建普通用户ovs。
yum -y install wget gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool
adduser ovs
su - ovs

2.下载源码包,并创建rpm包。
mkdir -p ~/rpmbuild/SOURCES
wget
cp openvswitch-2.3.2.tar.gz ~/rpmbuild/SOURCES/
tar xfz openvswitch-2.3.2.tar.gz
sed 's/openvswitch-kmod, //g' openvswitch-2.3.2/rhel/openvswitch.spec > openvswitch-2.3.2/rhel/openvswitch_no_kmod.spec
rpmbuild -bb --nocheck openvswitch-2.3.2/rhel/openvswitch_no_kmod.spec
exit

3.创建ovs配置目录,并安装制作好的rpm包。
mkdir /etc/openvswitch
yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.3.2-1.x86_64.rpm

4.如果selinux开启,请执行如下操作,如未开启,请略过此步骤。
yum install policycoreutils-python
semanage fcontext -a -t openvswitch_rw_t "/etc/openvswitch(/.*)?"
restorecon -Rv /etc/openvswitch

5.启动服务,并查看ovs版本信息。

chkconfig openvswitch on
systemctl restart openvswitch.service
ovs-vsctl -V

阅读(1386) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~