I am setting up eth0.35 but I am getting no internet connection.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
![]()
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
I am trying to see if DHCP with direct eth0 works in the first place.
root@OpenWrt:~# ubus call system board
{
"kernel": "6.6.119",
"hostname": "OpenWrt",
"system": "MediaTek MT7628AN ver:1 eco:2",
"model": "GL-MT300N-V2",
"board_name": "glinet,gl-mt300n-v2",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.5",
"revision": "r29087-d9c5716d1d",
"target": "ramips/mt76x8",
"description": "OpenWrt 24.10.5 r29087-d9c5716d1d",
"builddate": "1766085702"
}
}
root@OpenWLC:~# cat /etc/config/network
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 'dsadsada::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
option macaddr 'dasddsadsa'
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 interface 'wan'
option device 'eth0'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option norelease '1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
You need to add vlan 35 to the switch. I assume the upstream is tagged:
config switch_vlan
option device 'switch0'
option vlan '35'
option ports '0t 6t'
Now you can use eth0.35
Thanks Peter. What is the logic behind this it sounds extremely complicated, wouldn't have figured this by myself. It seems like magic.
That's how you configure vlans on hardware with swconfig... It's been that way since nearly forever with OpenWrt. It predates DSA support by over a decade....
The logic is as follows:
- The port on the CPU is actually connected to a switch chip which is, in turn, connected to the physical ethernet ports
- The switch is configured, by default, to make one of the ports a lan port and the other a wan port, both untagged at the port (but tagged to the CPU).
- In order to add a tagged VLAN ID to the wan port, you need to configure the switch chip itself, which is the stanza that we added.
As @_bernd stated, this is the way things have worked on OpenWrt with swconfig for ages. DSA mostly makes this process easier since the ports are more obvious, but the transition to DSA is not yet complete (certain targets still exist on swconfig), thus why you're still working with swconfig.
Just curious, are there any small lags because of this? Because, I've recommended this device to my friend which has 2ms on fibre line, for cheap alternative. But would this swconfig thing, affect it too much? He is doing professional tournament gaming.
Not because of the VLAN ID/tagging.
But PPPoE does have overhead.
This device is old and slow. I'm not sure why anyone would buy this one new (or even used).
No, swconfig has nothing to do with this.
With that in mind, this router is entirely unsuitable for him.
Well the guy insisted for that, he liked the interior design.
Really? I’ve always found that device to be really unattractive and cheap looking. But to each their own.
Regardless, this is the wrong device for a user who demands high performance networking g.
Gaming is not high performance though even 5mbps down and up is enough. For online games that is. Probably even lower is ok.
It’s not only about bandwidth - latency is also likely to be increased because of the old/slow processor, and that gets worse when it is under load.