I recently received the GL.inet MT6000. The device has four 1 Gbps and two 2.5 Gbps ports. One of the 2.5 Gbps ports (eth1) is configured for wan. The other 5 ports (lan1-lan5) are used for lan.
I was wondering; Is it possible to configure one of the 1Gbps ports (like lan5) for wan so that the two 2.5 Gbps ports become available for lan?
My current ISP plan is 1000/100 Mbps, so a 1 Gbps wan port is sufficient, but I'm in need for a second 2.5 Gbps lan port
My ' network' is pretty standard.
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd5e:48ff:xxxx::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config device
option name 'lan1'
option macaddr '94:83:c4:a7:xx:xx'
config device
option name 'lan2'
option macaddr '94:83:c4:a7:xx:xx'
config device
option name 'lan3'
option macaddr '94:83:c4:a7:xx:xx'
config device
option name 'lan4'
option macaddr '94:83:c4:a7:xx:xx'
config device
option name 'lan5'
option macaddr '94:83:c4:a7:xx:xx'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'eth1'
option macaddr '94:83:c4:a7:xx:xx'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
You mean something like this?.
But where does eth0 come from?
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'eth1'
config interface 'wan'
option device 'lan5'
option proto 'dhcp'
config interface 'wan6'
option device 'lan5'
option proto 'dhcpv6'
eth0 is an internal connection between the CPU and the switching logic for the lanX ports. Don't reference eth0 directly in your configuration. DSA abstracts the fact that there is a switch, and (in the ideal case) you can configure the lanX ports as if they were directly connected to the CPU.
eth1 is a direct link to the wan port. It doesn't go through the switch and is not affected by DSA.
You do have an (unconfigured) "eth0" interface, and you also have 5 "lan" ports. Are you sure "eth0" and "eth1" are not the 2.5Gbps ports, and "lan0" to "lan5" are the 1Gbps ports?
The wikidev page for this device says it has a switch for the two 2.5Gbps ports, and another one for the four 1Gbps ports. However, you have an unused eth port, a 2.5Gbps port on the other eth port, and the second 2.5Gbps port is configured as lan... it does not make much sense, at least to me.
Anyway, the point is you just need to move the ports around, to achieve the configuration you proposed.
In my setup, I create a bridge for each interface. Not out of necessity, but for unified setup, so I can edit connections in the same steps for all connections. So I have a br-lan and a br-wan (+ others)
If you’d do the same, you would have br-wan cover lan5 only, and set your wan interface to br-wan.
Alternatively set your wan interface directly to lan5.
Then br-lan would cover eth1,lan1,lan2,lan3,lan4
I had a look at the dts: One 2.5G port (eth1 aka wan) is directly connected to the SoC via GMAC1, the other is connected to a switch where the other 1G LAN ports are also connected to. The switch is then connected to the SoC via GMAC0 (eth0).
So while you can technically move the ports around (add eth1 to the br-lan bridge, remove lan1 from the bridge; do not touch eth0, that's the DSA switch), all traffic going from the former 2.5G WAN port to any other LAN port has to pass through the CPU and is not switched. I don't know how powerful the CPU is or if anything can be offloaded so YMMV.