Jump to content

Opange pi 5 allow only 4 VLANs on Ethernet port


Regela

Recommended Posts

System Information: https://paste.armbian.com/mozehisomu

 

When i am trying to setup many vlan interfacces i have whis dmesg message:

 

rk_gmac-dwmac fe1c0000.ethernet eth0: MAC_VLAN_Tag_Filter full (size: 4)

 

interface info:

 

ethtool -i eth0
driver: st_gmac
version: Jan_2016
firmware-version: 
expansion-rom-version: 
bus-info: 
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

 

I need about 20-30 vlan interfaces

 

Link to comment
Share on other sites

I ran into the same issue. Trying to get PiMox setup on some OrangePi's and found that the OrangePi 5 only supports 4 vlans.


I believe I got a workaround working however. Executing CLI commands (haven't had time to test with /etc/network/interfaces or netplan) for 5 bridges (plus br0). My thought
process was to build separate vlans on the bridge and not vlan interfaces off of eth0. I'm sure this can be improved upon.

#Build bridges
ip link add name br0 address aa:ab:c0:26:f7:f0 up type bridge vlan_filtering 0 vlan_default_pvid 0
ip link add name br1 address aa:ab:c0:26:f7:01 up type bridge vlan_filtering 0 vlan_default_pvid 0
ip link add name br2 address aa:ab:c0:26:f7:02 up type bridge vlan_filtering 0 vlan_default_pvid 0
ip link add name br3 address aa:ab:c0:26:f7:03 up type bridge vlan_filtering 0 vlan_default_pvid 0
ip link add name br4 address aa:ab:c0:26:f7:04 up type bridge vlan_filtering 0 vlan_default_pvid 0
ip link add name br5 address aa:ab:c0:26:f7:05 up type bridge vlan_filtering 0 vlan_default_pvid 0

#Set uplink for br0
ip link set dev eth0 up master br0

# Add vlan to bridges
bridge vlan add vid 2-250 dev br0 self
bridge vlan add vid 1 dev br1 self
bridge vlan add vid 2 dev br2 self
bridge vlan add vid 3 dev br3 self
bridge vlan add vid 4 dev br4 self
bridge vlan add vid 5 dev br5 self

# Create sub-interfaces for each vlan and assign IP for bridges.
ip link add link br0 name br0.1 up type vlan id 1
ip addr add 192.168.101.2/24 dev br1

ip link add link br0 name br0.2 up type vlan id 2
ip addr add 192.168.102.2/24 dev br2

ip link add link br0 name br0.3 up type vlan id 3
ip addr add 192.168.103.2/24 dev br3

ip link add link br0 name br0.4 up type vlan id 4
ip addr add 192.168.104.2/24 dev br4

ip link add link br0 name br0.5 up type vlan id 5
ip addr ad 192.168.105.2/24 dev br5

# Set uplinks for bridges
ip link set dev br0.1 up master br1
ip link set dev br0.2 up master br2
ip link set dev br0.3 up master br3
ip link set dev br0.4 up master br4
ip link set dev br0.5 up master br5

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines