GL-AR300M and swconfig

Also, do you happen to know if this is VLAN IDs 1-15, or if it (theoretically) supports any VLAN IDs, but just a maximum of 16 total? I recall that there are devices in both of these camps...

The table holds 16. VLAN tags higher than 16 are possible by using the

 option vlan <table index number 1-15>
 option vid <number for tagging 1-4094>

The size of the table can be found with swconfig dev switch0 help.

1 Like

Yes the SoC has built in switch capability, but it is hard wired as eth0 for the lan port.

if you want vlans you can software define them, or upgrade to an ar750m that brings out the switch to lan1 and lan2 ports.

I've modified my network definition. Here is an example for one VLAN (there are 7, but the pattern is always the same):

config device
        option type '8021q'
        option ifname 'eth0'
        option vid '10'
        option name 'eth0.10'
config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.10'
config interface 'lan'
        option proto 'static'
        option device 'br-lan'
        list ipaddr '172.22.10.1/24'

I've connected the LAN port of the AR300M with a VLAN-aware PC. So far it seems to work: the PC gets an IP address assigned, I can access the internet and the router (ssh and luci).

Last question: do I really need the swconfig package or can I remove it?

Great... looks like it is working the way I had hoped.

I think you can remove it (assuming it was user-installed; if it was part of the default package set, leave it there).

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.