Openvswitch atau ovs adalah suatu software multilayer virtual switch dibawah lisensi apache 2.0 yang mendukung standar management interface dan protocol seperti Netflow, Sflow, IPFIX, RSPAN, CLI, LACP, 802.1ag . selain itu dia juga dirancang untuk mendukung distribusi server fisik seperti cisco nexus 1000V.
Install repo epel-release
1 |
yum -y install epel-release |
kemudian Install package dependencynya
1 |
yum -y install wget openssl-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool python-twisted-core python-zope-interface PyQt4 desktop-file-utils libcap-ng-devel groff checkpolicy selinux-policy-devel |
setelah selesai install packagenya, maka selanjutnya buat user khusus unutk ovs
1 2 3 |
adduser ovs su - ovs |
kemudian download source code untuk memulai installasi openvswitch
1 2 3 4 5 6 7 |
mkdir -p ~/rpmbuild/SOURCES wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz cp openvswitch-2.5.0.tar.gz ~/rpmbuild/SOURCES/ tar xfz openvswitch-2.5.0.tar.gz |
kemudian build RPM package dan exit
1 2 3 |
rpmbuild -bb --nocheck openvswitch-2.5.0/rhel/openvswitch-fedora.spec exit |
setelah itu kembali ke root dan install RPM packagenya
1 |
yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.5.0-1.el7.centos.x86_64.rpm -y |
okee, proses installasi sudah selesai, setelah itu aktifkan openvswitchnya
1 |
systemctl enable openvswitch && systemctl start openvswitch |
kemudian liat status ovs
1 2 3 4 5 6 7 8 9 |
[root@odl ~]# systemctl status openvswitch ● openvswitch.service - Open vSwitch Loaded: loaded (/usr/lib/systemd/system/openvswitch.service; enabled; vendor preset: disabled) Active: active (exited) since Min 2017-01-15 06:39:27 EST; 1h 30min ago Main PID: 1042 (code=exited, status=0/SUCCESS) CGroup: /system.slice/openvswitch.service Jan 15 06:39:27 odl systemd[1]: Starting Open vSwitch... Jan 15 06:39:27 odl systemd[1]: Started Open vSwitch. |
kemudian lihat versi openvswitchnya
1 2 3 4 |
[root@odl ~]# ovs-vsctl -V ovs-vsctl (Open vSwitch) 2.5.0 Compiled Jan 15 2017 06:25:43 DB Schema 7.12.1 |
Jika saat menjalankan perintah ovs-vsctl terjadi error maka pastikan bahwa openvswtich anda sudah di start
sekian dulu tutorialnya semoga bermanfaat.
wasalam….
System Engineer
Komentar