Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Openvswitch installation (centos6.5)

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1. Install dependency packages

Yum install gcc make python-devel openssl-devel kernel-devel graphviz\ kernel-debug-devel autoconf automake rpm-build redhat-rpm-config\ libtool

Where Autoconf must be > = 2.63 version

two。 Install openvswitch (version 2.4.0 as an example)

Download version 2.4.0

Mkdir-p / root/rpmbuild/SOURCES

Cp openvswitch-2.4.0.tar.gz / root/rpmbuild/SOURCES

Cd / root/rpmbuild/SOURCES

Tar-zxvf openvswitch-2.4.0.tar.gz

3.rpm package making

Rpmbuild-bb-- without check rhel/openvswitch.spec

Rpmbuild-bb rhel/openvswitch-kmod-rhel6.spec

The following problems may be encountered in this step:

3.1 rely on / usr/local/bin/python, add Autoreq: 0 to spec

3.2 / etc/depmod.d/openvswitch.conf does not exist, added in openvswitch-kmod-rhel6.spec and spec.in

% files

/ lib/modules/2.6.32-358.18.1.el6.x86_64/extra/openvswitch/openvswitch.ko

/ etc/depmod.d/openvswitch.conf

4. Install the RPM package

Rpm-ivh openvswitch-2.4.0-1.x86_64.rpm openvswitch-kmod-2.4.0-1.el6.x86_64.rpm

Rpm-ivh kmod-openvswitch-2.4.0-1.el6.x86_64.rpm

5. Start openvswitch

Modprobe openvswitch

/ etc/init.d/openvswitch start

Reference:

Http://blog.csdn.net/bobpen/article/details/11478263

Http://openvswitch.org/support/dist-docs-2.4/INSTALL.RHEL.md.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report