SlideShare a Scribd company logo
Learning OpenFlow with OvS
on BPI R1 and Zodiac FX
Telematika Open Session #9
Rabu, 4 April 2018
Lab Telematika
Sekolah Teknik Elektro dan Informatika
Institut Teknologi Bandung
Labtek 8 Lantai 4
Apa itu Open vSwitch?
Mari Kita Mulai!
1
“
Open vSwitch is a production quality, multilayer virtual
switch licensed under the open source Apache 2.0 license.
It is designed to enable massive network automation
through programmatic extension, while still supporting
standard management interfaces and protocols (e.g.
NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag).
“
Open vSwitch adalah switch virtual
yang dapat diprogram
Bagian-bagian yang “menarik”
◉ Menulis Program Sendiri!
◉ Perkembangan Cepat!
◉ Berbeda dengan CCIE!
Dan masih banyak lagi!
Apa itu Open Flow?
Ini Bagian 2
2
“
OpenFlow is a protocol that separates the control of a switch
from the switch itself. The high-level control of a switch, which
includes packet routing and so on, is moved to a centralized
server.
Bagaimana cara kerjanya?
Bagaimana Kita Belajar
OpenFlow?
Tanpa Membeli Switch Harga DP Rumah?
3
Banana Pi R1
The BPI R1 is an open source computer with 5
Ethernet ports. The boards can run Linux, making
them perfect for DIY SDN projects.
Siapkan OS Banana Pi R1
1. Download Image OS Armbian 5.31 Debian
Jessie next 4.9.7
2. Burn ke MicroSD
3. Pasangkan ke Perangkat
4. Pasangkan Adapter 5V 2A
Arsitektur Jaringan Banana Pi R1
Sebelum Konfigurasi Jaringan
Arsitektur Jaringan Banana Pi R1
Setelah Konfigurasi Jaringan
Pembagian Interafce eth0
1. Bagi interface eth0 dan identifikasikan vlan
yang berkorespondensi
ip link set eth0 up
ip link add link eth0 name eth0.10 type vlan id 10
ip link add link eth0 name eth0.20 type vlan id 20
ip link add link eth0 name eth0.30 type vlan id 30
ip link add link eth0 name eth0.40 type vlan id 40
ip link add link eth0 name eth0.50 type vlan id 50
Berikan Bridge Physical Port dan
Hapus VLAN Native
brctl addbr [nama bridge brctl]
brctl addif [nama bridge brctl] lan1
brctl addif [nama bridge brctl] lan2
brctl addif [nama bridge brctl] lan3
brctl addif [nama bridge brctl] lan4
brctl addif [nama bridge brctl] wan
bridge vlan del vid 1 dev lan1
bridge vlan del vid 1 dev lan2
bridge vlan del vid 1 dev lan3
bridge vlan del vid 1 dev lan4
bridge vlan del vid 1 dev wan
Identifikasikan VLAN Physical Port
bridge vlan add vid 10 dev lan1 pvid untagged
bridge vlan add vid 20 dev lan2 pvid untagged
bridge vlan add vid 30 dev lan3 pvid untagged
bridge vlan add vid 40 dev lan4 pvid untagged
bridge vlan add vid 50 dev wan pvid untagged
Identifikasikan Master Bridge
Physical Port
ip link set lan1 master [nama bridge brctl]
ip link set lan2 master [nama bridge brctl]
ip link set lan3 master [nama bridge brctl]
ip link set lan4 master [nama bridge brctl]
ip link set wan master [nama bridge brctl]
Aktivasi Setiap Port dan Bridge
ip link set dev [nama bridge brctl] up
ip link set eth0.10 up
ip link set eth0.20 up
ip link set eth0.30 up
ip link set eth0.40 up
ip link set eth0.50 up
ip link set wan up
ip link set lan1 up
ip link set lan2 up
ip link set lan3 up
ip link set lan4 up
Instalasi Open vSwitch
apt-get install openvSwitch-switch
Konfigurasi Open vSwitch
ovs-vsctl add-br [nama bridge ovs]
ovs-vsctl add-port [nama bridge ovs] eth0.10
ovs-vsctl add-port [nama bridge ovs] eth0.20
ovs-vsctl add-port [nama bridge ovs] eth0.30
ovs-vsctl add-port [nama bridge ovs] eth0.40
1. Buatlah sebuah brodge Open vSwitch
2. Masukkan Port-Port anggota, selain port
yang digunakan untuk berkomunikasi
dengan kontroller
Identifikasi Port Open vSwitch
ovs-vsctl set Interface [nama interface] ofport_request=[angka]
#Contoh
ovs-vsctl set Interface eth0.10 ofport_request=1
Digunakan untuk penyederhanaan pemanggilan
port di perintah-perintah flow
Beberapa Perintah Open vSwitch
#Menghapus Bridge atau Port
ovs-vsctl del-br [nama bridge ovs]
ovs-vsctl del-port [nama bridge ovs] eth0.10
#Set Remote Controller
ovs-vsctl set-controller tcp:[ip]:[port]
#Melihat Flow
ovs-vsctl dump-flows [nama bridge ovs]
#Menghapus Flow
ovs-vsctl del-flows [nama bridge ovs]
Contoh Tes Open vSwitch
ovs-ofctl add-flow br in_port=1,actions=output:2
ovs-ofctl add-flow br in_port=2,actions=output:1
Bagaimana Kita Belajar
OpenFlow dengan Mudah?
Banana Pi Sepertinya Terlalu Sulit
4
Zodiac FX
The Zodiac FX is the first OpenFlow switch
designed to sit on your desk. Finally you can
develop SDN applications using real traffic from
real hardware
Learning OpenFlow with OVS on BPI R1 and Zodiac FX
Konfigurasi Awal Zodiac FX
1. Pasang di Port USB Komputer
2. Nyalakan Komunikasi Serial (BAUD 119200)
_____ ___ _______ __
/__ / ____ ____/ (_)___ ______ / ____/ |/ /
/ / / __ / __ / / __ `/ ___/ / /_ | /
/ /__/ /_/ / /_/ / / /_/ / /__ / __/ / |
/____/____/__,_/_/__,_/___/ /_/ /_/|_|
by Northbound Networks
Type 'help' for a list of available commands
Zodiac_FX#
Konfigurasi Alamat IP Zodiac FX
Zodiac_FX# config
Zodiac_FX(config)# set ip-address [ip address]
IP Address set to [ip address]
Zodiac_FX(config)# set netmask [netmask]
Netmask set to [netmask]
Zodiac_FX(config)# save
Writing Configuration to EEPROM (197 bytes)
Zodiac_FX(config)#
Akses Webserver Zodiac FX
Configurasi Openflow Zodiac FX
Zodiac FX Siap Dipakai!
Referensi
https://northboundnetworks.com/products/zodiac-fx
https://ma405th.wordpress.com/2016/10/18/install-openvswitch-on-
banana-pi-r1/
http://www.banana-pi.org/
http://www.openvswitch.org//support/slides/ppf.pdf
Download OS Armbian di:
https://www.armbian.com/lamobo-r1/
Any questions ?
You can find me at:
◉ Telegram @radipp
◉ pradifan@yahoo.com
Thanks!

More Related Content

PDF
Soft x3000 operation manual configuration guide
PDF
Integration of OVS in OpenWrt wireless network and investigation of SDWMN
PPTX
5G Network Slicing Using Mininet
PPTX
Private VLANs
PDF
VRF (virtual routing and forwarding)
PDF
ACI MultiPod Config Guide
PDF
Netmanias L2,L3 Training (3) L2, L3 QoS
PDF
Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...
Soft x3000 operation manual configuration guide
Integration of OVS in OpenWrt wireless network and investigation of SDWMN
5G Network Slicing Using Mininet
Private VLANs
VRF (virtual routing and forwarding)
ACI MultiPod Config Guide
Netmanias L2,L3 Training (3) L2, L3 QoS
Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...

What's hot (20)

PDF
00 st pcs7-sys_v8.0_register 20 en
PPTX
SDN Basics – What You Need to Know about Software-Defined Networking
PDF
CCNAv5 - S3: Chapter 7 EIGRP
ODP
05 01 open-vpn
PPTX
Software-Defined Networking (SDN): Unleashing the Power of the Network
PPT
BGP Overview
PPTX
ACI Hands-on Lab
PDF
6.5.1.2 packet tracer layer 2 security instructor
PPTX
Cisco CCNA- NAT Configuration
DOCX
How to configure vlan, stp, dtp step by step guide
PDF
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
PPTX
NAT with ASA & ASA Security Context
PPTX
routage Ad hoc ZRP
PDF
cours ospf
PPTX
Ethernet VPN (EVPN) EVerything Provider Needs
PDF
ONOS SDN Controller - Introduction
PDF
Cisco Live! :: Introduction to Segment Routing :: BRKRST-2124 | Las Vegas 2017
PPTX
ALU 7360 5520_gpon_basic_configuration
PDF
Routing in 6lowpan (in French)
00 st pcs7-sys_v8.0_register 20 en
SDN Basics – What You Need to Know about Software-Defined Networking
CCNAv5 - S3: Chapter 7 EIGRP
05 01 open-vpn
Software-Defined Networking (SDN): Unleashing the Power of the Network
BGP Overview
ACI Hands-on Lab
6.5.1.2 packet tracer layer 2 security instructor
Cisco CCNA- NAT Configuration
How to configure vlan, stp, dtp step by step guide
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
NAT with ASA & ASA Security Context
routage Ad hoc ZRP
cours ospf
Ethernet VPN (EVPN) EVerything Provider Needs
ONOS SDN Controller - Introduction
Cisco Live! :: Introduction to Segment Routing :: BRKRST-2124 | Las Vegas 2017
ALU 7360 5520_gpon_basic_configuration
Routing in 6lowpan (in French)
Ad

Similar to Learning OpenFlow with OVS on BPI R1 and Zodiac FX (8)

PPTX
Openstack openswitch basics
PPTX
Thebasicintroductionofopenvswitch
PDF
Virtualized network with openvswitch
PPTX
The Basic Introduction of Open vSwitch
PDF
Open vSwitch for networking solution for L2
PDF
Open stack networking vlan, gre
PDF
OpenStack networking
PDF
Sdnds tw-meetup-2
Openstack openswitch basics
Thebasicintroductionofopenvswitch
Virtualized network with openvswitch
The Basic Introduction of Open vSwitch
Open vSwitch for networking solution for L2
Open stack networking vlan, gre
OpenStack networking
Sdnds tw-meetup-2
Ad

More from Telematika Open Session (9)

PPTX
Learning netconf yang from scratch
PDF
PPTX
ceph software defined storage
PDF
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
PDF
Network security
PPTX
DevOps Introduction - Why Network Engineer Should Learn Programming
PDF
From network beginner to network programmer.v2
PDF
Cloud managed networking
PDF
Paving your way to become a network engineer
Learning netconf yang from scratch
ceph software defined storage
SDN Onboarding: Open vSwitch CLIs, OpenDaylight
Network security
DevOps Introduction - Why Network Engineer Should Learn Programming
From network beginner to network programmer.v2
Cloud managed networking
Paving your way to become a network engineer

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
A Presentation on Artificial Intelligence
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Digital-Transformation-Roadmap-for-Companies.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A Presentation on Artificial Intelligence
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Cloud computing and distributed systems.

Learning OpenFlow with OVS on BPI R1 and Zodiac FX

  • 1. Learning OpenFlow with OvS on BPI R1 and Zodiac FX Telematika Open Session #9 Rabu, 4 April 2018 Lab Telematika Sekolah Teknik Elektro dan Informatika Institut Teknologi Bandung Labtek 8 Lantai 4
  • 2. Apa itu Open vSwitch? Mari Kita Mulai! 1
  • 3. “ Open vSwitch is a production quality, multilayer virtual switch licensed under the open source Apache 2.0 license. It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag).
  • 4. “ Open vSwitch adalah switch virtual yang dapat diprogram
  • 5. Bagian-bagian yang “menarik” ◉ Menulis Program Sendiri! ◉ Perkembangan Cepat! ◉ Berbeda dengan CCIE! Dan masih banyak lagi!
  • 6. Apa itu Open Flow? Ini Bagian 2 2
  • 7. “ OpenFlow is a protocol that separates the control of a switch from the switch itself. The high-level control of a switch, which includes packet routing and so on, is moved to a centralized server.
  • 9. Bagaimana Kita Belajar OpenFlow? Tanpa Membeli Switch Harga DP Rumah? 3
  • 10. Banana Pi R1 The BPI R1 is an open source computer with 5 Ethernet ports. The boards can run Linux, making them perfect for DIY SDN projects.
  • 11. Siapkan OS Banana Pi R1 1. Download Image OS Armbian 5.31 Debian Jessie next 4.9.7 2. Burn ke MicroSD 3. Pasangkan ke Perangkat 4. Pasangkan Adapter 5V 2A
  • 12. Arsitektur Jaringan Banana Pi R1 Sebelum Konfigurasi Jaringan
  • 13. Arsitektur Jaringan Banana Pi R1 Setelah Konfigurasi Jaringan
  • 14. Pembagian Interafce eth0 1. Bagi interface eth0 dan identifikasikan vlan yang berkorespondensi ip link set eth0 up ip link add link eth0 name eth0.10 type vlan id 10 ip link add link eth0 name eth0.20 type vlan id 20 ip link add link eth0 name eth0.30 type vlan id 30 ip link add link eth0 name eth0.40 type vlan id 40 ip link add link eth0 name eth0.50 type vlan id 50
  • 15. Berikan Bridge Physical Port dan Hapus VLAN Native brctl addbr [nama bridge brctl] brctl addif [nama bridge brctl] lan1 brctl addif [nama bridge brctl] lan2 brctl addif [nama bridge brctl] lan3 brctl addif [nama bridge brctl] lan4 brctl addif [nama bridge brctl] wan bridge vlan del vid 1 dev lan1 bridge vlan del vid 1 dev lan2 bridge vlan del vid 1 dev lan3 bridge vlan del vid 1 dev lan4 bridge vlan del vid 1 dev wan
  • 16. Identifikasikan VLAN Physical Port bridge vlan add vid 10 dev lan1 pvid untagged bridge vlan add vid 20 dev lan2 pvid untagged bridge vlan add vid 30 dev lan3 pvid untagged bridge vlan add vid 40 dev lan4 pvid untagged bridge vlan add vid 50 dev wan pvid untagged
  • 17. Identifikasikan Master Bridge Physical Port ip link set lan1 master [nama bridge brctl] ip link set lan2 master [nama bridge brctl] ip link set lan3 master [nama bridge brctl] ip link set lan4 master [nama bridge brctl] ip link set wan master [nama bridge brctl]
  • 18. Aktivasi Setiap Port dan Bridge ip link set dev [nama bridge brctl] up ip link set eth0.10 up ip link set eth0.20 up ip link set eth0.30 up ip link set eth0.40 up ip link set eth0.50 up ip link set wan up ip link set lan1 up ip link set lan2 up ip link set lan3 up ip link set lan4 up
  • 19. Instalasi Open vSwitch apt-get install openvSwitch-switch
  • 20. Konfigurasi Open vSwitch ovs-vsctl add-br [nama bridge ovs] ovs-vsctl add-port [nama bridge ovs] eth0.10 ovs-vsctl add-port [nama bridge ovs] eth0.20 ovs-vsctl add-port [nama bridge ovs] eth0.30 ovs-vsctl add-port [nama bridge ovs] eth0.40 1. Buatlah sebuah brodge Open vSwitch 2. Masukkan Port-Port anggota, selain port yang digunakan untuk berkomunikasi dengan kontroller
  • 21. Identifikasi Port Open vSwitch ovs-vsctl set Interface [nama interface] ofport_request=[angka] #Contoh ovs-vsctl set Interface eth0.10 ofport_request=1 Digunakan untuk penyederhanaan pemanggilan port di perintah-perintah flow
  • 22. Beberapa Perintah Open vSwitch #Menghapus Bridge atau Port ovs-vsctl del-br [nama bridge ovs] ovs-vsctl del-port [nama bridge ovs] eth0.10 #Set Remote Controller ovs-vsctl set-controller tcp:[ip]:[port] #Melihat Flow ovs-vsctl dump-flows [nama bridge ovs] #Menghapus Flow ovs-vsctl del-flows [nama bridge ovs]
  • 23. Contoh Tes Open vSwitch ovs-ofctl add-flow br in_port=1,actions=output:2 ovs-ofctl add-flow br in_port=2,actions=output:1
  • 24. Bagaimana Kita Belajar OpenFlow dengan Mudah? Banana Pi Sepertinya Terlalu Sulit 4
  • 25. Zodiac FX The Zodiac FX is the first OpenFlow switch designed to sit on your desk. Finally you can develop SDN applications using real traffic from real hardware
  • 27. Konfigurasi Awal Zodiac FX 1. Pasang di Port USB Komputer 2. Nyalakan Komunikasi Serial (BAUD 119200) _____ ___ _______ __ /__ / ____ ____/ (_)___ ______ / ____/ |/ / / / / __ / __ / / __ `/ ___/ / /_ | / / /__/ /_/ / /_/ / / /_/ / /__ / __/ / | /____/____/__,_/_/__,_/___/ /_/ /_/|_| by Northbound Networks Type 'help' for a list of available commands Zodiac_FX#
  • 28. Konfigurasi Alamat IP Zodiac FX Zodiac_FX# config Zodiac_FX(config)# set ip-address [ip address] IP Address set to [ip address] Zodiac_FX(config)# set netmask [netmask] Netmask set to [netmask] Zodiac_FX(config)# save Writing Configuration to EEPROM (197 bytes) Zodiac_FX(config)#
  • 31. Zodiac FX Siap Dipakai!
  • 33. Any questions ? You can find me at: ◉ Telegram @radipp ◉ pradifan@yahoo.com Thanks!