Jump to content

Banana Pi R1 switch configuration


MetallJ

Recommended Posts

Hey,

 

I'm trying to setup the ports of the switch correctly but I don't arrive anywhere. I'm using the mainline armbian for my R1. There are different files in /etc/network(e.g.):

-rw-r--r--.  1 root root  495 18. Jun 2017  interfaces.r1
-rw-r--r--.  1 root root  610 18. Jun 2017  interfaces.r1router
-rw-r--r--.  1 root root  359 18. Jun 2017  interfaces.r1switch

But even if I completely copy a configuration file to /etc/network/interfaces there are still no packets arriving at the Ports named lan1 to lan4. I checked this with tcpdump -i interfaceName, but all packets are arriving at eth0. Only some IPv6 packets are arriving at the lan-ports.

 

My current /etc/network/interfaces looks like this:

source /etc/network/interfaces.d/*

# Local loopback
auto lo
iface lo inet loopback

auto eth0.101
iface eth0.101 manual
    pre-up swconfig dev eth0 set reset 1
    pre-up swconfig dev eth0 set enable_vlan 1
    pre-up swconfig dev eth0 vlan 101 set ports '3 8t'
    pre-up swconfig dev eth0 set apply 1

auto eth0.102
iface eth0.102 inet manual
    pre-up swconfig dev eth0 vlan 102 set ports '0 1 2 4 8t'
    pre-up swconfig dev eth0 set apply 1

allow-hotplug wlan0
iface wlan0 inet dhcp

# WAN
auto eth0.101
iface eth0.101 inet dhcp

I have read about the new DSA-option but don't see where it is used nor how. 

Is there a way I can use the LAN-Ports normally? Or is there a good tutorial on how to setup the switch correctly?

 

Thank you very much for your support!

 

 

Link to comment
Share on other sites

Aw, thank you so much. I'll try this right now. As far as I have seen your document says nothing about /etc/network/interfaces. So I can leave my interfaces file untouched?

 

EDIT: Sorry I found it. I will have to look at it again, as i still have eth0.101 and so on. But I got an IP-Address from dnsmasq for the first time. :) Thank you very much for your help. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines