Jump to content

stihlee_dan

Validating
  • Posts

    1
  • Joined

  • Last visited

  1. 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
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines