OpenWrt Forum Archive

Topic: WRT54GL Multi-vlan trunking (Kamikaze specific)

The content of this topic has been archived on 12 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

This is a followup to the thread I created in the WhiteRussion foum.

The configuration I am looking at is something like:

config switch eth0
    option vlan10        "0 5*"
    option vlan11        "0* 1"
    option vlan12        "0* 2"
    option vlan13        "0* 3"
    option vlan14        "0* 4"
    option vlan15        "0* 5*"

The idea is that vlan11-14 are untagged on ports 1-4 respectively, and trunked on port 0 (wan port).  This traffic is never seen by linux itself (switched & (un)tagged in hardware).

Untagged traffic on port 0 (wan port) gets seen by linux as vlan10 (for administrative use).

Vlan15 traffic gets bridged with eth2 (wireless) and trunked over port 0 (wan port).


What I am not sure about is if my syntax is correct, and if the current Kamikaze firmware handles switch configuration properly.

Any advice?

This is the configuration (Kamikaze) that I came up with and it works perfectly.

### VLAN Configuration
config switch eth0
        option vlan4    "4 5"
        option vlan9    "4t 5t"
        option vlan11   "4t 3*"
        option vlan12   "4t 2*"
        option vlan13   "4t 1*"
        option vlan14   "4t 0*"

config interface admin
        option ifname   "eth0.4"
        option proto    static
        option ipaddr   192.168.1.100
        option netmask  255.255.255.0
        option gateway  192.168.1.1
        option dns      192.168.1.1

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

The discussion might have continued from here.