[ovs-discuss] Confused how to set up an STP loop topology on BPI switches

Christopher Hannon channon at hawk.iit.edu
Wed Jan 9 15:33:40 UTC 2019


Thanks for your reply, I think I understand your point regarding hardware
switching. Although wouldn't there need to be a layer 3 connection
somewhere to pull a packet from one vlan to the other? I guess I am not
completely sure about how the vlans get connected together. Would this be
in OVS?


On Tue, Jan 8, 2019 at 10:00 PM Raymond Burkholder <ray at oneunified.net>
wrote:

> One solution might be to supply a unique vlan between each pair of
> switches:
>
> vlan 111 s1,sw2
> vlan 112 sw2,sw3
> vlan 114 sw3,sw4
> vlan 115 sw4,sw1
>
> I *think* the issue is that with the lan ports all in the same vlan, the
> hardware switch is switching packets, and not passing the packets up to
> ovs.  And if the hardware switch does not have STP turned on, you will end
> up with the loop.
>
> With the segregating vlans, packets should then be passed to OVS for use
> in it's bridging functions.
>
>
>
> On 2019-01-08 8:43 p.m., Christopher Hannon wrote:
>
> Hello all,
>
> I am struggling to set up a simple topology and could use some advice. I
> am trying to set up a loop topology using 4 Banana Pi R1 Routers running
> OVS. http://www.banana-pi.org/r1.html.  The devices are advertised as 4
> LAN ports and 1 WAN port.
> I want to set up a topology as such:  h1 is regular banana Pi and s1/2/3/4
> are the router Pi s
>
>                  -- s2 --
>               /             \
> h1 ----- s1              s4    --- h2
>               \             /
>                  -- s3 --
>
> However what I discovered is that all the ports share a common ethernet
> controller. So I set up the router as such:
>
> /etc/network/interfaces
> auto lo
> iface lo net loopback
>
> auto eth0.101 #wan
>     iface eth0.101 inet dhcp
> auto eth0.102 #lan
>     iface eth0.102 inet static
>     address 10.10.1.3
>     netmask 255.255.255.0
>
> and the /etc/network/if-pre-up.d/swconfig file
> ifconfig eth0 up
> swconfig dev set reset 1
> swconfig dev set enable_vlan 1
> swconfig dev eth0 vlan 101 set ports '3 8t'
> swconfig dev eth0 vlan 102 set ports '4 0 1 2 8t'
> swconfig dev eth0 set apply 1
>
> So when I enable STP/RSTP on the bridges containing eth0.102 they are all
> in forwarding mode which causes a loop. However since all the ports are on
> the same interface I suspect that they can not be set up properly. If one
> interface was set to blocking it would look like
>
>                  -- s2 --
>               /             \
> h1 ----- s1              s4    --- h2
>
>                     s3
>
> So I am wondering, is there is a better way to set up this kind of
> configuration?
>
> Additionally I have tried to add in a usb --> ethernet port on 1 of the
> routers and added it to a separate bridge and ran STP. However it seems
> that the two bridges can not talk to each other. So then I tried adding a
> patch port on the two bridges on the 1 pi.
>
> ovs-vsctl add-port <bridge name> <port name>
> ovs-vsctl set interface <port name> type=patch
> ovs-vsctl set interface <port name> options:peer=<peer name>
>
>
> What would be the proper configuration for connecting this sort of
> network?
>
> Thanks in advance,
> ~chris
>
>
>
>
> _______________________________________________
> discuss mailing listdiscuss at openvswitch.orghttps://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190109/158a0f97/attachment.html>


More information about the discuss mailing list