Ahoy friends.
I got my OpenWRT device, having 10G connections, and also a huge 1G network connected to it.
In my home network i got several vlans, vlan 110 and so on.
I also got my pc connected to the router, also having a vlan 110 subinterface, but its not directly attached to the rest of the home network, because my home network infrastructure does not support 10G.
But i would also like both to use the same address range, and they should also forward broadcast packages to each other. In other words, both interfaces should act like a switch, or layer 2 network.
How can i do so? Do i have to work with bridges maybe, bridging the pc1.110 onto the restofthenetwork.110 interface? Or what is the way of choice?
You bridge the subinterface ethX.110 and subinterface ethY.110.
X is your 10G interface
Y is your 1G interface
By bridging those subinterfaces, you are creating a "poor-man's" switch, which is not really so great because you are going to tax the CPU in the OpenWRT box with forwarding all the packets tagged with VLAN ID 100 from the 10G interface to the 1G interface, and back. But, this is the only way you can do this.
You can do this in Network > Interfaces > (Choose the ethX.100 Interface) > Edit > Physical Settings :: Interface. Then select custom from the drop-down box next to Interface, manually enter the interface name to which you want to bridge ethX.100 (which should be ethY.100) and press Enter on the keyboard. Then click Save in the same window and then apply.
So it should look like that? Is it maybe better to do it vise versa, bridging the 1G interface to 10G interface?
Unfortunately it doesn't work yet, that's what i tried.
Ah thank you very much, it's working quite fine now, using the bridge way.
This way i can "merge" all these subinterfaces, and i'm having almost 30 interfaces less.