Im creating this topic again as I didn’t get any more info on this but i know that openwrt defaults to having two or more Ethernet ports depending on your router to be under br-lan logical interface so it can be one lan interface. Mine is eth1 and eth0 paired together and I wanted to know if there’s a way to separate these two and still have them function with internet connectivity. So far my eth1 hosts my ap giving WiFi to my wireless items. And eth0 is hard wired to my gaming pc. Just a curiosity if it’s even possible for them to be separated instead of being all in one on a logical interface.
yes
if your router has already been moved to DSA:
https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial#multiple_bridged_networks
Or if it hasn't been moved to DSA yet then it relies on swconfig:
So basically I have to create two bridge networks and essentially have eth1 on one bridge and eth0 on another to achieve my goal?
And do I need a switch to achieve this. My current set up is modem >>> nanopi r6s >>>> eth2 wan >>> eth1 access point >>> eth0 hardwired to pc.
yes i have tree ethernet.
I’m sorry? Didn’t quite understand you sir.
It depends on the router you have if it has already been moved to dsa or not
show output this command:
ubus call system board
config device
option type 'bridge'
option name 'bridgeeth0eth1'
list ports 'eth0'
list ports 'eth1'
option bridge_empty '1'
option ipv6 '1'
config device
option type 'bridge'
option name 'bridgeeth0eth2'
list ports 'eth0'
list ports 'eth2'
option bridge_empty '1'
option ipv6 '1'
with 3 port ethernet
It depends on whether you want to connect other devices to your network (in that case I recommend purchasing a management switch)
for now if you don't plan to add other devices that's it ...
this is what i understand you are going to create ...
nanopi r6s:
eth0 = br-lan (set static ip 192.168.1.1)
eth1 = br-another (set static ip 192.168.2.1)
eth2 = wan (dhcp client)
I’m at work currently so I can’t post the output but is there a way to know if it has transitioned to DSA?
check if swconfig is present among the installed packages if you have not yet switched to DSA
opkg list-installed | grep swconfig | wc -l
if = 0 dsa
if = 1 swconfig (not dsa)
I assume you installed from here:
so you are on DSA so the reference document is:
https://openwrt.org/docs/guide-user/network/dsa/dsa-mini-tutorial#multiple_bridged_networks
You can even create empty bridges, like for iot/guest wifi or docker/lxc.
Yeah I just want eth1 and eth0 to function independently with internet connectivity instead of being one logical interface as br-lan
I will check once I am home. Hopefully it is dsa
most likely you are on DSA see post:
Sorry didn’t see this comment earlier and I did. I’m on RC5 openwrt
I’ve tried unselecting eth1 or eth0 from the br-lan. But when I configure an interface for either with the same subnet but different ip it still doesn’t get connectivity. So that’s why I’m confused on what exactly to do.
I hope that with the images it is clearer I removed lan2 from br-lan and created br-custom
at the end of the process you should see a new interface similar to this:
So this is done all in the interfaces tab correct? But first I should just unbridge for example eth1 and create an interface for it and then just leave eth0 in br-lan