I was previously using OpenWRT 21 on my router which was using swconfig. Because my model is apparently doing some unusual non-standard stuff, configuring VLANs always deactivates the WAN port. As I have upgraded my setup with a VLAN-capable switch I would like to use it.
I stumbled upon this thread: Wan offline with VLAN added - #12 by slh
So I build OpenWRT myself from https://github.com/openwrt/openwrt/pull/4721 as my model (GL.iNet GL-B2200) seems to already be supported by this patch.
I then applied the squashfs-sysupgrade. Now, only WLAN is working:
root@router:/etc/config# ip link | egrep '^[0-9]'
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
3: lan2@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
4: lan1@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN qlen 1000
5: wan@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
8: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
9: WLAN-smart: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
10: WLAN-home: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
There is also the eth1 interface missing which previously existed:
root@router:/etc/config# ifconfig
WLAN-home Link encap:Ethernet HWaddr 94:83:C4:0E:0A:47
inet6 addr: fe80::9683:c4ff:fe0e:a47/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9877 errors:0 dropped:0 overruns:0 frame:0
TX packets:7595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:916298 (894.8 KiB) TX bytes:980811 (957.8 KiB)
WLAN-smart Link encap:Ethernet HWaddr 94:83:C4:0E:0A:46
inet addr:10.8.9.1 Bcast:10.8.9.255 Mask:255.255.255.0
inet6 addr: fe80::9683:c4ff:fe0e:a46/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1269 errors:0 dropped:0 overruns:0 frame:0
TX packets:1195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:271499 (265.1 KiB) TX bytes:290442 (283.6 KiB)
br-lan Link encap:Ethernet HWaddr 94:83:C4:0E:0A:46
inet addr:10.8.8.1 Bcast:10.8.8.255 Mask:255.255.255.0
inet6 addr: fd8a:96f2:7bc8::1/60 Scope:Global
inet6 addr: fe80::9683:c4ff:fe0e:a46/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9876 errors:0 dropped:0 overruns:0 frame:0
TX packets:7483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:777800 (759.5 KiB) TX bytes:824346 (805.0 KiB)
eth0 Link encap:Ethernet HWaddr 94:83:C4:0E:0A:46
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:110 (110.0 B) TX bytes:26019 (25.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:696 errors:0 dropped:0 overruns:0 frame:0
TX packets:696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:54288 (53.0 KiB) TX bytes:54288 (53.0 KiB)
I am only able to access the router via SSH by tethering the WLAN from my phone to my PC. The web-interface appears to be offline (probably because it is bound to the eth0 interface which is down).
I am afraid to reset the router in this state as I fear that a reset could disable WLAN completely and lock me out.
What are my options and can I fix the switch config or whatever is wrong here?