Hi! I just bought a gl b1300 router. I’m using stock openwrt.
My home internet configuration requires vlan tagging on the wan port in order to be able to connect to my isp. However, there is no vlan option for the wan port, only for the two lan ports (and cpu).
Why is this happening, and is there a way to do achieve what I want? I’m quite preocupied as I bought the router thinking everything would work out and now I’m not able to get vlans in that port .
I have no problem in doing this in the command line, if this is just a problem with the web interface.
Add a new VLAN, with the ID required by your ISP, tagged on CPU and WAN, off on LAN. Modify your current VLAN 1, tagged on CPU, untagged on LAN, and off in WAN.
Move your LAN network config from eth0 to eth0.1, configure the WAN network on eth0.x (x is the VLAN required by your ISP). Apply and reboot.
what do you mean by don't allow? does the router have two switches? one for the 2 lan ports that are managed, and another switch with the wan port that is unmanaged? This doesn't make much sense to me. could it be a driver issue?
In /etc/config/network, add these lines to enable the built-in ethernet switch between ports 2..5.
config switch 'eth1'
option enable '1'
Example VLAN configuration for switch ports
In /etc/config/network, add these lines to enable the switch, and create 2 vlan interfaces (eth1.11 and eth1.12). The first for ports 5 and 4, and the later for ports 3 and 2. Port 1 on the router is eth0.
sorry, can you explain in a bit more detail? this is my first time using openwrt. I have no issue in doing the configuration in /etc/config/network instead of luci.
So is it possible to enable vlan tagging in the wan port or not?
I think, wan port is separate port in this case (eth1). For another router wan port is member of switch (eth0.2), it is in default configuration. And CPU port has number 6. In your case CPU port has number 0. So I think, it is impossible to configure tagged wan. You can configure one 'lan' port as wan, and 'wan' port as additional interface, and bridge it to another. I am not sure, whether last is possible.
OpenWRT-image of firmware doesn't contain /etc/config/network file, it is generated on first startup, so it is not trivial to check, whether some model supports it...
BTW I was really interesting to configure it with the same purpose, and trying Mikrotik found out, that only 4 'lan' ports could be configured with tags. Have you got another router, where wan port is configured as member of switch?
unfortunately no, this is the only router I have available that supports openwrt. in the future, when buying routers I'll make sure to check for this, as I just got from a router with 3 ports to one with only 2...