[ovs-discuss] Connecting Two Physical Raspberry Pi Open vSwitch

Fakity Fakfak fakityfakfak at mail.ru
Sun Jan 7 15:57:23 UTC 2018


Thank you for your response these are very helpful.

I have setup a bridge on both Raspberry Pi for each to have the same configuration. 
My bridges (named br0 on both Raspberry Pi) have Eth0, Eth1, Eth2, and Eth3 attached.
Eth0 of both Pi are connected to each other using an ethernet cable.

Is it okay for me to setup the ip address of br0 on two different RPi to be the same?
I currently set br0 on Raspberry Pi A and Raspberry Pi B as 192.168.1.1 with the POX controller addressed 192.168.1.100



--
Deck Bennedicto

>Воскресенье, 31 декабря 2017, 5:19 +08:00 от Damiano Verzulli <damiano at verzulli.it>:
>
>On 30/12/2017 04:26, Fakity  Fakfak wrote:
>> [...]
>> The two raspberry pi is connected using an ethernet cable through each of
>> the Pi's eth0 port. Other devices are connected using usb-to-eth cable. 
>
>So you have two "host" (RPi-A and RPi-B), each one with:
>- one physical network interface (eth0)
>- _three_ USB-network-adapters (providing eth1, eth2, eth3);
>
>> My network infrastructure is similar to a Pi Stack Switch as seen on this
>> github post. (  https://github.com/OpenWinCon/pi-switch ) but only using two
>> (2) raspberry pi
>
>So you have an UTP ethernet cable directly connecting both RPis (let's
>assume, eth0<=>eth0).
>
>
>On 29/12/2017 14:29, Fakity  Fakfak via discuss wrote:
>> [...]
>> I wanted the topology to work in such a way that Host A can ping
>> every host in the network (B,C,D,E,F)
>
>So, basically you want to build a sort of "distributed switch" with 8
>ethernet ports (eth0, eth1, eth2, eth3 from both RPiA and RPiB) with two
>ports (eth0, eth0) used by your platform and the other 6 ports available
>for external equipments.
>
>
>On 29/12/2017 14:29, Fakity  Fakfak via discuss wrote:
>> [...]
>> I want to use one pox controller for my network topology.
>
>So you also want to use a single openflow controller (pox) to control all
>the infrastructure.
>
>
>If the above is correct (is it correct? If not, please, reply with
>details....), the solution seems quite simple :-)
>
>
>1 => install the openvswitch switch component to _BOTH_ RPis (so to have
>the OVS components ready to run, in both RPis);
>
>2 => configure a bridge on _BOTH_ RPIs (so to have a virtual-switch (a
>bridge) running on both RPis);
>
>3 => add eth0, eth1, eth2, eth3 to the above bridges (so to have related
>physical ports ready to be managed by OVS);
>
>This should be enough to have your infrastructure look like a single 8-port
>ethernet switch (providing that you directly connect the two RPis each
>other with one direct network connection).
>
>
>In order to have "pox" controlling _BOTH_ your OVS-instance (RPIs), you
>simply have to configure the controller (for BOTH RPis).
>
>You can also "push" things a bit more, by _REMOVING_ the direct cable
>between RPis and replacing it with a common Layer-3 link. In other words,
>you can simulate having two _DISTINCT_ OVS instances, interconnected VIA
>THE INTERNET (and not via a direct link).
>
>In such a case, once given proper IP addresses to at least one interface
>for each RPis (so that they can reach each other. Aka: they can PING each
>other and get a reply), you can simply remove the eth0 interface and
>configure an additional "tunnel" interface (type=GRE or type=VXLAN) in each
>of the two bridges (for each RPis) and... everything will work again :-)
>With tunnels (GRE as well as VXLAN) you might encounter issues with MTU...
>but... I'm going much beyond your original question, so let's stop here :-)
>
>Hope this help!
>
>Enjoy!
>
>Bye,
>DV
>
>
>-- 
>Damiano Verzulli
>e-mail:  damiano at verzulli.it
>---
>possible?ok:while(!possible){open_mindedness++}
>---
>"Technical people tend to fall into two categories: Specialists
>and Generalists. The Specialist learns more and more about a
>narrower and narrower field, until he eventually, in the limit,
>knows everything about nothing. The Generalist learns less and
>less about a wider and wider field, until eventually he knows
>nothing about everything." - William Stucke - AfrISPA
>   http://elists.isoc.org/mailman/private/pubsoft/2007-December/001935.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180107/51e9a1be/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 15888 bytes
Desc: not available
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180107/51e9a1be/attachment-0001.png>


More information about the discuss mailing list