I see regular support requests here for configuring an external USB ethernet adapter as additional LAN device. I have several devices where this would be useful for me, but I did not succeed to create a reliable setup. Especially unplugging the device results mostly in a new tethering device.
For example I have a Brume 2 device which would benefit from a second LAN port (I could remove a full second device with power pluf from the installation). This is on a remote site which needs to run reliably and needs to survive power loss, un- and replugging of the cables (possibly by other people than me) and hopefully also firmware updates. So tinkering on luci or openwrt level is not enough.
Therefor I’d like to propose handling of this in the main gl.inet firmware. For me it would be ideal if any usb device of the type “external usb adapter” would be automatically treated as LAN. But it could also be a switch similar to the “Use as LAN” switch on the WAN device setting.
This used to work really well for me but for some reason it has been completely breaking the router’s functionality with the newer firmware versions (have not been able to use it for a while as a result):
Oh, cut the crap. You’re talking about is loading addn’l kmods for a ASIX adapter… if you can even confirm it has them. What’d’ya think you’re going do when it comes to writing the firewall rules for zoning that new interface, huh? Ya gonna expect it to all ‘automagically’ appear in the GL GUI?
If you want dual WAN as you describe & don’t know the difference between CLI & TTY, just drop 40.00USD & get a Beryl.
Just pulling your legs mate. Relax. You sound too knowledgeable about this OperWrt palaver and I really enjoy reading your posts and the way you try and help (which can be a bit peculiar - in a good way - at times I have to admit). Keep up the good work.
If it were a managed spare 5 port switch, it could do it. You would connect that to the WAN port of the GL-inet router. On the GL-inet device you would make a WAN1 on VLAN 1001 (Tagged and on the WAN interface) and WAN2 on WLAN1002 (Tagged and also on the WAN interface) and setup WAN1 and WAN2 the way you would want.
On the switch you would connect the WAN port of the GL-inet on port 1 (trunk, 1001 and 1002 tagged) and setup port 2 with default (untagged) vlan 1001 and disallow all other vlans. Port 3 would be with default (untagged) vlan 1002 and disallow all other vlans.
Extra credits can be obtained if you would configure the 2 devices to allow the remaining 2 ports to be extra LAN
No sure if the GL-inet gui would not murder that type of config, but this would work!
I have usb2lan working on tether. Main thing seems to be to have the device going into it setup for DHCP. The tethering interface seems to default to DHCP when disconnected and reconnected. You can set to static in Luci but if it disconnects it causes issues.