Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Banana Pi R1 switch configuration

Featured Replies

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!

 

 

  • Author

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. 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.